Ronbun
Ronbun copied to clipboard
Ronbun 論文 is my static site generator
Ronbun 論文
Ronbun (paper) is my static site generator. It's built with nodejs and uses Kaku as a markup language and imagemagick on the server to process images. It also process time tracking and presents it as graphics.
Ronbun uses a single file as a source of content and a text file for time recordings. It parses files and generates HTML using a template. Ronbun and the Kaku parser try as much as possible to provide light and accessible pages by using standard HTML techniques.
Ronbun was created as a self discovery project following my philosophy about personal projects.
License
Ronbun 論文 is a free to use by individuals and organizations that do not operate by capitalist principles. For more information see the license file.
Requirements
Ronbun requires is developed and built on a linux machine, it requires:
- NodeJS 14
- Imagemagick
How to install
git clone repo folder
cd folder
git submodule init
git submodule update --recursive --remote
How to develop or build the website
./dev.shwill watch for file changes and compile html, xml and process images../build.shwill compile html, xml and process images../servercreates a local server if you want to locally visit the website.
Don't forget to use - chmod +x ./*.sh to allow scripts execution.
How it works
config.mjscontains the local paths used by the generator (images, data).builder.mjsis the main building script. It builds the data from the files using the other scripts and creates the html and xml files.utils.mjscontains utility functions used by the builder.Kaku.mjsis the text parser (it can be changed by another like a markdown parser)/time.mjsis the time parser and graph builder.
Look at the generateAll() function to get a sense of the build process.
Folders
assetscontain css files and html partials used for the build.datacontains the data and media files. They are private and located in a submodule.srccontains de building files.wwwcontains the current built version of the site. It's located in a submodule.