Skip to content

Commit ee4a265

Browse files
committed
Ignore script in mkdocs.yml and remove name equals main guard
1 parent 9315529 commit ee4a265

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

docs/gen_fortran_api.py

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,12 @@
77
import shutil
88
import subprocess
99

10+
ford = shutil.which("ford")
11+
if ford is None:
12+
msg = "Could not find FORD executable"
13+
raise AssertionError(msg)
1014

11-
def main():
12-
"""
13-
Generate the Fortran docs woth FORD
14-
"""
15-
ford = shutil.which("ford")
16-
if ford is None:
17-
msg = "Could not find FORD executable"
18-
raise AssertionError(msg)
19-
20-
subprocess.run( # noqa: S603
21-
[ford, "ford_config.md"],
22-
check=True,
23-
)
24-
25-
26-
if __name__ == "__main__":
27-
main()
15+
subprocess.run( # noqa: S603
16+
[ford, "ford_config.md"],
17+
check=True,
18+
)

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ plugins:
5757
allow_errors: false
5858
# theme: dark
5959
include_source: True
60-
ignore: ["*.ipynb", "*.md", "docs/gen_doc_stubs.py"]
60+
ignore: ["*.ipynb", "*.md", "docs/gen_doc_stubs.py", "docs/gen_fortran_api.py"]
6161
remove_tag_config:
6262
remove_input_tags:
6363
- remove_input

0 commit comments

Comments
 (0)