You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's it! Pan Docs is live at [localhost:8001](https://localhost:8001).
27
+
28
+
Be aware of the following caveat:
29
+
30
+
- The locally running site will not update from changes to files in the `theme/` or `custom/` directories (e.g. highlight.js builds, CSS style overrides). You must trigger the build by manually changing a file in the `src/` directory.
31
+
32
+
### Building the image
33
+
34
+
If you prefer to build the image yourself:
35
+
36
+
```sh
37
+
docker build -t pandocs .
38
+
```
39
+
40
+
## Local
41
+
42
+
If you prefer to install every dependency locally:
4
43
5
44
1. Install [Rust](https://www.rust-lang.org/tools/install), [mdBook](https://github.com/rust-lang/mdBook#readme), and [Python 3](https://www.python.org/downloads) (3.9 or an earlier version).
6
45
mdBook is the tool rendering the documentation, Rust is used for some custom plugins and Python scripts are used to render some images. E.g.:
@@ -42,11 +81,11 @@ Be aware of the following caveats:
42
81
43
82
-`mdbook watch` and `mdbook serve` do *not* watch for changes to files in the `theme/` or `custom/` directories (e.g. highlight.js builds, CSS style overrides). You must trigger the build by either restarting the command, or manually changing one of the watched files.
44
83
45
-
###Special markup
84
+
## Special markup
46
85
47
86
Pan Docs uses a custom mdBook preprocessor & renderer to enable some special markup:
48
87
49
-
####Custom Containers
88
+
### Custom Containers
50
89
51
90
Those mimick Vuepress' [custom containers](https://vuepress.vuejs.org/guide/markdown.html#custom-containers) functionality.
@@ -91,7 +130,7 @@ Note that the angle brackets [are only required if there are spaces in the URL](
91
130
92
131
In effect, this means that linking to a section is as simple as copy-pasting its name in the URL field, prepending a `#`, and wrapping everything in `<>` if the name contains a space.
93
132
94
-
###Syntax highlighting
133
+
## Syntax highlighting
95
134
96
135
Syntax highlighting is provided within the browser, courtesy of [`highlight.js`](https://github.com/highlightjs/highlight.js).
97
136
[RGBASM syntax](https://rgbds.gbdev.io/docs/rgbasm.5) is highlighted via [a plugin](https://github.com/gbdev/highlightjs-rgbasm), but this requires a custom build of `highlight.js`.
@@ -121,7 +160,7 @@ node tools/build.js -t browser rgbasm c
0 commit comments