Configurations for NJU Open Source Software Mirror.
usage: Mira documentations list generator [-h] [-d DIR]
Generate documentations list for Mira
optional arguments:
-h, --help show this help message and exit
-d DIR, --dir DIR Specify the directory which contains documentations. Default value is
`./documentations`.
- Fork this repository.
- Place your new mirror documentation by putting your
*.md
file in/documentations/
. A sample file is as follows:Filename:
2021-13-37-flatter.md
Content:## Flatter 镜像安装帮助 阿巴阿巴 ### 歪比巴卜 ...
- Add your new documentation and its route to
index.json
by runningscripts/gendoc/genjson.py
with documentations path specified such aspython genjson.py -d ../../documentations
. This will generate a newindex.json
. - Create a merge/pull request to let us know.
You can preview this project on https://iori2333.github.io/Mira.
usage: Mira news list generator [-h] [-d DIR]
Generate news list for Mira
optional arguments:
-h, --help show this help message and exit
-d DIR, --dir DIR Specify the directory which contains news. Default value is current work directory.
- Fork this repository
- Place the
*.md
news document in/news/
. The filename of your document must match<yyyy>-<mm>-<dd>-<title>.md
, for example,2021-13-37-SomeNews.md
. - Run
scripts/gennews/gennews.py
with news path specified such aspython gennews.py -d ../../news
. This will generate a newindex.json
. - Create a merge/pull request to let us know.
usage: Mira download list generator [-h] [-d DIR] [-R REMOTE] [-T [TEST ...]]
Generate download list for Mira
options:
-h, --help show this help message and exit
-d DIR, --dir DIR Override root directory.
-R REMOTE, --Remote REMOTE
[Remote Mode] Using rsync to get file list instead of reading from local filesystem. Need the base of
target site, for example, `mirror.nju.edu.cn`.
-T [TEST ...], --Test [TEST ...]
Test specified `distro`s (multiple arguments input is supported) in INI. If Remote Mode is on, `distro`s
must be specified to avoid heavy rsync job.
-D, --Debug Show log in debug level.
- Fork this repository
- Edit
genisolist.ini
, add, modify or remove items. - (Linux Only) After modification, run the scripts for a quick test:
python genisolist.py -R <mirror-site-base> -T <items-you-want-to-test>
.-T
supports multiple items, for example,-T Ventoy "VS Codium"
- If the test is passed, create a merge/pull request to let us know.
Exmaple:
python genisolist.py -R mirror.nju.edu.cn -T Ventoy
Output:
[RSync] mirror.nju.edu.cn/github-release/ventoy/Ventoy/
[
{
"distro": "Ventoy",
"category": "app",
"urls": [
{
"name": "1.0.84 (windows, zip)",
"url": "/Ventoy 1.0.84 release/ventoy-1.0.84-windows.zip"
},
{
"name": "1.0.84 (livecd, iso)",
"url": "/Ventoy 1.0.84 release/ventoy-1.0.84-livecd.iso"
},
{
"name": "1.0.84 (linux, tar.gz)",
"url": "/Ventoy 1.0.84 release/ventoy-1.0.84-linux.tar.gz"
}
]
}
]