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.
- To change the links of mirrorz or doc.nju.edu.cn, please modify
/documentations/links.json. This file contains links to mirrorz and nju doc. If the name and hyperlink differs, such as 'aosp' and 'AOSP', please add both name and link attributes. - To add local documentations, place your new mirror documentation by putting your
*.mdfile in/documentations/. A sample file is as follows:Filename:
2021-13-37-flatter.md
Content:## Flatter 镜像安装帮助 阿巴阿巴 ### 歪比巴卜 ...
- After modifying
links.jsonor adding your*.mdfile, please runpython scripts/gendoc/genjson.pyto generate a newindex.json. Detailed usage above. - 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
*.mdnews 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.pywith 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>.-Tsupports 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"
}
]
}
]
- add icon alias in NamedIcon.vue, available icons: xicons (ionicons5)
- re-deploy front page.
- use the alias in esci.json