Skip to content

Commit 6fc8018

Browse files
committed
Add .nojekyll to fix device markdown files serving on GitHub Pages
1 parent 908e34e commit 6fc8018

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

docs/.nojekyll

Whitespace-only changes.

scripts/build_data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ def build():
200200
json.dump(devices, f, ensure_ascii=False, indent=2)
201201

202202
# Copy device markdown files to docs/devices/ for the detail page
203+
if DOCS_DEVICES_DIR.exists():
204+
shutil.rmtree(DOCS_DEVICES_DIR)
203205
DOCS_DEVICES_DIR.mkdir(parents=True, exist_ok=True)
204206
for filepath in md_files:
205207
shutil.copy2(filepath, DOCS_DEVICES_DIR / filepath.name)

0 commit comments

Comments
 (0)