diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 7466ad0..c18e907 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -36,6 +36,8 @@ jobs: run: pnpm run test:unit:coverage - name: Codecov - uses: codecov/codecov-action@v3.1.5 + uses: codecov/codecov-action@v4 with: - directory: ./coverage + directory: ./tests/unit/coverage + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/demo/package.json b/demo/package.json index 1f123a6..667fce9 100644 --- a/demo/package.json +++ b/demo/package.json @@ -13,8 +13,8 @@ "preinstall": "npx only-allow pnpm" }, "dependencies": { - "@astrojs/mdx": "^2.1.0", - "astro": "^4.2.6" + "@astrojs/mdx": "^2.1.1", + "astro": "^4.3.0" }, "devDependencies": { "sass": "^1.70.0" diff --git a/demo/src/pages/de/category/astro/long-path/index.astro b/demo/src/pages/de/category/astro/long-path/index.astro new file mode 100644 index 0000000..48dc4f0 --- /dev/null +++ b/demo/src/pages/de/category/astro/long-path/index.astro @@ -0,0 +1,30 @@ +--- +import Layout from "../../../../../layouts/Layout.astro"; +import Breadcrumbs from "../../../../../../../src/Breadcrumbs.astro"; +--- + + +
+

Astro Breadcrumbs Examples

+ +

Example 1 - Custom separator

+
+ + + + + +
+
+
diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 496abd4..29785f0 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -1,6 +1,7 @@ import { defineConfig } from "astro/config"; import starlight from "@astrojs/starlight"; import matomo from "astro-matomo"; +import starlightLinksValidator from "starlight-links-validator"; // https://astro.build/config export default defineConfig({ @@ -50,6 +51,7 @@ export default defineConfig({ ], }, ], + plugins: [starlightLinksValidator()], }), matomo({ enabled: import.meta.env.PROD, diff --git a/docs/package.json b/docs/package.json index b8e4c09..3173e41 100644 --- a/docs/package.json +++ b/docs/package.json @@ -10,11 +10,12 @@ "astro": "astro" }, "dependencies": { - "@astrojs/starlight": "^0.17.0", - "astro": "^4.2.6", + "@astrojs/starlight": "^0.17.2", + "astro": "^4.3.0", "astro-breadcrumbs": "^1.9.0", "astro-matomo": "^1.4.2", - "sharp": "^0.33.2" + "sharp": "^0.33.2", + "starlight-links-validator": "^0.5.2" }, "devDependencies": { "sass": "^1.70.0" diff --git a/docs/src/content/docs/configuration/properties.mdx b/docs/src/content/docs/configuration/properties.mdx index feb53e5..0b54904 100644 --- a/docs/src/content/docs/configuration/properties.mdx +++ b/docs/src/content/docs/configuration/properties.mdx @@ -5,13 +5,13 @@ description: "Learn more about the properties of the Astro Breadcrumbs component import { Breadcrumbs } from "astro-breadcrumbs"; -## indexText +## ariaLabel **Type:** `string` -**Default:** `Home` +**Default:** `breadcrumbs` -Label of the first nav element. +Controls the `aria-label` on the parent element (`