Skip to content

Commit 0e2ec6d

Browse files
committed
Fix up ford deletion of gitignore
1 parent ee4a265 commit 0e2ec6d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/gen_fortran_api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
import shutil
88
import subprocess
9+
from pathlib import Path
10+
11+
REPO_ROOT = Path(__file__).parents[1]
912

1013
ford = shutil.which("ford")
1114
if ford is None:
@@ -16,3 +19,6 @@
1619
[ford, "ford_config.md"],
1720
check=True,
1821
)
22+
23+
# Put back the gitkeep file which ford deletes
24+
(REPO_ROOT / "docs" / "fortran-api" / ".gitkeep").touch()

0 commit comments

Comments
 (0)