File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 cmake -S . -B build -G Ninja --install-prefix="$(pwd)/build/install" -D MFC_DOCUMENTATION=ON
3838 ninja -C build install
3939
40+ - name : Verify essential site files
41+ run : |
42+ for f in index.html 404.html robots.txt; do
43+ test -f "build/install/docs/mfc/$f" || { echo "Missing $f"; exit 1; }
44+ done
45+
4046 - name : Upload Built Documentation Artifact
4147 uses : actions/upload-artifact@v4
4248 with :
Original file line number Diff line number Diff line change @@ -833,6 +833,7 @@ if (MFC_DOCUMENTATION)
833833 DESTINATION "docs/mfc" )
834834
835835 install (FILES "${CMAKE_CURRENT_SOURCE_DIR} /docs/index.html"
836+ "${CMAKE_CURRENT_SOURCE_DIR} /docs/404.html"
836837 DESTINATION "docs/mfc" )
837838endif ()
838839
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < title > 404 | MFC</ title >
7+ < script src ="https://cdn.tailwindcss.com "> </ script >
8+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css ">
9+ </ head >
10+ < body class ="bg-slate-900 text-white min-h-screen flex flex-col items-center justify-center px-4 ">
11+ < div class ="text-center max-w-md ">
12+ < div class ="text-8xl font-extrabold text-amber-400 mb-4 "> 404</ div >
13+ < h1 class ="text-2xl font-bold mb-2 "> Page not found</ h1 >
14+ < p class ="text-slate-400 mb-8 "> The page you're looking for doesn't exist or has been moved.</ p >
15+ < div class ="flex flex-col sm:flex-row gap-4 justify-center ">
16+ < a href ="/ " class ="px-6 py-3 bg-amber-400 text-slate-900 font-semibold rounded hover:bg-amber-300 transition-colors no-underline ">
17+ < i class ="fa-solid fa-house mr-2 "> </ i > Home
18+ </ a >
19+ < a href ="/documentation/ " class ="px-6 py-3 bg-slate-700 font-semibold rounded hover:bg-slate-600 transition-colors no-underline ">
20+ < i class ="fa-solid fa-book mr-2 "> </ i > Documentation
21+ </ a >
22+ < a href ="https://github.com/MFlowCode/MFC " class ="px-6 py-3 bg-slate-700 font-semibold rounded hover:bg-slate-600 transition-colors no-underline ">
23+ < i class ="fa-brands fa-github mr-2 "> </ i > GitHub
24+ </ a >
25+ </ div >
26+ </ div >
27+ </ body >
28+ </ html >
You can’t perform that action at this time.
0 commit comments