Skip to content

Commit 71d332e

Browse files
Move articles to starlight docs
1 parent 2f39cb7 commit 71d332e

File tree

7 files changed

+25
-35
lines changed

7 files changed

+25
-35
lines changed

web/astro.config.mjs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ export default defineConfig({
2828
social: [
2929
{ icon: 'github', label: 'GitHub', href: 'https://github.com/multitheftauto/wiki.multitheftauto.com' },
3030
],
31+
editLink: {
32+
baseUrl: 'https://github.com/multitheftauto/wiki.multitheftauto.com/edit/main/web/',
33+
},
3134
components: {
3235
// Override some default components
3336
PageTitle: './src/overrides/PageTitle.astro',
@@ -43,28 +46,24 @@ export default defineConfig({
4346
label: 'Introduction', link: '/',
4447
},
4548
{
46-
label: 'How you can help', link: '/articles/How_you_can_help',
49+
label: 'Contributing', link: '/Contributing',
4750
},
4851
{
4952
label: 'Incomplete Pages', link: '/Incomplete_Pages', badge: { text: 'Help Wanted', variant: 'tip' },
5053
},
5154
]
5255
},
5356
{
54-
label: 'Tutorials',
55-
items: [
56-
{
57-
label: 'Scripting Introduction', link: '/articles/Scripting_Introduction',
58-
},
59-
]
57+
label: 'Articles',
58+
autogenerate: { directory: 'articles' }
6059
},
6160
{
6261
label: 'Reference',
6362
items: [
64-
{label: 'ID Lists', link: '/reference/ID_Lists'},
6563
{
6664
label: 'Resources',
6765
items: [
66+
{label: 'ID Lists', link: '/reference/ID_Lists'},
6867
{ label: 'Lua API', link: '/reference/Lua_API' },
6968
{ label: 'Meta.xml', link: '/reference/Meta.xml'},
7069
{ label: 'Resource Web Access', link: '/reference/Resource_Web_Access'},
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Script Security
3+
---
4+
5+
TODO
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Scripting Introduction
3+
description: A tutorial on how to use the MTA scripting capabilities
4+
---
5+
6+
## Test - this shows in TOC
7+
8+
### This also shows
9+
10+
#### This doesn't
11+
12+
Lmao

web/src/pages/articles/Script_security.astro

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

web/src/pages/articles/Scripting_Introduction.astro

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

web/src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { Icon } from '@astrojs/starlight/components';
2626
<div class="mtahero_right">
2727
<p>Welcome to the <strong>new Multi Theft Auto Wiki</strong> (work in progress). Visit this wiki's <a href="https://github.com/multitheftauto/wiki.multitheftauto.com" target="_blank">GitHub repository</a> for more information about the project and how to contribute. The old wiki is still active at <a href="https://wiki.multitheftauto.com/wiki/Main_Page">wiki.multitheftauto.com</a> (where unofficial articles and pages are still available).</p>
2828

29-
<p>There are many <a href="/articles/How_you_can_help">things you can do</a> to help us improve MTA - create a map, a gamemode, help document scripting functions, write example code, write tutorials or just play MTA and report the bugs you find.</p>
29+
<p>There are many <a href="/Contributing">things you can do</a> to help us improve MTA - create a map, a gamemode, help document scripting functions, write example code, write tutorials or just play MTA and report the bugs you find.</p>
3030

3131
<p>If you have any questions or problems related to scripting, feel free to get in touch with us on <a href="https://discord.com/invite/mtasa" target="_blank">Discord</a>.</p>
3232

0 commit comments

Comments
 (0)