-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix: missing and redundant spacing (and etc) for console output on building #8277
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -641,17 +641,17 @@ def gen_pages_from_extensions(self) -> None: | |
def gen_additional_pages(self) -> None: | ||
# additional pages from conf.py | ||
for pagename, template in self.config.html_additional_pages.items(): | ||
logger.info(' ' + pagename, nonl=True) | ||
logger.info(pagename + ' ', nonl=True) | ||
self.handle_page(pagename, {}, template) | ||
|
||
# the search page | ||
if self.search: | ||
logger.info(' search', nonl=True) | ||
logger.info('search ', nonl=True) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "after spacing" |
||
self.handle_page('search', {}, 'search.html') | ||
|
||
# the opensearch xml file | ||
if self.config.html_use_opensearch and self.search: | ||
logger.info(' opensearch', nonl=True) | ||
logger.info('opensearch ', nonl=True) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "after spacing" |
||
fn = path.join(self.outdir, '_static', 'opensearch.xml') | ||
self.handle_page('opensearch', {}, 'opensearch.xml', outfilename=fn) | ||
|
||
|
@@ -669,7 +669,7 @@ def write_genindex(self) -> None: | |
'genindexcounts': indexcounts, | ||
'split_index': self.config.html_split_index, | ||
} | ||
logger.info(' genindex', nonl=True) | ||
logger.info('genindex ', nonl=True) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "after spacing" |
||
|
||
if self.config.html_split_index: | ||
self.handle_page('genindex', genindexcontext, | ||
|
@@ -691,7 +691,7 @@ def write_domain_indices(self) -> None: | |
'content': content, | ||
'collapse_index': collapse, | ||
} | ||
logger.info(' ' + indexname, nonl=True) | ||
logger.info(indexname + ' ', nonl=True) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "after spacing" |
||
self.handle_page(indexname, indexcontext, 'domainindex.html') | ||
|
||
def copy_image_files(self) -> None: | ||
|
@@ -785,7 +785,7 @@ def copy_html_favicon(self) -> None: | |
|
||
def copy_static_files(self) -> None: | ||
try: | ||
with progress_message(__('copying static files... ')): | ||
with progress_message(__('copying static files')): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removing redundant Already |
||
ensuredir(path.join(self.outdir, '_static')) | ||
|
||
# prepare context for templates | ||
|
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.
@progress_message
decorator uses "after spacing" model, so logger output inside the decorator should use same model.sphinx/sphinx/util/__init__.py
Lines 691 to 707 in ae7c4cc