mirror of
https://github.com/vale981/releases
synced 2025-03-05 17:51:42 -05:00
Implementation. Fixes #22.
This commit is contained in:
parent
d99e5d4ac7
commit
1529533f59
1 changed files with 4 additions and 1 deletions
|
@ -418,7 +418,7 @@ def generate_changelog(app, doctree):
|
|||
# This seems to be the cleanest way to tell what a not-fully-parsed
|
||||
# document's 'name' is. Also lol @ not fully implementing dict protocol.
|
||||
source = doctree[0]
|
||||
if 'changelog' not in source.get('names', []):
|
||||
if app.config.releases_document_name not in source.get('names', []):
|
||||
return
|
||||
# Second item inside main document is the 'modern' changelog bullet-list
|
||||
# object, whose children are the nodes we care about.
|
||||
|
@ -441,6 +441,9 @@ def setup(app):
|
|||
# Convenience Github version of above
|
||||
app.add_config_value(name='releases_github_path', default=None,
|
||||
rebuild='html')
|
||||
# Which document to use as the changelog
|
||||
app.add_config_value(name='releases_document_name', default='changelog',
|
||||
rebuild='html')
|
||||
# Debug output
|
||||
app.add_config_value(name='releases_debug', default=False, rebuild='html')
|
||||
# Register intermediate roles
|
||||
|
|
Loading…
Add table
Reference in a new issue