docs: Improve dark mode syntax highlighting (#18002)

This PR introduces [GitHub
Light](https://github.com/highlightjs/highlight.js/blob/main/src/styles/github.css)
and [GitHub
Dark](https://github.com/highlightjs/highlight.js/blob/main/src/styles/github-dark.css)
as the syntax highlighting themes for the corresponding modes.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2024-09-18 14:14:03 +02:00 committed by GitHub
parent 430ce073d2
commit 3b153a54c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 256 additions and 5 deletions

View file

@ -8,8 +8,8 @@ site-url = "/docs/"
[output.html]
no-section-label = true
preferred-dark-theme = "light"
additional-css = ["theme/page-toc.css", "theme/plugins.css"]
preferred-dark-theme = "dark"
additional-css = ["theme/page-toc.css", "theme/plugins.css", "theme/highlight.css"]
additional-js = ["theme/page-toc.js", "theme/plugins.js"]
[output.html.print]