{"id":23029727,"url":"https://github.com/antononcube/raku-markup-calendar","last_synced_at":"2025-04-02T20:25:49.608Z","repository":{"id":221398120,"uuid":"754266613","full_name":"antononcube/Raku-Markup-Calendar","owner":"antononcube","description":"Markup (HTML, Markdown) calendar functions for displaying monthly, yearly, and custom calendars.","archived":false,"fork":false,"pushed_at":"2024-02-10T22:04:57.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-08T11:13:21.865Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antononcube.png","metadata":{"files":{"readme":"README-work.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-07T18:08:41.000Z","updated_at":"2024-02-16T11:31:30.000Z","dependencies_parsed_at":"2024-02-09T02:09:36.856Z","dependency_job_id":null,"html_url":"https://github.com/antononcube/Raku-Markup-Calendar","commit_stats":null,"previous_names":["antononcube/raku-markup-calendar"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antononcube%2FRaku-Markup-Calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antononcube%2FRaku-Markup-Calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antononcube%2FRaku-Markup-Calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antononcube%2FRaku-Markup-Calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antononcube","download_url":"https://codeload.github.com/antononcube/Raku-Markup-Calendar/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246886513,"owners_count":20849881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-15T14:16:57.550Z","updated_at":"2025-04-02T20:25:49.585Z","avatar_url":"https://github.com/antononcube.png","language":"Raku","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Markup::Calendar\n\nRaku package with Markup (HTML, Markdown) calendar functions for displaying monthly, yearly, and custom calendars.\n\n### Motivation\n\nThe package \n[\"Text::Calendar\"](https://raku.land/zef:antononcube/Text::Calendar), [AAp1], \nprovides the core functions for making the calendars in this package.\nThe packages \n[\"Data::Translators\"](https://raku.land/zef:antononcube/Data::Translators), [AAp2], and \n[\"Pretty::Table\"](https://raku.land/cpan:ANTONOV/Pretty::Table), [ULp1],\nprovide additional formatting functionalities.\n\nI want to keep \"Text::Calendar\" lightweight, without any dependencies. Hence I made this separate \npackage, \"Markup::Calendar\", that has more involved dependencies and use-cases.\n\nAn \"involved use case\" is calendar in which some of the days have tooltips and hyperlinks. \n\n-----\n\n## Installation\n\nFrom [Zef ecosystem](https://raku.land):\n\n```\nzef install Markup::Calendar\n```\n\nFrom GitHub:\n\n```\nzef install https://github.com/antononcube/Raku-Markup-Calendar.git\n```\n\n-----\n\n## Examples\n\n### Basic HTML calendar\n\n```raku, results=asis\nuse Markup::Calendar;\nuse Text::Calendar;\n\ncalendar():html\n```\n\n### HTML yearly calendar with highlights \n\nHere is an HTML calendar that weekend days are highlighted and with larger font:\n\n```raku, results=asis\ncalendar-year( \n    per-row =\u003e 4, \n    highlight =\u003e (Date.new(2024,1,1)...Date.new(2024,12,31)).grep({ $_.day-of-week ≥ 6 }),\n    highlight-style =\u003e 'color:orange; font-size:14pt'\n):html\n```\n\n### Standalone calendar file\n\nHere we make a standalone calendar file:\n\n```raku\nspurt('example.html', calendar-year(year =\u003e 2024, highlight =\u003e [3=\u003e3, 5=\u003e24, 9=\u003e9], highlight-style=\u003e'color:red', format=\u003e'html'))\n```\n\n------\n\n## TODO\n\n- [ ] TODO Features\n  - [X] DONE HTML\n    - [X] DONE Full HTML calendar \n    - [X] DONE Partial HTML calendar (e.g. equivalent of `cal -3`)\n    - [X] DONE Highlighted days\n    - [X] DONE Tooltips for days\n    - [X] DONE Hyperlinks for days\n  - [ ] TODO Markdown\n    - [ ] TODO Full Markdown calendar\n    - [ ] TODO Partial Markdown calendar\n    - [ ] TODO Highlighted days\n    - [ ] TODO Tooltips for days\n    - [ ] TODO Hyperlinks for days\n- [ ] Unit tests\n  - [ ] DONE Basic usage\n  - [ ] DONE Equivalence using different signatures\n  - [ ] TODO Correctness\n- [ ] Documentation\n  - [X] DONE Basic README\n  - [ ] TODO Diagrams\n  - [ ] TODO Comparisons\n\n------\n\n## References \n\n[AAp1] Anton Antonov,\n[Text::Calendar Raku package](https://github.com/antononcube/Raku-Text-Calendar),\n(2024),\n[GitHub/antononcube](https://github.com/antononcube).\n\n[AAp2] Anton Antonov,\n[Data::Translators Raku package](https://github.com/antononcube/Raku-Data-Translators),\n(2023),\n[GitHub/antononcube](https://github.com/antononcube).\n\n[LUp1] Luis F. Uceta,\n[Pretty::Table Raku package](https://gitlab.com/uzluisf/raku-pretty-table/),\n(2020),\n[GitLab/uzluisf](https://gitlab.com/uzluisf/).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantononcube%2Fraku-markup-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantononcube%2Fraku-markup-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantononcube%2Fraku-markup-calendar/lists"}