Skip to content

Commit 6ad4017

Browse files
committed
Merge branch 'v1.1.x'
2 parents 6502628 + 15d3031 commit 6ad4017

File tree

2 files changed

+31
-30
lines changed

2 files changed

+31
-30
lines changed

docs/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
gurobi-sphinxtheme @ git+https://github.com/Gurobi/gurobi-sphinxtheme.git@main
1+
gurobi-sphinxtheme @ git+https://github.com/Gurobi/gurobi-sphinxtheme.git@no-logo
22

33
# Pinned packages for documentation builds
44
# Note: upgrading nbconvert leads to formatting issues

docs/source/conf.py

+30-29
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,14 @@
44

55
import gurobipy_pandas
66

7-
# -- Project information -----------------------------------------------------
8-
9-
107
project = "gurobipy-pandas"
118
author = "Gurobi Optimization, LLC"
129
copyright = "Gurobi Optimization, LLC"
13-
html_title = "gurobipy-pandas documentation"
1410

1511
version = gurobipy_pandas.__version__
1612
release = version
1713

18-
# -- General configuration ---------------------------------------------------
14+
html_title = f"gurobipy-pandas documentation v{release}"
1915

2016
extensions = [
2117
"nbsphinx",
@@ -63,8 +59,7 @@
6359
"ghsrc": ("https://github.com/Gurobi/gurobipy-pandas/tree/main/%s", "%s"),
6460
}
6561

66-
# -- numpydoc magic linking
67-
62+
# Add shorthand and keyword ignores for numpydoc
6863
numpydoc_xref_param_type = True
6964
numpydoc_xref_aliases = {
7065
"DataFrame": "pandas.DataFrame",
@@ -74,12 +69,7 @@
7469
numpydoc_xref_ignore = {"optional", "or", "of"}
7570
numpydoc_class_members_toctree = False
7671

77-
# -- Options for EPUB output
78-
79-
epub_show_urls = "footnote"
80-
81-
# -- Note pointing to notebook downloads
82-
72+
# Add a note pointing to notebook downloads in notebook headers
8373
nbsphinx_prolog = """
8474
8575
.. note::
@@ -89,22 +79,8 @@
8979
9080
"""
9181

92-
# Customisation for Furo/gurobi-sphinxtheme
93-
94-
html_sidebars = {
95-
"**": [
96-
"sidebar/brand.html",
97-
"sidebar/search.html",
98-
"sidebar/scroll-start.html",
99-
"sidebar/navigation.html",
100-
"sidebar/scroll-end.html",
101-
],
102-
}
103-
104-
# Customisation for readthedocs
105-
10682
if os.environ.get("READTHEDOCS", "") == "True":
107-
# Date needed by Furo theme to enable icons/links/etc
83+
# Data needed by Furo theme to enable icons/links/etc
10884
html_context = {
10985
"READTHEDOCS": True,
11086
"github_user": "Gurobi",
@@ -114,7 +90,32 @@
11490
"conf_py_path": "/docs/source/",
11591
}
11692

117-
# Set the canonical URL to point to the stable version docs
93+
# Set the canonical URL to always point to the stable version docs
11894
rtd_version = os.environ.get("READTHEDOCS_VERSION")
11995
rtd_url = os.environ.get("READTHEDOCS_CANONICAL_URL")
12096
html_baseurl = rtd_url.replace(rtd_version, "stable")
97+
98+
99+
html_theme_options = {
100+
# Add Gurobi and Github icons to the footer
101+
"footer_icons": [
102+
{
103+
"name": "GitHub",
104+
"url": "https://www.gurobi.com",
105+
"html": """
106+
<svg id="Layer_2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128.5 127.5"><defs><style>.cls-1{fill:#ed3424;}.cls-2{fill:#c61814;}.cls-3{fill:#22222c;}</style></defs><g id="Layer_2-2"><polygon class="cls-2" points="94.5 6.86 59.08 0 12.07 30.33 74.92 49.88 94.5 6.86"/><polygon class="cls-1" points="9.3 34.11 6.36 53.16 0 94.45 77.03 121.14 95.78 127.64 74.33 54.35 9.3 34.11"/><polygon class="cls-2" points="97.79 10.33 78.49 52.75 100.14 126.74 128.5 98.36 97.79 10.33"/></g></svg>
107+
""",
108+
"class": "",
109+
},
110+
{
111+
"name": "GitHub",
112+
"url": "https://github.com/Gurobi/gurobipy-pandas",
113+
"html": """
114+
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16">
115+
<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path>
116+
</svg>
117+
""",
118+
"class": "",
119+
},
120+
],
121+
}

0 commit comments

Comments
 (0)