Skip to content

Commit

Permalink
docs: statically render mermaid diagrams to avoid pop-in
Browse files Browse the repository at this point in the history
Fixes apache#976.
  • Loading branch information
lidavidm committed Sep 6, 2023
1 parent 2d27f17 commit 67e36bb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ used as follows:
```shell
$ conda create -n adbc -c conda-forge --file ci/conda_env_docs.txt
$ conda activate adbc
# Mermaid must be installed separately
# While "global", it will end up in your Conda environment
$ npm install -g @mermaid-js/mermaid-cli
```

To build the HTML documentation:
Expand Down
2 changes: 2 additions & 0 deletions ci/conda_env_docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ doxygen
# XXX(https://github.com/apache/arrow-adbc/issues/987)
furo=2023.07.26
make
# Needed to install mermaid
nodejs
numpydoc
pytest
sphinx>=5.0
Expand Down
4 changes: 3 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@

# -- Options for mermaid -----------------------------------------------------

mermaid_d3_zoom = True
mermaid_d3_zoom = False
# Prerender images to avoid page jumping on load
mermaid_output_format = "png"

# -- Options for numpydoc ----------------------------------------------------

Expand Down

0 comments on commit 67e36bb

Please sign in to comment.