-
Notifications
You must be signed in to change notification settings - Fork 0
docs: fix accuracy bugs from the site quality audit #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| // @ts-check | ||
| import { defineConfig } from 'astro/config' | ||
| import { unified } from '@astrojs/markdown-remark' | ||
| import starlight from '@astrojs/starlight' | ||
| import starlightLlmsTxt from 'starlight-llms-txt' | ||
|
|
||
|
|
@@ -9,10 +10,20 @@ export default defineConfig({ | |
| site: 'https://wavyx.github.io', | ||
| base: '/pdcli', | ||
|
|
||
| // GFM tables in .md/.mdx (the MDX pipeline inherits these classic options, | ||
| // unlike a custom `processor`); smartypants off so code examples keep | ||
| // literal `--flags` and straight quotes. | ||
| markdown: { gfm: true, smartypants: false }, | ||
| // GFM tables in .md/.mdx; smartypants OFF so prose keeps literal `--flags`, | ||
| // `--`, and straight quotes (Astro's smart punctuation would turn `--` into | ||
| // an en/em dash). Astro 6 deprecated the top-level `markdown.gfm` / | ||
| // `markdown.smartypants` booleans — configure them on the unified processor | ||
| // instead (removed in a future major otherwise). | ||
| // | ||
| // NOTE: the build still prints ONE `markdown.gfm`/`smartypants` deprecation | ||
| // line during `/llms-*.txt` generation. That is NOT from this config: the | ||
| // `starlight-llms-txt` plugin renders via the experimental Astro Container, | ||
| // which calls `validateConfig(ASTRO_CONFIG_DEFAULTS, …)` (astro/dist/container/ | ||
| // index.js), and Astro's own defaults object still carries explicit | ||
| // `gfm`/`smartypants` keys — so it trips its own deprecation check. It is | ||
| // unfixable from here; it clears when Astro drops those keys from the defaults. | ||
| markdown: { processor: unified({ gfm: true, smartypants: false }) }, | ||
|
Comment on lines
3
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Additionally, Bump the lower bound in |
||
|
|
||
| integrations: [ | ||
| starlight({ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
globalFlagTokenspicks the first command object that has any GLOBAL flag, then reads all GLOBAL flags from that one command. If any global flag (e.g.--limit) is conditionally absent from some commands' manifests, the first matching command might return an incomplete set. The approach is sound as long as every command with GLOBAL flags carries the full set (i.e.BaseCommand.baseFlagsis inherited uniformly), but a command-specific override that drops a base flag would silently remove it from the generated intro without a warning.