Skip to content

Commit c5e7218

Browse files
committed
Simplify chatter remover
1 parent cd8ac75 commit c5e7218

File tree

2 files changed

+10
-32
lines changed

2 files changed

+10
-32
lines changed

src/sage_docbuild/ext/inventory_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class InventoryBuilder(DummyBuilder):
2626

2727
name = "inventory"
2828
format = "inventory"
29-
epilog = "The inventory files are in %(outdir)s."
29+
epilog = "saved inventory file " + INVENTORY_FILENAME + " in %(outdir)s"
3030

3131
def get_outdated_docs(self) -> Iterable[str]:
3232
"""

src/sage_docbuild/sphinxbuild.py

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -84,40 +84,18 @@ def _init_chatter(self):
8484
# expressions. These just bloat the output and do not contain any
8585
# information that we care about.
8686
self._useless_chatter = (
87-
re.compile('^$'),
88-
re.compile('^Running Sphinx v'),
89-
re.compile('^loading intersphinx inventory from '),
90-
re.compile('^loading pickled environment... done'),
91-
re.compile(r'^loading cross citations... done \([0-9]* citations\).'),
92-
re.compile('^Compiling a sub-document'),
93-
re.compile('^updating environment: 0 added, 0 changed, 0 removed'),
94-
re.compile('^executing .*'),
95-
re.compile('^looking for now-outdated files... none found'),
87+
re.compile(r'^$'),
88+
re.compile(r'^Running Sphinx'),
89+
re.compile(r'^updating environment: 0 added, 0 changed, 0 removed'),
9690
re.compile(r'^building \[.*\]: targets for 0 source files that are out of date'),
9791
re.compile(r'^building \[.*\]: targets for 0 po files that are out of date'),
9892
re.compile(r'^building \[.*\]: targets for 0 mo files that are out of date'),
99-
re.compile('^pickling environment... done'),
100-
re.compile('^dumping object inventory... done'),
101-
re.compile('^build succeeded.'), # We still have "Build finished."
102-
re.compile('^checking consistency... done'),
103-
re.compile('^preparing documents... done'),
104-
re.compile('^copying extra files... done'),
105-
re.compile('^writing additional pages... search'),
106-
re.compile('^Writing js search indexes...writing additional pages... .*'),
107-
re.compile('^generating indices... .*'),
108-
re.compile('^dumping search index in .* ... done'),
109-
re.compile('^linking _static directory'),
110-
re.compile('^copying static files... done'),
111-
re.compile('^copying extra files... done'),
112-
re.compile(r'^loading translations \[.*\]... done'),
113-
re.compile('^Compiling the master document'),
114-
re.compile('^Saved pickle file: citations.pickle'),
115-
re.compile(r'^writing output... \[.*\] '),
116-
re.compile(r'^copying images... \[.*\] '),
117-
re.compile(r'^reading sources... \[.*\] '),
118-
re.compile('language "hu" not supported'),
119-
re.compile('^$'),
120-
re.compile('^WARNING:$'),
93+
re.compile(r'^build succeeded'), # We still have "Build finished."
94+
re.compile(r'^Saved pickle file: citations\.pickle'),
95+
re.compile(r'^Compiling|Copying|Merging|Writing'),
96+
re.compile(r'^compiling|copying|checking|dumping|executing|generating|linking|loading|looking|pickling|preparing|reading|writing'),
97+
re.compile(r'done'),
98+
re.compile(r'^WARNING:$'),
12199
)
122100

123101
# We fail whenever a line starts with "WARNING:", however, we ignore

0 commit comments

Comments
 (0)