Crappy Static site generation.
branches
├── main
└── gh-pages
main
is the where everything at, and gh-pages
is public for deployment
branches/main
├── content/
│ └── markdowns/
├── dist/
├── scripts/
│ └── generate_pages.py
├── template/
│ └── assets/
├── config.toml
├── LICENSE
└── requirements.txt
content/markdown/
: Markdown files to include in spcccomputerclub.github.io/articlestemplate/
: Boilerplate files and assets, raw material for site generation.template/assets/
: the entire directory will be copied to/dist/
scripts/generate_pages.py
: Main programdist
: Generated site, ready for deploy. This subdirectory is also mounted to the root ofbranches/gh-pages
The https://github.com/spcccomputerclub/spcccomputerclub.github.io/blob/main/.github/workflows/main.yml will automatically runscripts/generate_pages.py
and copy the content indist/
tobranches/gh-pages
As previously mentioned, the workflow will automatically execute the site generation after each push to the repository.
- In
content/markdown/
, create a new folder[TITLE].d
.
/content/markdown/[TITLE].d
├── article.md
└── meta.toml
In meta.toml
, include the following information:
id = "0001" # Give it a unique ID
title = "Insert Title here" # Title
date = 1979-05-27 # Date in YYYY-MM-DD format
author = "James" # Author
# Tags
tags = [
"SSD",
"Data Storage",
"Technology Guide",
"Computer Hardware",
"AI-generated",
]
draft = false # This one is not yet implemented
thumbnail = "logo.jpg" # Path of the thumbnail. Has the prefix `/template/assets/image/`
- In
articles.md
, include the main article. Do not include the main title as it will be automatically added to the page.
## Lorem Ipsum
Lorem ipsum dolor sit amet.
.. toc::
Note
The markdown parser in the site generation process will automatically insert a table of content at .. toc::
The parser directly passes the links into html. For example:

Will turn into:
<img src="/assets/img/0001/normalmouse.png" />
and access spcccomputerclub.github.io/assets/img/0001/normalmouse.png, aka branches/main/template/assets/img/0001/normalmouse.png