docs(site): enable syntax highlighting, code copy button, and light/dark palette#21
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docs(site): enable syntax highlighting, code copy button, and light/dark palette
What changed
content.code.copyfeature and the two-entry light/dark palette toggle.markdown_extensionsblock forpymdownx.highlight,pymdownx.inlinehilite, andpymdownx.superfences.Why
The docs site previously rendered code blocks without syntax highlighting, copy buttons, or a theme toggle.
pymdown-extensionswas already installed in the docs environment, so no dependency changed.Verification
/Users/nicolaslazaro/Desktop/work/shed/crates/python/.venv/bin/python -c "import pymdownx.highlight, pymdownx.inlinehilite, pymdownx.superfences; print('pymdownx ok')"printedpymdownx okand exited 0.CONFIG-OKand exited 0.exclude_docsdiff and comment grep printedEXCLUDE-OKand exited 0..mkdocs-site-check.RENDER-OK, exited 0, and removed.mkdocs-spot-check.NO-EMDASH-OKand exited 0.SCOPE-OKand exited 0.