PurpurDocs
This is the documentation for Purpur that uses Mkdocs to generate a static site
Install / Use
/learn @PurpurMC/PurpurDocsREADME
PurpurDocs
This is the documentation for Purpur that uses Mkdocs to generate a static site hosted on https://purpurmc.org/docs. Included is a Python script that compares the diff of two commit hashes and outputs the config/permission additions/removals into a YAML file.
Building
Create and activate a Python 3 virtual environment
$ pip install --user virtualenv
$ virtualenv env
$ source env/bin/activate
Install the required packages
pip install -r requirements.txt
Preview changes
To preview your changes to the documentation, run mkdocs serve. This will start a web server that will preview the documentation and recompile it as you make changes. More info is shown here: https://www.mkdocs.org/#getting-started
$ mkdocs serve
Compare commits for config/permission additions/removals
Run the compare-commits.sh script to run an interactive script that compares between Purpur commits and generates a file of config option/permission additions/removals.
$ ./compare-commits.sh 885092 22b876
# logs/885092..22b876.yml
config:
additions:
- gameplay-mechanics.item.immune.cactus: new ArrayList<>()
- gameplay-mechanics.player.fix-stuck-in-portal: 'false'
removals:
- projectile-load-save-per-chunk-limit: '-1'
permission:
additions: []
removals: []
</details>
<details>
<summary><code>./compare-commits.sh <prev_hash> </code></summary>
Including only one hash will compare it to the latest commit of the branch specified (which is `ver/1.16.5` at the time of writing).
$ ./compare-commits.sh 885092
# logs/885092..ver|1.16.5.yml
config:
additions:
- gameplay-mechanics.item.immune.cactus: new ArrayList<>()
- gameplay-mechanics.player.fix-stuck-in-portal: 'false'
removals:
- projectile-load-save-per-chunk-limit: '-1'
permission:
additions: []
removals: []
</details>
<details>
<summary><code>./compare-commits.sh --no-commits </code></summary>
Running the script with the option `--no-commits` or `-nc` will create a `last_commit` file that includes the most recent commit at runtime. Running it again will make it use the hash located in `last_commit` as the first commit hash, replacing it with the most recent commit after generating the file.
# First time running it
$ ./compare-commits.sh -nc
# logs/885092..ver|1.16.5.yml
config:
additions:
- gameplay-mechanics.item.immune.cactus: new ArrayList<>()
- gameplay-mechanics.player.fix-stuck-in-portal: 'false'
removals:
- projectile-load-save-per-chunk-limit: '-1'
permission:
additions: []
removals: []
# Creates a last_commit file
885092
# Running it again after new commits are pushed to Purpur
$ ./compare-commits.sh -nc
# logs/885092..22b876.yml
config:
additions:
- gameplay-mechanics.item.immune.cactus: new ArrayList<>()
- gameplay-mechanics.player.fix-stuck-in-portal: 'false'
removals:
- projectile-load-save-per-chunk-limit: '-1'
permission:
additions: []
removals: []
# Modifies the last_commit file
22b876
</details>Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
