Skip to content

Commit

Permalink
Merge pull request #51 from simplematter/rst_prolog
Browse files Browse the repository at this point in the history
Version-dependent rst_prolog
  • Loading branch information
Holzhaus authored Dec 4, 2020
2 parents a0f42e8 + ec1829b commit dd282b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sphinx_multiversion/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ def main(argv=None):
"name": gitref.name,
"version": current_config.version,
"release": current_config.release,
"rst_prolog": current_config.rst_prolog,
"is_released": bool(
re.match(config.smv_released_pattern, gitref.refname)
),
Expand Down
1 change: 1 addition & 0 deletions sphinx_multiversion/sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def config_inited(app, config):
old_config.init_values()
config.version = data["version"]
config.release = data["release"]
config.rst_prolog = data["rst_prolog"]
config.today = old_config.today
if not config.today:
config.today = sphinx_i18n.format_date(
Expand Down

0 comments on commit dd282b1

Please sign in to comment.