|
38 | 38 | 'sphinx.ext.imgmath',
|
39 | 39 | 'sphinx.ext.extlinks',
|
40 | 40 | 'sphinxcontrib.spelling',
|
| 41 | + 'sphinx_book_theme' |
41 | 42 | ]
|
42 | 43 |
|
43 | 44 | # Makes the spelling filters visible.
|
|
109 | 110 | #modindex_common_prefix = []
|
110 | 111 |
|
111 | 112 | # Relative path definitions
|
112 |
| -build_hdk_to_repo_root: str = "../../../.." |
113 |
| -build_hdk_to_hdk_root: str = f"{build_hdk_to_repo_root}/hdk" |
114 |
| -build_hdk_to_cl_examples_root: str = f"{build_hdk_to_hdk_root}/cl/examples" |
115 |
| -build_hdk_to_cl_template_build_scripts: str = f"{build_hdk_to_cl_examples_root}/CL_TEMPLATE/build/scripts" |
116 |
| -build_hdk_to_cl_template_build_constraints: str = f"{build_hdk_to_cl_examples_root}/CL_TEMPLATE/build/constraints" |
117 |
| -build_hdk_to_hdk_common_shell_stable_build_scripts: str = f"{build_hdk_to_hdk_root}/common/shell_stable/build/scripts" |
118 |
| - |
119 |
| -build_docs: str = "docs" |
120 |
| -build_cl_examples: str = "cl/examples" |
121 |
| -cl_dram_readme: str = "cl_dram_hbm_dma/README.html" |
122 |
| -build_hdk_to_cl_dram_hbm_dma_readme: str = f"./{build_cl_examples}/{cl_dram_readme}" |
123 |
| -build_hdk_to_cl_sde_readme: str = f"./{build_cl_examples}/cl_sde/README.html" |
124 |
| - |
125 |
| -build_docs_to_repo_root: str = f"../{build_hdk_to_repo_root}" |
126 |
| -build_hdk_docs_to_images: str = "../../../build/html/_images" |
127 |
| - |
128 |
| -build_vitis_to_repo_root = "../../../.." |
129 |
| - |
130 |
| -extlinks = { |
131 |
| - "build-hdk-to-cl-example": (f"{build_hdk_to_cl_examples_root}/%s", "%s"), |
132 |
| - "build-hdk-to-repo-root": (f"{build_hdk_to_repo_root}/%s", "%s"), |
133 |
| - "build-hdk-to-cl-root": (f"{build_hdk_to_repo_root}/hdk/cl/examples/%s", "%s"), |
134 |
| - "supported-ddr-modes": (f"./{build_docs}/%s.html", "%s"), |
135 |
| - "cl-template-build-scripts": (f"{build_hdk_to_cl_template_build_scripts}/%s", "%s"), |
136 |
| - "cl-template-build-constraints": (f"{build_hdk_to_cl_template_build_constraints}/%s", "%s"), |
137 |
| - "common-shell-stable-build-scripts": (f"{build_hdk_to_hdk_common_shell_stable_build_scripts}/%s", "%s"), |
138 |
| - "build-hdk-to-cl-readme": (f"{build_cl_examples}/%s/README.html", "%s"), |
139 |
| - "run-rtl-sims": (f"{build_docs}/%s.html", "%s"), |
140 |
| - "shell-interface-spec": (f"{build_docs}/%s.html", "%s"), |
141 |
| - "pcie-memory-map": (f"{build_docs}/%s.html", "%s"), |
142 |
| - "build-hdk-docs-to-repo-root": (f"{build_docs_to_repo_root}/%s", "%s"), |
143 |
| - "docs-to-cl-mem-perf": (f"../{build_cl_examples}/%s", "%s"), |
144 |
| - "build-vitis-to-repo-root": (f"{build_vitis_to_repo_root}/%s", "%s"), |
145 |
| -} |
146 | 113 |
|
147 | 114 |
|
148 | 115 | # -- Options for HTML output ---------------------------------------------------
|
149 | 116 |
|
150 | 117 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
151 | 118 | # a list of builtin themes.
|
152 |
| -html_theme = 'default' |
| 119 | +html_theme = 'sphinx_book_theme' |
153 | 120 | # Theme options are theme-specific and customize the look and feel of a theme
|
154 | 121 | # further. For a list of options available for each theme, see the
|
155 | 122 | # documentation.
|
156 | 123 | #html_theme_options = {}
|
157 | 124 |
|
| 125 | +html_context = { |
| 126 | + # ... |
| 127 | + "default_mode": "light" |
| 128 | +} |
| 129 | + |
| 130 | +html_theme_options = { |
| 131 | + "repository_url": "https://github.com/aws/aws-fpga" , |
| 132 | + "use_issues_button": True, |
| 133 | + "use_repository_button": True, |
| 134 | + "use_download_button" : True, |
| 135 | + "use_fullscreen_button" : True, |
| 136 | + "use_edit_page_button": True, |
| 137 | + "repository_branch" : "f2", |
| 138 | + #"navbar_persistent": [], |
| 139 | +} |
| 140 | + |
| 141 | + |
158 | 142 | # Add any paths that contain custom themes here, relative to this directory.
|
159 | 143 | #html_theme_path = []
|
160 | 144 |
|
|
0 commit comments