1 parent 9edc2da commit f989a01Copy full SHA for f989a01
2 files changed
.devcontainer/postCreateCommand.sh
@@ -6,4 +6,9 @@ pwd
6
export PIP_BREAK_SYSTEM_PACKAGES=1
7
pip install -r docs/source/requirements.txt
8
pip install sphinx-autobuild
9
-chmod +x .devcontainer/serve_sphinx.sh
+chmod +x .devcontainer/serve_sphinx.sh
10
+
11
+# Making mermaid graphs work
12
+sudo apt-get update
13
+sudo apt-get install -y npm
14
+npm install -g @mermaid-js/mermaid-cli
.devcontainer/serve_sphinx.sh
@@ -1,5 +1,7 @@
1
#!/bin/bash
2
set -e
3
4
-# This is expected to be run at the root of the repository
5
-sphinx-autobuild docs/source build/html
+# This script is expected to be run at the root of the repository.
+cd docs/source
+# sphinx-autobuild in general should be run in this directory or the mermaid configuration will not be found.
+sphinx-autobuild . build/html
0 commit comments