We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a967f9 commit 20f44afCopy full SHA for 20f44af
doc/conf.py
@@ -137,16 +137,19 @@
137
copyright = f"2017-{year}, The PyGMT Developers" # pylint: disable=redefined-builtin
138
if len(__version__.split("+")) > 1 or __version__ == "unknown":
139
version = "dev"
140
+ # Set base_url for stable version
141
+ html_baseurl = "https://pygmt.org/dev/"
142
else:
143
version = __version__
144
+ # Set base_url for dev version
145
+ html_baseurl = "https://pygmt.org/latest/"
146
release = __version__
147
148
# These enable substitutions using |variable| in the rst files
149
rst_epilog = f"""
150
.. |year| replace:: {year}
151
"""
152
-html_baseurl = "https://pygmt.org/latest/"
153
html_last_updated_fmt = "%b %d, %Y"
154
html_title = "PyGMT"
155
html_short_title = "PyGMT"
0 commit comments