A system for generating a customized goal-setting and productivity workbook using HTML/CSS templates and WeasyPrint.
The MythOS Workbook Generator creates printable PDF pages using HTML/CSS layouts converted with WeasyPrint. This project allows for the creation of a custom productivity planner with various templates including:
- Quarterly Planning
- Weekly Planning
- Daily Planning
- Weekly Review
- Quarterly Review
- Habit Trackers
- Python 3.7+
- WeasyPrint dependencies (see official installation guide for system-specific requirements)
-
Clone this repository
git clone https://github.com/miquael/MythOS-WorkBook.git cd MythOS-WorkBook -
Create a virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate -
Install required packages
pip install -r requirements.txt
-
Customize the HTML templates in the
templates/directory to adjust designs, layout, or text. -
Run the generator script to create individual PDFs:
python generate.py -
Output PDFs will be created in the
output/directory.
All HTML templates are stored in the templates/ directory. You can modify these files to adjust:
- Text content
- Colors (main accent color is currently #996633)
- Layout and spacing
- Adding new sections or elements
If you want to add custom graphics (e.g., astrological symbols):
- Save the SVG or image files in the
static/images/directory - Reference them in your HTML templates with appropriate paths
To add a new page type:
- Create a new HTML template in the
templates/directory - Add the template filename to the
templateslist ingenerate.py - Run the generator script to create the new PDF
Once you've generated all the individual PDFs, you can combine them into a complete workbook by uncommenting the generate_combined_workbook() function call in generate.py. This requires installing an additional library like PyPDF2 or pikepdf.
For more advanced styling:
- Create a CSS file in
static/css/mythosworkbook.css - This CSS will be applied to all templates
- Font rendering problems: Ensure you have the required system dependencies for WeasyPrint
- Image rendering issues: Make sure paths to images are correct relative to the template files
- Layout inconsistencies: Check the CSS for compatibility with WeasyPrint's CSS implementation
This project’s source code is released under the MIT License. See LICENSE.md for details.
The generated workbook PDFs may be freely shared in digital form.
MythOS™ is a trademark of Mythic Systems LLC. All rights reserved. See TRADEMARK.md for details. Physical printed editions of the MythOS Workbook are a commercial product of Mythic Systems LLC.