Commit graph

11 commits

Author SHA1 Message Date
541d69ef5d
Refactor command line argument parsing and handling for generating calendars
- Added a mutually exclusive group for the `--type` flag to specify the type of calendar to generate: weekly or monthly
- Added two new arguments `--weekly` and `--monthly` to specify the type of calendar directly
- Updated the default value for `--type` to be "weekly"
2023-09-30 19:03:55 +02:00
92cdf67db7
Styling updates for monthly and weekly templates.
- Add page break before all h2 elements except the first one.
2023-09-30 18:49:41 +02:00
05842e102a
Update version in pyproject.toml, fix count assignment in main()
- Update version in pyproject.toml to 0.1.1
- Fix count assignment in main() to use ternary operator instead of if-else statement
2023-09-03 08:27:07 +02:00
b786097a47
Add setlocale to set English locale to en_US.UTF-8 2023-09-01 20:19:35 +02:00
499faf1dbb
Improve logo location to README.md 2023-09-01 19:51:16 +02:00
11a88b848d
Update .gitignore and add .gitlab-ci.yml 2023-09-01 19:00:47 +02:00
f2c67360c7
Add Kalente logo and update README with more details on usage and requirements
- Add Kalente logo
- Update README with more details on usage and requirements
- Include instructions on installation and usage
- Mention future updates for language and format support
- Provide examples of command line usage for generating weekly and monthly calendars
- Inform about available options using `--help`
- Mention the MIT license and refer to the LICENSE file for more information
2023-09-01 19:00:00 +02:00
5291618518
Change holiday, saturday, and sunday colors in monthly.html
The commit changes the background colors for holidays, Saturdays, and Sundays in the monthly.html template file.
2023-09-01 18:43:37 +02:00
af10cd37b3
feat: Add functionality to generate monthly calendars
This commit adds functions to generate monthly calendars in addition to the existing functionality of generating weekly calendars. The "get_month" function retrieves a list of weeks within a given month, and the "generate_monthly_html" function generates the HTML content for a monthly calendar using a Jinja2 template. The new template file "templates/monthly.html" is also included in this commit.
2023-09-01 10:47:14 +02:00
9d89adf158
Refactor README for Kalente
- Refactor the README.md file for clarity and formatting.
- Change some sentences to improve readability.
- Add a link to the LICENSE file for more information.
2023-08-31 21:49:52 +02:00
60cfcc70dd
feat: Add .gitignore, LICENSE, README, pyproject.toml, and kalente source files
- Added .gitignore file to specify files and directories to ignore in version control.
- Added LICENSE file with MIT license.
- Added README.md file with project information and license details.
- Added pyproject.toml file with project metadata and dependencies.
- Added kalente source files for generating PDF calendars.
- Implemented functions for generating weekly calendars, converting HTML to PDF, and CLI parsing.
- Created a template for rendering weekly calendars in HTML format.
2023-08-31 21:43:48 +02:00