This repository is the frontend of the JLU Mirrors.
This website,
- is made of plain static HTML+CSS+JS files
- use the SSI (server-side inclusion) module of NGINX as a simple templating engine
- use Vue.js 2.x for client-side rendering of dynamic API results
- should be used with the API from shine
- use normalize.css as the base style sheet
- use Marked for markdown rendering of news posts
- can be used with NGINX fancyindex module to provide frinedly directory browsering and noscript support
- actual fancyindex runs JLU Mirrors was heavily modified, upstream ver sucks
Store web with mirrors: ln -srf public/* /mirrors_root/
(Optionally) generate a large file for speedtesting: dd if=/dev/urandom of=public/_static/speedtest.bin bs=1M count=1024
Create documentation or news posts in _{docs|news}
with the naming conventions below, and generate JSON indices: ./index.py
If your server doesn't support SSI, render it offline: ./ssi.py
For NGINX configuration example, see nginx-vhost.conf
public/
_docs/
- documentations of mirrors[mirror].{en|zh}.md
- markdown of docs with language suffixindex.json
- generated index_index.html
- page template for documentations
_news/
- news and announcementsYYYY-MM-DD-[title].md
- markdown of news with date prefixindex.json
- generated index_index.html
- page template for news
_static/
lib/
- external librariesfancy/_{header|footer}.html
- template for fancyindex modulecommon.{css|js}
- common style sheet and scripts{main|docs|news|fancy}.{css|js}
- page-specific oneslogo.svg
- website logo_{header|footer|ban}.html
- HTML page template
_index.html
- template of home page
index.py
- generate_{doc|new}s/index.json
ssi.py
- render_*.html
SSI templates offlinenginx-vhost.conf
- NGINX config exampleLICENSE.txt
- GNU AGPLv3 license textREADME(.zh).md
- this document
Copyleft 2022 LUG@JLU. Licensed under GNU Affero General Public License version 3.
The following files are licensed under MIT License:
public/_static/lib/marked.js
- Copyright 2011-2022 Christopher Jeffreypublic/_static/lib/normalize.min.css
- Copyright Nicolas Gallagher and Jonathan Nealpublic/_static/lib/vue(.min).js
- Copyright 2014-2021 Evan You
The logo of Jilin University, which belongs to the university, is licensed under a private license.
During the design of this website, mirrors from TUNA, USTCLUG and HITLUG inspired us a lot.
Especially thanks to Zenithal, Keyu Tao and Billchenchina.