Skip to content

docs: keep CLI options literal in Python API cross-links - #848

Open
fly1d wants to merge 1 commit into
simonw:mainfrom
fly1d:codex/docs-python-api-double-hyphens
Open

docs: keep CLI options literal in Python API cross-links#848
fly1d wants to merge 1 commit into
simonw:mainfrom
fly1d:codex/docs-python-api-double-hyphens

Conversation

@fly1d

@fly1d fly1d commented Aug 26, 2026

Copy link
Copy Markdown

Summary

Sphinx's smartquotes transform rewrites -- as an en dash when an option appears inside :ref: link text. Issue #493 tracks this rendering problem, and #844 addresses the two affected links in the install section. Six CLI cross-links in docs/python-api.rst still had the same issue.

This PR updates only those six notes by keeping the command name as an internal reference and rendering each option as an inline literal. The generated documentation now preserves copyable --attach, --not-null, --default, --replace, --alter, --functions, and --init-spatialite flags.

Verification

  • uv run --group docs sphinx-build -W -b html docs /tmp/sqlite-utils-docs-build
  • uv run cog --check README.md docs/*.rst
  • uv run --group docs codespell docs/python-api.rst --ignore-words docs/codespell-ignore-words.txt
  • git diff --check
  • Rendered HTML inspection confirmed the six links and literal flags.

A full Sphinx linkcheck also ran. It reported two pre-existing unrelated broken links in docs/contributing.rst and the existing WGS84 link in docs/python-api.rst; neither file location was changed by this PR.

Documentation only; no runtime behavior changes and no changelog entry is needed.

Related to #493. Follow-up to #844.

OpenAI Codex assisted with implementation and verification. Human review remains required.


📚 Documentation preview 📚: https://sqlite-utils--848.org.readthedocs.build/en/848/

Refs simonw#493; follow-up to simonw#844.

OpenAI Codex assisted with implementation and verification. Human review remains required.
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