Skip to content
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

Use the sphinx-better-subsection extension to use explicit targets for section permalinks #38

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

tsibley
Copy link
Member

@tsibley tsibley commented Jul 25, 2023

As that Python package requires ≥3.7, this theme will now too. That's acceptable in the development contexts in which we generate docs, which should be using newer Pythons anyway.

c.f. nextstrain/docs.nextstrain.org@57fe1888#all_commit_comments

Testing

  • Demos work
  • Checks pass

…r section permalinks

As that Python package requires ≥3.7, this theme will now too.  That's
acceptable in the development contexts in which we generate docs, which
should be using newer Pythons anyway.

c.f. <nextstrain/docs.nextstrain.org@57fe1888#all_commit_comments>
@tsibley tsibley requested a review from victorlin July 25, 2023 23:10
tsibley referenced this pull request in nextstrain/docs.nextstrain.org Jul 25, 2023
This is consistent with the existing documentation style guide and a
similar Snakemake style guide¹ written by @tsibley.

This also allows for the addition of a table of contents, which is done
here.

I looked into making the section links future-proof to wording changes,
however could not find a good solution. The closest is using :ref: roles
which adds separately defined links to to the section titles, but those
links aren't used by the TOC or header links themselves.

¹ https://github.com/blab/styleguide/blob/6aa5d7aa42acfa97e57a5ee05a4175f158502cac/nextstrain-builds.md
Copy link
Member

@victorlin victorlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this will be useful!

@tsibley tsibley merged commit 17a63f1 into main Jul 25, 2023
@tsibley tsibley deleted the trs/section-ids branch July 25, 2023 23:37
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.

2 participants