Skip to content

Deploy to production #4066

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

Merged
merged 4 commits into from
Apr 2, 2025
Merged

Deploy to production #4066

merged 4 commits into from
Apr 2, 2025

Conversation

mudge
Copy link
Contributor

@mudge mudge commented Apr 2, 2025

No description provided.

mudge added 4 commits April 1, 2025 15:11
We now use Asciidoc's shorthand for IDs (e.g. `[#some_id_here]`, see
https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/#ids-roles-and-options)
but this isn't being picked up by the script that builds nav.json used
to build the site-wide table of contents.

This meant that sections of the Pico SDK had incorrect anchors inferred
from their titles rather than the Asciidoc source where they would of
the form `group_hardware_base`, etc.

Fix this by adding a branch to detect shorthand IDs as well as the
"anchor" syntax of `[[some_id_here]]`.
To reduce the number of elements included on every single page of the
documentation site, no longer include subsections of every section (e.g.
terminate at Pico C SDK > Hardware APIs > hardware_adc, rather than
also including the subsections of "Detailed Description", "Functions",
etc.) as these are available in the right-hand "On this page" TOC shown
on wide-enough screens.

Note we're not yet cutting down the amount of markup to render the TOC
but starting by cutting out the source data.

This removes the JavaScript logic to render the currently clicked
section in bold.
Don't include subsections in site-wide table of contents
@mudge mudge merged commit bcd7a2d into master Apr 2, 2025
1 check passed
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