Skip to content

Commit 3ebde4f

Browse files
separate blocks page and adjust stuff
1 parent 94f070a commit 3ebde4f

11 files changed

Lines changed: 715 additions & 608 deletions

File tree

.vitepress/config.mts

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { scratchblocksPlugin } from 'sb-mdit'
44
// https://vitepress.dev/reference/site-config
55
export default defineConfig({
66
title: "Scratch Specification",
7+
description: "An explanation of Scratch 3.0",
8+
// head: [['link', { rel: 'icon', href: '/favicon.ico' }]], // https://github.com/vuejs/vitepress/discussions/2475#discussioncomment-11238929
79
base: "/scratch-spec/", // https://vitepress.dev/guide/deploy#setting-a-public-base-path
810
ignoreDeadLinks: true,
911

@@ -12,9 +14,10 @@ export default defineConfig({
1214
nav: [
1315
{ text: 'Home', link: '/' },
1416
{ text: 'Intro', link: '/intro/' },
15-
{ text: 'Concepts', link: '/concepts/' },
17+
{ text: 'Index', link: '/index/' },
18+
{ text: 'Ideas', link: '/ideas/' },
1619
{ text: 'Runtime', link: '/runtime/' },
17-
{ text: 'Blocks', link: '/palette/' },
20+
{ text: 'Blocks', link: '/blocks/' },
1821
{ text: 'Files', link: '/files/' },
1922
{ text: 'I/O', link: '/io/' },
2023
{ text: 'Network', link: '/network/' },
@@ -27,21 +30,29 @@ export default defineConfig({
2730
link: '/intro/',
2831
items: [
2932
{ text: 'FAQ', link: '/intro/#faq' },
30-
{ text: 'Contents', link: '/contents/' },
31-
{ text: 'Contributing', link: '/intro/#contributing' }
33+
{ text: 'Contents', link: '/index/' },
34+
{
35+
text: 'Contributing', link: '/intro/#contributing', items: [
36+
{ text: 'TODO', link: '/todo/' }
37+
]
38+
}
3239
]
3340
},
3441
{
3542
text: 'Concepts',
36-
link: '/concepts/',
43+
link: '/ideas/',
3744
items: [
38-
{ text: 'Capabilities', link: '/concepts/#capabilities' },
39-
{ text: 'Constants', link: '/concepts/#constants' },
40-
{ text: 'Ideas', link: '/concepts/#ideas' },
41-
{ text: 'Values', link: '/concepts/#values' },
42-
{ text: 'Procedures', link: '/concepts/#procedures' }
45+
{ text: 'Capabilities', link: '/ideas/#capabilities' },
46+
{ text: 'Constants', link: '/ideas/#constants' },
47+
{ text: 'Ideas', link: '/ideas/#ideas' },
48+
{ text: 'Values', link: '/ideas/#values' },
49+
{ text: 'Procedures', link: '/ideas/#procedures' }
4350
]
4451
},
52+
{
53+
text: 'Palette',
54+
link: '/blocks/'
55+
}
4556
],
4657

4758
socialLinks: [
@@ -55,6 +66,9 @@ export default defineConfig({
5566

5667
markdown: {
5768
math: true,
58-
config: md => md.use(scratchblocksPlugin)
69+
config: (md) => {
70+
md.use(scratchblocksPlugin) // https://github.com/OceanIsEndless/scratch-spec/pull/5#issuecomment-3137259965
71+
// May add more if needed
72+
}
5973
}
6074
})

0 commit comments

Comments
 (0)