-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path_config.yml
More file actions
executable file
·51 lines (41 loc) · 2.25 KB
/
Copy path_config.yml
File metadata and controls
executable file
·51 lines (41 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Book settings, see https://jupyterbook.org/en/stable/customize/config.html
title: ""
author: The Flatland Community
logo: assets/images/flatland-logo.svg
sphinx:
config:
# https://github.com/mgaitan/sphinxcontrib-mermaid
# https://github.com/mgaitan/sphinxcontrib-mermaid/blob/ceddc68e62ff1f032e1314f471df52114ed31fd7/sphinxcontrib/mermaid/__init__.py#L44
# https://stackoverflow.com/questions/79123430/rendering-icons-in-mermaid-architecture-diagram
# overriding mermaid_init_js seems not to add elkLayout any more, need to tweak as follows,see https://github.com/mgaitan/sphinxcontrib-mermaid/issues/172:
# icon sets at https://github.com/iconify/icon-sets/blob/HEAD/collections.md
mermaid_init_js: |
import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@11.2.0/dist/mermaid.esm.min.mjs";import elkLayouts from "https://cdn.jsdelivr.net/npm/@mermaid-js/layout-elk@0.1.4/dist/mermaid-layout-elk.esm.min.mjs";mermaid.registerLayoutLoaders(elkLayouts);
mermaid.initialize({startOnLoad:false}); mermaid.registerIconPacks([ { name: "logos", loader: () => fetch("https://unpkg.com/@iconify-json/logos@1/icons.json").then((res) => res.json()), }, { name: "ip", loader: () => fetch("https://raw.githubusercontent.com/iconify/icon-sets/04057d97799c7874eda5d8d5de23ea6c4cb34473/json/icon-park.json").then((res) => res.json()), },]);
extra_extensions:
- sphinx.ext.autodoc
- sphinx.ext.viewcode
- sphinxcontrib.mermaid
# https://jupyterbook.org/en/stable/advanced/html.html
html:
favicon: assets/images/favicon.ico
google_analytics_id: UA-132885496-4
home_page_in_navbar: true
use_repository_button: true
use_edit_page_button: true
use_issues_button: true
# https://jupyterbook.org/en/stable/basics/repository.html
repository:
url: https://github.com/flatland-association/flatland-book
provider: github
branch: main
# https://jupyterbook.org/en/stable/content/execute.html
execute:
execute_notebooks: auto
exclude_patterns:
# take too long or too many dependencies - make sure to have good coverage in flatland-rl for these code parts
- "rllib_demo.ipynb"
- "pettingzoo_demo.ipynb"
# https://jupyterbook.org/en/stable/interactive/launchbuttons.html
launch_buttons:
colab_url: "https://colab.research.google.com"