How to build this project locally
Requirements:
See also requirements.txt.
The Python packages are installed into a virtual environment like this:
python3 -m venv .venv # create a virtual environment
source .venv/bin/activate # activate it
python3 -m pip install -r requirements.txt # install the required packagesTo generate the html files, simply execute generate.py
This will build the different pages from the repos reference material with the help of shell and python scripts.
./generate --wip builds everything including colors and c64io.
./generate.py --only 6502 colors c64mem only builds the selected categories (using the category path names as keys).
The 6502 and the color reference are all Java Script and do not need to be generated while developing, but for release the umbrella generate.py adds navigation, matching titles and a link to the github project.
For testing start Python's built-in webserver and navigate to the local url:
python3 -m http.serverhttp://localhost:8000/c64ref/6502/
If the default port is already taken, choose your own port (eg. 6464):
python3 -m http.server 6464http://localhost:6464/c64ref/6502/
Navigate using the menu bar or by directly going to the specific pages:
6502for 6502 Family CPU Referencec64disasmfor C64 BASIC & KERNAL ROM Disassembly (Slow)c64iofor C64 I/O Map (WIP)c64memfor C64 Memory Mapcharsetfor Character Set · PETSCII · Keyboardcolorsfor C64 Colors (WIP)kernalfor C64 KERNAL API
For uploading use
./generate upload
It checks for changes in the working copy and won't let you build if there are any.