Skip to content

Commit

Permalink
Merge pull request #17 from melissawm/syntax-highlighting
Browse files Browse the repository at this point in the history
Add syntax highlighting with pygments
  • Loading branch information
dgmccart authored Nov 6, 2023
2 parents dd7b0b5 + 1650498 commit 2f09d22
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/stylesheets/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ html {
color: white;
}


.md-typeset pre>code:hover {
scrollbar-color: var(--md-accent-fg-color) #0000;
}

.md-nav--primary .md-nav__title .md-logo {
display: none;
}
Expand Down Expand Up @@ -144,3 +149,4 @@ html .md-footer-meta.md-typeset a {
color: var(--md-accent-fg-color);
}


9 changes: 9 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ theme:
- navigation.tabs
- navigation.tabs.sticky
- navigation.footer
- content.code.copy
custom_dir: overrides

extra_css:
Expand All @@ -27,7 +28,15 @@ extra:
link: https://acquire-project.zulipchat.com

markdown_extensions:
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
- admonition
- pymdownx.details
- pymdownx.superfences


0 comments on commit 2f09d22

Please sign in to comment.