Skip to content

fix: reject unknown docstring parsers in the configuration - #422

Merged
has2k1 merged 1 commit into
mainfrom
reject-parser-auto
Oct 23, 2026
Merged

has2k1 merged 1 commit into
mainfrom
reject-parser-auto

Conversation

@has2k1

@has2k1 has2k1 commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

This PR makes parser: in great-docs.yml accept only numpy, google or sphinx. Any other value, including an empty parser:, stops the build with a one-line error. Before, parser: auto was accepted and silently turned off the RST and Sphinx docstring handling.

A `parser:` value other than numpy, google or sphinx used to load
quietly. A value such as `auto` then turned off RST directive handling
and Sphinx normalisation without any message. Loading such a
configuration now fails with an error that names the value and lists
the supported parsers. An empty `parser:` still means numpy.
@github-actions

Copy link
Copy Markdown

📚 Preview this PR's docs locally

Fetch the just-built site and open it in your browser:

# this exact build
great-docs preview --run 39947353048

# or always the latest build for this PR
great-docs preview --pr 422
Auth & tips
  • Requires great-docs: pip install great-docs (or run via pipx/uvx).
  • Auth: run gh auth login then add --use-gh, or set GITHUB_TOKEN (needs Actions: read).
  • Jump to a page: add --path reference/index.html.
  • Latest vs exact: --pr <n> grabs the newest build; --run <id> pins this one.
  • Re-download: --refresh ignores the local cache.

@has2k1
has2k1 merged commit 1174c49 into main Oct 23, 2026
8 checks passed
@has2k1
has2k1 deleted the reject-parser-auto branch October 23, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant