Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit ff18764

Browse files
committed
Merge branch 'main' into release/0.1
2 parents d8ea72c + b4cd1f7 commit ff18764

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/source/conf.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"""Sphinx documentation configuration file."""
22
from datetime import datetime
3+
import os
34

5+
from ansys_sphinx_theme import get_version_match
46
from ansys_sphinx_theme import pyansys_logo_black as logo
57

68
from ansys.tools.path import __version__
@@ -17,10 +19,24 @@
1719
html_short_title = html_title = "ansys-tools-path"
1820

1921
# specify the location of your github repo
22+
cname = os.getenv("DOCUMENTATION_CNAME", default="nocname.com")
23+
switcher_version = get_version_match(__version__)
24+
html_context = {
25+
"github_user": "pyansys",
26+
"github_repo": "ansys-tools-path",
27+
"github_version": "main",
28+
"doc_path": "doc/source",
29+
}
2030
html_theme_options = {
31+
"switcher": {
32+
"json_url": f"https://{cname}/versions.json",
33+
"version_match": switcher_version,
34+
},
2135
"github_url": "https://github.com/pyansys/ansys-tools-path",
2236
"show_prev_next": False,
2337
"show_breadcrumbs": True,
38+
"collapse_navigation": True,
39+
"use_edit_page_button": True,
2440
"additional_breadcrumbs": [
2541
("PyAnsys", "https://docs.pyansys.com/"),
2642
],

0 commit comments

Comments
 (0)