@@ -81,34 +81,25 @@ jobs:
8181
8282 - name : Copy README to github-pages with TOC
8383 run : |
84- # Front matter
8584 printf '%s\n' '---' 'layout: default' 'title: MCAF Guide' 'nav_order: 1' '---' '' > github-pages/index.md
86-
87- # Header (before first ---)
8885 awk '/^---$/{exit} {print}' README.md >> github-pages/index.md
89-
90- # TOC
91- cat >> github-pages/index.md << 'TOCEOF'
92-
93- <nav class="toc">
94- <div class="toc-title">Table of Contents</div>
95- <ol>
96- <li><a href="#1-what-mcaf-is">What MCAF Is</a></li>
97- <li><a href="#2-context">Context</a></li>
98- <li><a href="#3-verification">Verification</a></li>
99- <li><a href="#4-instructions-and-agentsmd">Instructions and AGENTS.md</a></li>
100- <li><a href="#5-coding-and-testability">Coding and Testability</a></li>
101- <li><a href="#6-perspectives">Perspectives</a></li>
102- <li><a href="#7-development-cycle">Development Cycle</a></li>
103- <li><a href="#8-ai-participation-modes">AI Participation Modes</a></li>
104- <li><a href="#9-adopting-mcaf-in-a-repository">Adopting MCAF</a></li>
105- </ol>
106- </nav>
107-
108- ---
109- TOCEOF
110-
111- # Content (after first ---)
86+ echo '' >> github-pages/index.md
87+ echo '<nav class="toc">' >> github-pages/index.md
88+ echo '<div class="toc-title">Table of Contents</div>' >> github-pages/index.md
89+ echo '<ol>' >> github-pages/index.md
90+ echo '<li><a href="#1-what-mcaf-is">What MCAF Is</a></li>' >> github-pages/index.md
91+ echo '<li><a href="#2-context">Context</a></li>' >> github-pages/index.md
92+ echo '<li><a href="#3-verification">Verification</a></li>' >> github-pages/index.md
93+ echo '<li><a href="#4-instructions-and-agentsmd">Instructions and AGENTS.md</a></li>' >> github-pages/index.md
94+ echo '<li><a href="#5-coding-and-testability">Coding and Testability</a></li>' >> github-pages/index.md
95+ echo '<li><a href="#6-perspectives">Perspectives</a></li>' >> github-pages/index.md
96+ echo '<li><a href="#7-development-cycle">Development Cycle</a></li>' >> github-pages/index.md
97+ echo '<li><a href="#8-ai-participation-modes">AI Participation Modes</a></li>' >> github-pages/index.md
98+ echo '<li><a href="#9-adopting-mcaf-in-a-repository">Adopting MCAF</a></li>' >> github-pages/index.md
99+ echo '</ol>' >> github-pages/index.md
100+ echo '</nav>' >> github-pages/index.md
101+ echo '' >> github-pages/index.md
102+ echo '---' >> github-pages/index.md
112103 awk '/^---$/{found=1; next} found{print}' README.md >> github-pages/index.md
113104
114105 - name : Setup Pages
0 commit comments