Skip to content

Commit

Permalink
Merge pull request #4 from HiDeoo/hd-fix-labels-prop
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo authored Sep 23, 2024
2 parents 60acbb0 + fdbb27e commit 7a31f6b
Show file tree
Hide file tree
Showing 6 changed files with 595 additions and 539 deletions.
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"lint": "prettier -c --cache . && eslint . --cache --max-warnings=0"
},
"dependencies": {
"@astrojs/starlight": "^0.24.5",
"@astrojs/starlight": "^0.28.2",
"@hideoo/starlight-plugins-docs-components": "^0.2.2",
"astro": "^4.11.2",
"astro": "^4.15.8",
"remark-custom-heading-id": "^2.0.0",
"sharp": "^0.33.4",
"starlight-heading-badges": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@hideoo/eslint-config": "^3.0.1",
"@hideoo/prettier-config": "^2.0.0",
"@hideoo/tsconfig": "^2.0.1",
"astro": "^4.11.2",
"astro": "^4.15.8",
"eslint": "^8.57.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { Props } from '@astrojs/starlight/props'
import TableOfContentsList from './TableOfContentsList.astro'
const { labels, toc } = Astro.props
const { toc } = Astro.props
---

{
Expand All @@ -19,7 +19,7 @@ const { labels, toc } = Astro.props
<details id="starlight__mobile-toc">
<summary id="starlight__on-this-page--mobile" class="sl-flex">
<div class="toggle sl-flex">
{labels['tableOfContents.onThisPage']}
{Astro.locals.t('tableOfContents.onThisPage')}
<Icon name={'right-caret'} class="caret" size="1rem" />
</div>
<span class="display-current" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import type { Props } from '@astrojs/starlight/props'
import TableOfContentsList from './TableOfContentsList.astro'
const { labels, toc } = Astro.props
const { toc } = Astro.props
---

{
toc && (
<starlight-toc data-min-h={toc.minHeadingLevel} data-max-h={toc.maxHeadingLevel}>
<nav aria-labelledby="starlight__on-this-page">
<h2 id="starlight__on-this-page">{labels['tableOfContents.onThisPage']}</h2>
<h2 id="starlight__on-this-page">{Astro.locals.t('tableOfContents.onThisPage')}</h2>
<TableOfContentsList toc={toc.items} />
</nav>
</starlight-toc>
Expand Down
2 changes: 1 addition & 1 deletion packages/starlight-heading-badges/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"mdast-util-directive": "^3.0.0"
},
"peerDependencies": {
"@astrojs/starlight": ">=0.24.5"
"@astrojs/starlight": ">=0.28.0"
},
"engines": {
"node": ">=18"
Expand Down
Loading

0 comments on commit 7a31f6b

Please sign in to comment.