This is a custom-built static site generator (SSG) that converts Markdown files into a static website. It is designed to be simple, extensible, and easy to use.
- Markdown-based content: Write your pages in simple Markdown.
- Customizable templates: Easily customize the look and feel of your site.
- Development server: A live-reloading development server for a smooth writing experience.
- Extensible: The modular architecture allows for easy extension and customization.
To get started with this SSG, you'll need to have Python and Node.js installed.
-
Clone the repository:
git clone <repository-url> cd <repository-name>
-
Install Python dependencies:
pip install -r requirements.txt
-
Install Node.js dependencies:
cd sandbox/.web npm install -
Run the development server:
python -m src.cli develop
To create a new page, simply add a new Markdown file (.md) to the sandbox/app/pages directory. The directory structure of the pages directory will be reflected in the URL structure of the generated site.
-
src/: The main source code of the SSG.cli.py: The command-line interface for the SSG.parser.py: The Markdown parser.export/py: Main export file that compiles eveything before serving it.core/: Core components like the navbar, sidebar, and templates.states/: Centralized state folder to add interactivty for injected components.
-
sandbox/: A sample project using the SSG.app/: The application logic for the sandbox project.pages/: The content for the sandbox site.
This project is licensed under the MIT License. See the LICENSE file for details.