Skip to content

Commit de2b130

Browse files
Move pages to astro pages system
1 parent f45a6bc commit de2b130

File tree

15 files changed

+70
-60
lines changed

15 files changed

+70
-60
lines changed

web/astro.config.mjs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,41 +27,41 @@ export default defineConfig({
2727
label: 'Start here',
2828
items: [
2929
{
30-
slug: 'introduction',
30+
label: 'Introduction', link: 'Introduction',
3131
},
3232
]
3333
},
3434
{
3535
label: 'Reference',
3636
items: [
3737
{
38-
slug: 'lua-api',
38+
label: 'Lua API', link: 'Lua_API',
3939
},
4040
{
4141
label: 'Functions',
4242
items: [
43-
{label: 'All functions', link: '/Scripting_Functions'},
44-
{label: 'Shared functions', link: '/Shared_Scripting_Functions'},
45-
{label: 'Client functions', link: '/Client_Scripting_Functions'},
46-
{label: 'Server functions', link: '/Server_Scripting_Functions'},
43+
{label: 'All functions', link: 'Scripting_Functions'},
44+
{label: 'Shared functions', link: 'Shared_Scripting_Functions'},
45+
{label: 'Client functions', link: 'Client_Scripting_Functions'},
46+
{label: 'Server functions', link: 'Server_Scripting_Functions'},
4747
]
4848
},
4949
{
5050
label: 'Events',
5151
items: [
52-
{label: 'All events', link: '/Scripting_Events'},
53-
{label: 'Client events', link: '/Client_Scripting_Events'},
54-
{label: 'Server events', link: '/Server_Scripting_Events'},
52+
{label: 'All events', link: 'Scripting_Events'},
53+
{label: 'Client events', link: 'Client_Scripting_Events'},
54+
{label: 'Server events', link: 'Server_Scripting_Events'},
5555
]
5656
},
5757
{
5858
label: 'Elements',
5959
items: [
60-
{label: 'Element types', link: '/Element', badge:{
60+
{label: 'Element types', link: 'Element', badge:{
6161
text: 'New',
6262
variant: 'tip',
6363
}},
64-
{slug: 'Element_tree'},
64+
{label: 'Element tree', link: 'Element_tree'},
6565
]
6666
},
6767
]

web/public/_redirects

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/wiki/ /
22
/wiki/* /:splat
3+
4+
/Element/* /:splat

web/src/content/docs/guides/community/.keep

Whitespace-only changes.

web/src/content/docs/guides/official/.keep

Whitespace-only changes.

web/src/content/docs/index.mdx

Lines changed: 0 additions & 19 deletions
This file was deleted.

web/src/content/docs/main/introduction.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

web/src/content/docs/reference/about_oop.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

web/src/content/docs/reference/element_tree.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

web/src/content/docs/reference/lua.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

web/src/pages/Element/index.astro renamed to web/src/pages/Element.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const elements = await getCollection('elements');
1111
<p>An <strong>element</strong> is a generic class that can represent almost all in-game entities. The built-in element types are:</p>
1212
<ul>
1313
{elements.map(element => (
14-
<li><a href={`/Element/${element.id}`}>{element.data.name}</a></li>
14+
<li><a href={`/${element.id}`}>{element.data.name}</a></li>
1515
))}
1616
</ul>
1717
</StarlightPage>

0 commit comments

Comments
 (0)