├── README.md
├── docs
├── tsconfig.json
├── public
│ ├── og.jpg
│ └── favicon.svg
├── src
│ ├── styles
│ │ └── custom.css
│ ├── components
│ │ └── Example.astro
│ ├── content.config.ts
│ └── content
│ │ └── docs
│ │ ├── resources
│ │ └── starlight.mdx
│ │ ├── tests
│ │ ├── test-mdx.mdx
│ │ └── test-md.md
│ │ ├── index.mdx
│ │ ├── getting-started.mdx
│ │ ├── usage.mdx
│ │ └── demo.mdx
├── README.md
├── package.json
└── astro.config.ts
├── pnpm-workspace.yaml
├── eslint.config.mjs
├── .vscode
├── extensions.json
└── settings.json
├── tsconfig.json
├── packages
└── starlight-heading-badges
│ ├── .npmignore
│ ├── overrides
│ ├── TableOfContents.astro
│ └── MobileTableOfContents.astro
│ ├── eslint.config.mjs
│ ├── tests
│ ├── test.ts
│ ├── fixtures
│ │ └── TestPage.ts
│ ├── toc.test.ts
│ └── heading.test.ts
│ ├── playwright.config.ts
│ ├── libs
│ ├── integration.ts
│ ├── plugin.ts
│ ├── rehype.ts
│ ├── badge.ts
│ ├── remark.ts
│ └── starlight-toc.ts
│ ├── components
│ ├── TableOfContentHeading.astro
│ ├── HeadingBadgesTableOfContents.astro
│ ├── TableOfContentsList.astro
│ └── HeadingBadgesMobileTableOfContents.astro
│ ├── index.ts
│ ├── README.md
│ ├── package.json
│ ├── styles.css
│ └── CHANGELOG.md
├── .prettierignore
├── .changeset
├── config.json
└── README.md
├── .gitignore
├── .prettierrc.cjs
├── LICENSE
├── .github
└── workflows
│ ├── integration.yml
│ ├── autofix.yml
│ └── release.yml
└── package.json
/README.md:
--------------------------------------------------------------------------------
1 | packages/starlight-heading-badges/README.md
--------------------------------------------------------------------------------
/docs/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.json"
3 | }
4 |
--------------------------------------------------------------------------------
/pnpm-workspace.yaml:
--------------------------------------------------------------------------------
1 | packages:
2 | - 'docs'
3 | - 'packages/*'
4 |
--------------------------------------------------------------------------------
/eslint.config.mjs:
--------------------------------------------------------------------------------
1 | import hideoo from '@hideoo/eslint-config'
2 |
3 | export default hideoo()
4 |
--------------------------------------------------------------------------------
/docs/public/og.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HiDeoo/starlight-heading-badges/HEAD/docs/public/og.jpg
--------------------------------------------------------------------------------
/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
3 | }
4 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@hideoo/tsconfig",
3 | "include": ["docs/.astro/types.d.ts", "**/*"]
4 | }
5 |
--------------------------------------------------------------------------------
/docs/public/favicon.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/starlight-heading-badges/.npmignore:
--------------------------------------------------------------------------------
1 | .eslintcache
2 | eslint.config.mjs
3 | playwright.config.ts
4 | tests
5 | tsconfig.json
6 | tsconfig.tsbuildinfo
7 |
--------------------------------------------------------------------------------
/docs/src/styles/custom.css:
--------------------------------------------------------------------------------
1 | .hero-html {
2 | --size: 12rem;
3 |
4 | font-size: var(--size);
5 | justify-content: center;
6 | line-height: var(--size);
7 | }
8 |
--------------------------------------------------------------------------------
/.prettierignore:
--------------------------------------------------------------------------------
1 | .astro
2 | .changeset
3 | .github/blocks
4 | .next
5 | .vercel
6 | .vscode-test
7 | .vscode-test-web
8 | build
9 | coverage
10 | dist
11 | dist-ssr
12 | out
13 | pnpm-lock.yaml
14 |
--------------------------------------------------------------------------------
/packages/starlight-heading-badges/overrides/TableOfContents.astro:
--------------------------------------------------------------------------------
1 | ---
2 | import HeadingBadgesTableOfContents from '../components/HeadingBadgesTableOfContents.astro'
3 | ---
4 |
5 |
Starlight plugin to add badges to your Markdown and MDX headings.
4 |Starlight plugin to add badges to your Markdown and MDX headings.
4 |
5 |
6 |
7 |
8 |