Skip to content

Commit

Permalink
Make sure the documentation is aware of env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Dec 10, 2024
1 parent e9862f4 commit f8f4bb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/sphinx/sphinx_lief_doc/config/lief_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ def setup(app: Sphinx):
app.config.version = get_version()
app.config.release = get_release()

app.config.lief_is_release = lief.__is_tagged__ or \
os.getenv(_LIEF_RELEASE_ENV_KEY) is not None
app.config.lief_is_release = os.getenv(_LIEF_RELEASE_ENV_KEY) is not None or \
lief.__is_tagged__

app.config.lief_commit = lief.__commit__
app.config.lief_commit = os.getenv("LIEF_COMMIT") or lief.__commit__
app.config.lief_public_website = "https://lief.re"
app.config.lief_html_theme = "sphinx_lief"
app.config.lief_doc_endpoint = "stable" if app.config.lief_is_release else "latest"
Expand Down

0 comments on commit f8f4bb7

Please sign in to comment.