Skip to content

Commit

Permalink
Merge branch 'main' into hd-feat-tabs-sync
Browse files Browse the repository at this point in the history
* main:
  docs: rewrite `guides/sidebar` examples to be more generic (withastro#1751)
  i18n(ja): Update community-content.mdx (withastro#1756)
  i18n(ja): Update configuration.mdx (withastro#1755)
  i18n(zh-cn): Update `configuration.mdx` (withastro#1753)
  i18n(ko-KR): update `configuration.mdx` (withastro#1752)
  • Loading branch information
HiDeoo committed Apr 15, 2024
2 parents 338f9b8 + 36715ed commit 02743f4
Show file tree
Hide file tree
Showing 6 changed files with 133 additions and 127 deletions.
5 changes: 4 additions & 1 deletion docs/src/components/sidebar-preview.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ function makeEntries(items: SidebarConfig): SidebarEntry[] {
return {
type: 'link',
label: item.label,
href: item.link,
// Empty hrefs are used to represent internal links that do not exist in the Starlight
// docs. Using a non-existing anchor link like `#_` will not trigger a page reload or any
// scrolling.
href: item.link.length > 0 ? item.link : '#_',
isCurrent: false,
badge: item.badge,
attrs: item.attrs ?? {},
Expand Down
Loading

0 comments on commit 02743f4

Please sign in to comment.