Skip to content

Commit 51339d1

Browse files
tobiasdiezkwankyu
andcommitted
Remove unused conf.py files
Co-authored-by: Kwankyu Lee <ekwankyu@gmail.com>
1 parent b4473ef commit 51339d1

File tree

5 files changed

+9
-86
lines changed

5 files changed

+9
-86
lines changed

src/doc/en/thematic_tutorials/explicit_methods_in_number_theory/conf.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/doc/en/thematic_tutorials/explicit_methods_in_number_theory/meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ doc_sources = [
22
'birch.png',
33
'birds_eye_view.rst',
44
'birds_other.rst',
5-
'conf.py',
65
'elliptic_curves.rst',
76
'generators_for_rings.rst',
87
'half_integral.rst',

src/doc/en/thematic_tutorials/numerical_sage/conf.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/doc/en/thematic_tutorials/numerical_sage/meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
doc_sources = [
22
'comparison_to_cython.rst',
3-
'conf.py',
43
'ctypes.rst',
54
'ctypes_examples.rst',
65
'cvxopt.rst',

tools/update-meson.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,15 @@ def update_doc_sources(self: Rewriter, visitor: AstPython):
196196
target.value.args.arguments.append(StringNode(token))
197197
if target not in self.modified_nodes:
198198
self.modified_nodes += [target]
199+
# Remove all files that are no longer existing
200+
for file in existing_sources:
201+
if not (folder / file).exists():
202+
existing_sources.remove(file)
203+
token = next((x for x in target.value.args.arguments if getattr(x, "value", None) == file), None)
204+
if token is not None:
205+
target.value.args.arguments.remove(token)
206+
if target not in self.modified_nodes:
207+
self.modified_nodes += [target]
199208

200209
# Add all missing meson files in the src/doc folder
201210
doc_folder = Path(options.sourcedir) / "src" / "doc"

0 commit comments

Comments
 (0)