mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
quickstart: Simplify generated conf.py (version and release)
This commit is contained in:
parent
d08903d9b9
commit
d129f447c3
@ -30,10 +30,16 @@ project = {{ project | repr }}
|
||||
copyright = {{ copyright | repr }}
|
||||
author = {{ author | repr }}
|
||||
|
||||
{%- if version %}
|
||||
|
||||
# The short X.Y version
|
||||
version = {{ version | repr }}
|
||||
{%- endif %}
|
||||
{%- if release %}
|
||||
|
||||
# The full version, including alpha/beta/rc tags
|
||||
release = {{ release | repr }}
|
||||
{%- endif %}
|
||||
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user