Skip to content

Commit 8931335

Browse files
author
DerGoogler
committed
update
1 parent aff95f7 commit 8931335

File tree

17 files changed

+2483
-207
lines changed

17 files changed

+2483
-207
lines changed

docs/.vitepress/config.ts

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
import { defineConfig, SiteConfig } from 'vitepress'
22
import locales from './locales'
33

4-
export default defineConfig( {
5-
title: 'MMRL',
6-
locales: locales.locales,
7-
sitemap: {
8-
hostname: 'https://mmrl.dev'
9-
},
10-
head: [
11-
[
12-
'script',
13-
{
14-
async: 'async',
15-
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5042729416879007',
16-
crossorigin: 'anonymous',
17-
}
18-
],
19-
],
20-
})
4+
export default defineConfig(
5+
{
6+
markdown: {
7+
lineNumbers: true
8+
},
9+
title: 'MMRL',
10+
locales: locales.locales,
11+
sitemap: {
12+
hostname: 'https://mmrl.dev'
13+
},
14+
head: [
15+
[
16+
'script',
17+
{
18+
async: 'async',
19+
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5042729416879007',
20+
crossorigin: 'anonymous',
21+
}
22+
],
23+
],
24+
}
25+
)

docs/.vitepress/locales/en.ts

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,32 +24,55 @@ export default defineConfig({
2424
],
2525

2626
footer: {
27-
message: 'Released under the GPL3 License.',
28-
copyright: 'Copyright © 2022-present Der_Googler and its contributors'
27+
message: 'Released under the GPL3 License.',
28+
copyright: 'Copyright © 2022-present Der_Googler and its contributors'
2929
},
3030

3131
editLink: {
32-
pattern: 'https://github.com/MMRLApp/MMRLApp.github.io/edit/master/docs/:path',
33-
text: 'Edit this page on GitHub'
32+
pattern: 'https://github.com/MMRLApp/MMRLApp.github.io/edit/master/docs/:path',
33+
text: 'Edit this page on GitHub'
3434
}
3535
}
3636
})
3737

3838
function nav() {
3939
return [
4040
{ text: 'Home', link: '/home/repositories' },
41-
{ text: 'Guide', link: '/guide/index' },
41+
{ text: 'Guide', link: '/guide' },
4242
]
4343
}
4444

4545
function sidebarGuide() {
4646
return [
4747
{
48-
text: 'Guide',
49-
items: [
50-
{ text: 'Module WebUI', link: '/guide/module-webui.md' },
51-
{ text: 'FAQ', link: '/guide/faq' },
52-
]
48+
text: 'Guide',
49+
items: [
50+
{
51+
text: 'WebUI',
52+
items: [
53+
{ text: 'Getting Started', link: '/guide/webui/' },
54+
{
55+
text: 'API',
56+
items: [
57+
{ text: 'FileSystem', link: '/guide/webui/api/filesystem' },
58+
{ text: 'MMRLInterface', link: '/guide/webui/api/mmrlinterface' },
59+
{ text: 'Toast', link: '/guide/webui/api/toast' },
60+
{ text: 'VersionInterface', link: '/guide/webui/api/versioninterface' },
61+
]
62+
},
63+
]
64+
},
65+
{
66+
text: 'MMRL-Util',
67+
items: [
68+
{ text: 'Getting Started', link: '/guide/mmrl-util/' },
69+
{ text: 'repo.json', link: '/guide/mmrl-util/repo-json' },
70+
{ text: 'track.json', link: '/guide/mmrl-util/track-json' },
71+
{ text: 'config.json', link: '/guide/mmrl-util/config-json' },
72+
]
73+
},
74+
{ text: 'FAQ', link: '/guide/faq' },
75+
]
5376
}
5477
]
5578
}
@@ -58,10 +81,10 @@ function sidebarGuide() {
5881
function sidebarHome() {
5982
return [
6083
{
61-
text: 'Home',
62-
items: [
63-
{ text: 'Repositories', link: '/home/repositories' },
64-
]
84+
text: 'Home',
85+
items: [
86+
{ text: 'Repositories', link: '/home/repositories' },
87+
]
6588
}
6689
]
6790
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
### `config.json` Documentation
2+
3+
This JSON configuration file contains settings related to a Magisk repository. Below is a detailed explanation of each field in the `config.json` file.
4+
5+
---
6+
7+
### `name` (required)
8+
9+
The name of the repository.
10+
11+
```json
12+
"name": "Template Magisk Modules Repository"
13+
```
14+
15+
### `base_url` (required)
16+
17+
The base URL for fetching repository modules and tracks. The end slash is required!
18+
19+
```json
20+
"base_url": "https://example.com/"
21+
```
22+
23+
### `website`
24+
25+
The URL of the repository's website.
26+
27+
```
28+
"website": "https://mmrl.dergoogler.com"
29+
```
30+
31+
### `support`
32+
33+
The URL to the support page for the repository.
34+
35+
```json
36+
"support": "url"
37+
```
38+
39+
### `donate`
40+
41+
The URL where users can donate to support the repository.
42+
43+
```json
44+
"donate": "url"
45+
```
46+
47+
### `submission`
48+
49+
This field allows submitting new tracks or modules to the repository.
50+
51+
```json
52+
"submission": "url"
53+
```
54+
55+
### `description
56+
57+
````
58+
59+
A brief description of the repository.
60+
61+
```json
62+
"description": "url"
63+
````
64+
65+
### `max_num`
66+
67+
Specifies the maximum number of allowed modules or users that the repository can support.
68+
69+
```json
70+
"max_num": 3
71+
```
72+
73+
### `enable_log`
74+
75+
A flag that enables or disables logging. Set to `true` to enable.
76+
77+
```json
78+
"enable_log": true
79+
```
80+
81+
### `log_dir`
82+
83+
Specifies the directory where logs will be stored.
84+
85+
```json
86+
"log_dir": "log"
87+
```

docs/guide/mmrl-util/index.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Magisk Modules Repo Util
2+
3+
This util is to build module repository for [MMRL](https://github.com/DerGoogler/MMRL)
4+
5+
## Getting Started
6+
7+
### Install dependencies
8+
9+
```shell
10+
pip3 install mmrl-util
11+
```
12+
13+
### New config.json
14+
15+
You can write it to `your-repo/json/config.json` by yourself, or
16+
17+
```shell
18+
cli.py config --stdin << EOF
19+
{
20+
"name": "Your Magisk Repo",
21+
"base_url": "https://you.github.io/magisk-modules-repo/",
22+
"max_num": 3,
23+
"enable_log": true,
24+
"log_dir": "log"
25+
}
26+
EOF
27+
```
28+
29+
or
30+
31+
```shell
32+
cli.py config --write name="Your Magisk Repo" base_url="https://you.github.io/magisk-modules-repo/" max_num=3 enable_log=true log_dir="log"
33+
```
34+
35+
## How to update by GitHub Actions?
36+
37+
- You can refer to our [example-repository](https://github.com/Googlers-Repo/example-repository).
38+
39+
## mmrl-util
40+
41+
```
42+
mmrl-util --help
43+
usage: mmrl-util [-h] [-v] [-V] command ...
44+
45+
Magisk Modules Repo Util
46+
47+
positional arguments:
48+
command
49+
config Modify config of repository.
50+
track Module tracks utility.
51+
github Generate tracks from GitHub.
52+
sync Sync modules in repository.
53+
index Generate modules.json from local.
54+
check Content check and migrate.
55+
sitemap Sitemap generator.
56+
57+
options:
58+
-h, --help Show this help message and exit.
59+
-v, --version Show util version and exit.
60+
-V, --version-code Show util version code and exit.
61+
```
62+
63+
### Learn more!
64+
65+
- [TrackJson](./track-json)
66+
- [ConfigJson](./config-json)
67+
- [RepoJson](./repo-json)

0 commit comments

Comments
 (0)