Skip to content

Commit

Permalink
display "latest" in doc version (#1726)
Browse files Browse the repository at this point in the history
* display "latest" in doc version

* fix html title
  • Loading branch information
epassaro authored Jul 16, 2021
1 parent de2d7be commit a60344e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,14 @@
else:
nbsphinx_execute = "auto"


# -- Project information ------------------------------------------------------

# This does not *have* to match the package name, but typically does
project = setup_cfg["name"]
author = setup_cfg["author"]
copyright = "2013-{0}, {1}".format(
datetime.datetime.now().year, setup_cfg["author"])
datetime.datetime.now().year, author)

# The version info for the project you"re documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand All @@ -145,7 +146,7 @@
package = sys.modules[setup_cfg["name"]]

# The short X.Y version.
version = package.__version__.split("-", 1)[0]
version = "latest" # package.__version__.split("-", 1)[0]
# The full version, including alpha/beta/rc tags.
release = package.__version__

Expand Down Expand Up @@ -198,7 +199,7 @@

# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
html_title = "{0} v{1}".format(project, release)
html_title = project # "{0} v{1}".format(project, release)

# Output file base name for HTML help builder.
htmlhelp_basename = project + "doc"
Expand Down

0 comments on commit a60344e

Please sign in to comment.