Skip to content

Commit 3c8f706

Browse files
committed
Add default social links to the template
1 parent be96cb1 commit 3c8f706

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

Diff for: packages/starlight-theme-mtasa/README.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Starlight theme for Multi Theft Auto
2+
3+
This repository contains the [Starlight](https://starlight.astro.build/) theme used by [Multi Theft Auto](https://multitheftauto.com/).
4+
5+
## Installation
6+
7+
1. Install the package
8+
```
9+
npm i @multitheftauto/starlight-theme-mtasa
10+
```
11+
12+
2. Edit your `astro.config.mjs`
13+
```diff
14+
import starlight from '@astrojs/starlight'
15+
import { defineConfig } from 'astro/config'
16+
import starlightVersions from 'starlight-versions'
17+
+ import mtasaStarlightThemePlugin from '@multitheftauto/starlight-theme-mtasa';
18+
19+
export default defineConfig({
20+
integrations: [
21+
starlight({
22+
title: 'My Docs',
23+
+ plugins: [mtasaStarlightThemePlugin()],
24+
}),
25+
],
26+
})
27+
```
28+
29+
## License
30+
31+
Copyright (c) 2025 Multi Theft Auto team and contributors.
32+
33+
Permission is granted to copy, distribute and/or modify these source files under the terms of the [MIT License](LICENSE). A copy of the [license](LICENSE) is included in the root directory of the repository.

Diff for: packages/starlight-theme-mtasa/index.ts

+8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ export default function mtasaStarlightThemePlugin(): StarlightPlugin {
1717
ThemeSelect: `${packageName}/ThemeSelect.astro`,
1818
Header: `${packageName}/Header.astro`,
1919
...config.components ?? {},
20+
},
21+
social: {
22+
github: 'https://github.com/multitheftauto/',
23+
discord: 'https://discord.com/invite/mtasa',
24+
youtube: 'https://youtube.com/user/mtaqa',
25+
twitch: 'https://twitch.tv/mtaqa',
26+
'x.com': 'https://x.com/mtaqa',
27+
...config.social ?? {},
2028
}
2129
})
2230
}

Diff for: packages/starlight-theme-mtasa/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@multitheftauto/starlight-theme-mtasa",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "Starlight theme for Multi Theft Auto",
55
"type": "module",
66
"repository": {

0 commit comments

Comments
 (0)