-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc,tools: syntax highlight api docs at compile-time
Prior to this commit, API docs would be highlighted after the page loaded using `highlightjs`. This commit still uses `highlightjs`, but runs the generation during the compilation of the documentation, making it so no script needs to load on the client. This results in a faster load, as well as allowing the pages to fully functional even when JavaScript is turned off.
- Loading branch information
Showing
7 changed files
with
27 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,9 @@ | ||
# API Reference Document Assets | ||
|
||
## highlight.pack.js | ||
|
||
_Generated by [highlightjs.org/download][] on 2020-06-07._ | ||
|
||
Grammars included in the custom bundle: | ||
|
||
* Bash | ||
* C | ||
* C++ | ||
* CoffeeScript | ||
* HTTP | ||
* JavaScript | ||
* JSON | ||
* Markdown | ||
* Plaintext | ||
* Shell Session | ||
|
||
## hljs.css | ||
|
||
The syntax theme for code snippets in API reference documents. | ||
|
||
## style.css | ||
|
||
The main stylesheet for API reference documents. | ||
|
||
[highlightjs.org/download]: https://highlightjs.org/download/ |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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