Skip to content

miquael/MythOS-WorkBook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MythOS Workbook Generator

A system for generating a customized goal-setting and productivity workbook using HTML/CSS templates and WeasyPrint.

Overview

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

Getting Started

Prerequisites

Installation

  1. Clone this repository

    git clone https://github.com/miquael/MythOS-WorkBook.git
    cd MythOS-WorkBook
    
  2. Create a virtual environment

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install required packages

    pip install -r requirements.txt
    

Usage

  1. Customize the HTML templates in the templates/ directory to adjust designs, layout, or text.

  2. Run the generator script to create individual PDFs:

    python generate.py
    
  3. Output PDFs will be created in the output/ directory.

Customization

Modifying Templates

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

Adding Custom Graphics

If you want to add custom graphics (e.g., astrological symbols):

  1. Save the SVG or image files in the static/images/ directory
  2. Reference them in your HTML templates with appropriate paths

Creating New Page Types

To add a new page type:

  1. Create a new HTML template in the templates/ directory
  2. Add the template filename to the templates list in generate.py
  3. Run the generator script to create the new PDF

Advanced Usage

Combining PDFs

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.

Creating Custom CSS

For more advanced styling:

  1. Create a CSS file in static/css/mythosworkbook.css
  2. This CSS will be applied to all templates

Troubleshooting

Common WeasyPrint Issues

  • 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

License

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.

About

A system for generating a customized goal-setting and productivity workbook using HTML/CSS templates and WeasyPrint.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors