diff --git a/README.md b/README.md index 5afeee9..29a6dc8 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,44 @@ iPad app goodnotes 5. - Monthly/Weekly work goals (hyperlinked with briefcase symbol in bottom right corner of monthly/weekly pages). - Lots of hyperlinking. If it seems like it should direct to another page, it probably does. -## Prerequisites +### Screen shots + +#### Annual view + +![Annual view](https://user-images.githubusercontent.com/8276147/203629183-412e0cf9-9ba0-4311-9542-54396dd96521.png) + +#### Monthly view + +![Monthly view](https://user-images.githubusercontent.com/8276147/203629487-03726b4c-6ef8-418c-bc34-cf41a60100f0.png) + +#### Weekly view + + +![Weekly view](https://user-images.githubusercontent.com/8276147/203629643-d0aa6bb7-b904-4685-bf6a-ae9adc9a6a5b.png) + +#### Daily view + +![Daily view](https://user-images.githubusercontent.com/8276147/203629772-3317b5e0-ee10-425d-b1a4-c175b2050454.png) + +#### Monthly personal goals + +![Monthly personal goals](https://user-images.githubusercontent.com/8276147/203632411-63bc909a-2687-4a4e-825c-27084cdf25fd.png) + +#### Weekly personal goals + +![Weekly personal goals](https://user-images.githubusercontent.com/8276147/203632731-09e8f814-845d-42ab-82c5-07b39fbb858c.png) + +#### Monthly work goals + +![Monthly work goals](https://user-images.githubusercontent.com/8276147/203632843-0e60341f-3373-4653-9fc5-46cbc9f1e098.png) + +#### Weekly work goals + +![Weekly work goals](https://user-images.githubusercontent.com/8276147/203632936-8860454b-5de8-4c1d-9826-5b426bd2bee1.png) + +## Using the generator locally + +### Prerequisites - Python3 >= 3.9 - Jinja2 @@ -24,7 +61,7 @@ iPad app goodnotes 5. - playwright (Python) - Node / NPM -## Install +### Install Run @@ -34,7 +71,7 @@ npm install to install the tailwind dependency. -## Building the planner +### Building the planner ```bash npm run build -- @@ -44,7 +81,7 @@ To create the PDF from the HTML output, I recommend opening `index.html` in Chrome and using the "Save as PDF" feature in the print menu. If using this technique, set margins to none and enable background images. -### Optional Arguments +#### Optional Arguments ``` usage: Python Planner Generator [-h] [--start-time START_TIME] [--end-time END_TIME] [--file-suffix FILE_SUFFIX] [--work-goals | --no-work-goals] diff --git a/src/generator.py b/src/generator.py index 06b3d6c..604bddf 100644 --- a/src/generator.py +++ b/src/generator.py @@ -211,7 +211,8 @@ def build_monthly_goal_page(first, j2_template: j2.Template): weekly_template = j2_env.get_template('weekly_goals.html.j2') frame_template = j2_env.get_template('frame.html.j2') weekly_templates = {} - cur_week = start + relativedelta(weeks=+0) + preceding_monday = start - timedelta(days=start.weekday()) + cur_week = preceding_monday + relativedelta(weeks=+0) while cur_week < end: @@ -251,7 +252,8 @@ def build_weekly_work_goal_page(first, j2_template: j2.Template): weekly_template = j2_env.get_template('weekly_work_goals.html.j2') frame_template = j2_env.get_template('frame.html.j2') weekly_templates = {} - cur_week = start + relativedelta(weeks=+0) + preceding_monday = start - timedelta(days=start.weekday()) + cur_week = preceding_monday + relativedelta(weeks=+0) while cur_week < end: