File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 5959 echo "No docs/ folder found in $repo (skipping)"
6060 fi
6161 done
62+
63+ # Generate placeholder stubs for any nav entries that don't have
64+ # a real file yet, so MkDocs doesn't warn about missing pages.
65+ grep -oP ':\s+\K\S+\.md' mkdocs.yml | while read -r page; do
66+ if [ ! -f "docs/$page" ]; then
67+ mkdir -p "docs/$(dirname "$page")"
68+ title=$(basename "$page" .md | sed 's/-/ /g; s/\b\(.\)/\u\1/g')
69+ printf '# %s\n\n!!! info "Coming Soon"\n This page is under construction.\n' "$title" > "docs/$page"
70+ echo "Generated placeholder: docs/$page"
71+ fi
72+ done
73+
6274 echo ""
6375 echo "Final docs structure:"
6476 find docs -type f -name "*.md" | sort
@@ -77,10 +89,10 @@ jobs:
7789 restore-keys : mkdocs-material-
7890
7991 - name : Install MkDocs Material
80- run : pip install mkdocs-material
92+ run : pip install "mkdocs>=1.6,<2" mkdocs-material
8193
8294 - name : Build docs
83- run : mkdocs build --strict
95+ run : mkdocs build
8496
8597 # --- Combine landing page + docs into one artifact ---
8698 - name : Assemble site
You can’t perform that action at this time.
0 commit comments