-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new confval "author" and use it for lazy evaluation #4518
Add new confval "author" and use it for lazy evaluation #4518
Conversation
CHANGES
Outdated
@@ -20,6 +23,7 @@ Features added | |||
* Add :event:`config-inited` event | |||
* Add ``sphinx.config.Any`` to represent the config value accepts any type of | |||
value | |||
* Add :confval:`author` as a configuration value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far, author
is defined as local variable in conf.py
.
This enables all of Sphinx modules can refer it.
4fc3f92
to
41769f1
Compare
@@ -231,9 +231,9 @@ def setup(app): | |||
app.add_config_value('epub_theme', 'epub', 'html') | |||
app.add_config_value('epub_theme_options', {}, 'html') | |||
app.add_config_value('epub_title', lambda self: self.html_title, 'html') | |||
app.add_config_value('epub_author', 'unknown', 'html') | |||
app.add_config_value('epub_author', lambda self: self.author, 'html') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is same as what quickstart does.
sphinx/sphinx/templates/quickstart/conf.py_t
Lines 173 to 177 in 77ae424
# Bibliographic Dublin Core info. | |
epub_title = project | |
epub_author = author | |
epub_publisher = author | |
epub_copyright = copyright |
So I will be able to omit them from conf.py
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks! |
Feature or Bugfix
Purpose
author