Skip to content

Commit 5a30247

Browse files
committed
fix: resolve broken links and create dedicated core concept pages
- Fix broken links: - Update Footer GitHub link from generic to project-specific - Change Footer "API Reference" label to "Documentation" - Fix all /docs/createMachine/ links to /docs/createmachine/ (lowercase) - Remove broken robot/debug link reference - Ensure all doc links have trailing slashes - Create dedicated core concept pages: - Add concepts-state.md - Understanding State in FSMs - Add concepts-transitions.md - Understanding Transitions - Add concepts-events.md - Understanding Events - Add concepts-guards.md - Understanding Guards - Add concepts-actions.md - Understanding Actions - Update core-concepts.md to serve as overview page with links to detailed concept pages - Update DocsSidebar to link to new individual concept pages instead of hash sections Fixes #249
1 parent e50f524 commit 5a30247

File tree

13 files changed

+2032
-282
lines changed

13 files changed

+2032
-282
lines changed

docs/astro.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@ export default defineConfig({
99
},
1010
markdown: {
1111
syntaxHighlight: 'prism'
12+
},
13+
server: {
14+
host: '0.0.0.0'
1215
}
1316
});

docs/src/components/DocsSidebar.astro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ const activeItem = undefined;
77
const sections = {
88
'CORE_CONCEPTS': [
99
{ title: "Overview", id: "overview", slug: "core-concepts" },
10-
{ title: "STATE", id: "state", slug: "core-concepts", hash: "#state" },
11-
{ title: "TRANSITIONS", id: "transitions", slug: "core-concepts", hash: "#transitions" },
12-
{ title: "EVENTS", id: "events", slug: "core-concepts", hash: "#events" },
13-
{ title: "GUARDS", id: "guards", slug: "core-concepts", hash: "#guards" },
14-
{ title: "ACTIONS", id: "actions", slug: "core-concepts", hash: "#actions" }
10+
{ title: "STATE", id: "state", slug: "concepts-state" },
11+
{ title: "TRANSITIONS", id: "transitions", slug: "concepts-transitions" },
12+
{ title: "EVENTS", id: "events", slug: "concepts-events" },
13+
{ title: "GUARDS", id: "guards", slug: "concepts-guards" },
14+
{ title: "ACTIONS", id: "actions", slug: "concepts-actions" }
1515
],
1616
'GUIDES': [
1717
{ title: "COMPOSITION", id: "composition", slug: "composition" },

docs/src/components/Footer.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Heart from '../icons/Heart.astro';
88
<div>
99
<h3 class="font-mono text-cyan-400 font-bold mb-4 text-sm">CONNECT</h3>
1010
<div class="space-y-2">
11-
<a href="https://github.com" class="flex items-center justify-center gap-2 text-gray-200 hover:text-cyan-400 transition-colors">
11+
<a href="https://github.com/matthewp/robot" class="flex items-center justify-center gap-2 text-gray-200 hover:text-cyan-400 transition-colors">
1212
<Github size={16} />
1313
<span>GitHub</span>
1414
</a>
@@ -18,7 +18,7 @@ import Heart from '../icons/Heart.astro';
1818
<div>
1919
<h3 class="font-mono text-cyan-400 font-bold mb-4 text-sm">DOCS</h3>
2020
<div class="space-y-2">
21-
<a href="/docs/" class="block text-gray-200 hover:text-cyan-400 transition-colors">API Reference</a>
21+
<a href="/docs/" class="block text-gray-200 hover:text-cyan-400 transition-colors">Documentation</a>
2222
</div>
2323
</div>
2424

0 commit comments

Comments
 (0)