Skip to content

Commit 7b9bd50

Browse files
committed
Add nix to default languages
1 parent b7f4621 commit 7b9bd50

File tree

5 files changed

+1472
-53
lines changed

5 files changed

+1472
-53
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ The following are instructions for updating [highlight.js](https://highlightjs.o
148148
1. Clone the repository at <https://github.com/highlightjs/highlight.js>
149149
1. Check out a tagged release (like `10.1.1`).
150150
1. Run `npm install`
151-
1. Run `node tools/build.js :common apache armasm coffeescript d handlebars haskell http julia nginx nim properties r scala x86asm yaml`
151+
1. Run `node tools/build.js :common apache armasm coffeescript d handlebars haskell http julia nginx nim nix properties r scala x86asm yaml`
152152
1. Compare the language list that it spits out to the one in [`syntax-highlighting.md`](https://github.com/camelid/mdBook/blob/master/guide/src/format/theme/syntax-highlighting.md). If any are missing, add them to the list and rebuild (and update these docs). If any are added to the common set, add them to `syntax-highlighting.md`.
153153
1. Copy `build/highlight.min.js` to mdbook's directory [`highlight.js`](https://github.com/rust-lang/mdBook/blob/master/src/theme/highlight.js).
154154
1. Be sure to check the highlight.js [CHANGES](https://github.com/highlightjs/highlight.js/blob/main/CHANGES.md) for any breaking changes. Breaking changes that would affect users will need to wait until the next major release.

guide/src/format/theme/syntax-highlighting.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ your own `highlight.js` file:
4545
- markdown
4646
- nginx
4747
- nim
48+
- nix
4849
- objectivec
4950
- perl
5051
- php

0 commit comments

Comments
 (0)