This script is designed to be used in a GitHub workflow or action to generate a static website from LeStegii/server-software
' Markdown files. The generated website uses the Pico CSS library to provide a clean and modern look.
- The webpages and their assignment to specific Markdown files are defined.
- Directories are prepared and all necessary website assets are copied.
- Various components, including the header & footer are loaded.
- The landing page is built and GitHub anchors are replaced with internal anchors.
- Catalog pages are constructed by loading content and performing basic replacements.
- The content is divided into active and inactive sections, and IDs are added to anchor tags for direct linking.
- Finally, the generated HTML files are written to the build directory.
- Python 3.10+
- BeautifulSoup4
- Markdown
- Clone
LeStegii/server-software
- Clone this repository into
sever-software/mcss-frontend
directory pip install markdown beautifulsoup4
- Run
python mcss-frontend/build.py
(your working directory needs to beserver-software
) to generate the website