calendaring:0.1.0#4910
Open
TAJD wants to merge 4 commits into
Open
Conversation
Lay out month calendar grids from a year and month. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- cell-content callback receives datetime instead of bare day int - events and today parameters (TikZ calendar / wallcalendar style) - weekday-names for localization - year-grid composition helper - input validation Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Borrowed from wallcalendar. Opt-in via `week-numbers: true`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- New `is-leap-year(year)` public helper. - `year-grid` exposes cell-height, inset, month-label-size. - Year input validation. - CHANGELOG.md added. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I am submitting
Description:
calendaringlays out month calendar grids from a year and month. Given(year, month), it computes the correct leading and trailing blank days (viadatetime+duration), supports Monday- or Sunday-first weeks, optional 90° rotation for portrait pages, and a custom cell renderer for adding labels per day. It is intended for personal planners, training logs, and habit trackers where each day is a writable cell — not for displaying scheduled events (for that, seecineca).I have read and followed the submission guidelines and, in particular, I
calendaringis the gerund of "calendar", directly analogous to the example in the naming rules (slides→sliding). The canonical namescalendar,month, andmonth-gridare intentionally avoided so that future packages with broader calendar functionality remain available.typst.tomlfile with all required keysREADME.mdwith documentation for my packageLICENSEfile