GitXplorerGitXplorer
r

calendar-generation

public
6 stars
4 forks
0 issues

Commits

List of commits on branch main.
Unverified
9bf0ccb9a892094fa232843a31b9c7a441645ffb

Handle `calendar` repo containing `xtask` in CI

ttraviscross committed 2 months ago
Verified
eb8cf1d6f74e8a29a2d8699f59338f47ddefa690

Merge pull request #14 from rust-lang/fix-tz-offset-validation

jjieyouxu committed 2 months ago
Verified
2bfb19a7e44f2ffffae0dfd3d2ac2a7aa398b3dd

Fix TZ offset validation

aapiraino committed 2 months ago
Unverified
523e3e2cbf7bfd72a869bda52c543d150a418c73

allow timezone offsets of zero

ddavidtwco committed 4 months ago
Verified
8b37bcdc38bdd9e208b18c4cf4b1a4f731ce67c1

Merge pull request #12 from davidtwco/fix-action

sspastorino committed 7 months ago
Verified
96cdbee473a22ee7a3bb0e46c248359787e58053

Fix action after df0a0b8

ddavidtwco committed 7 months ago

README

The README file for this repository.

toml-to-ical

toml-to-ical is a simple command-line utility for generating iCalendar documents from a list of events in TOML format.

It is intended for use in open source projects which have a public calendar with meetings. Instead of using Google Calendar or some other calendar service, just generate the calendar from a list of events in TOML format and generate and host the calendar using something like GitHub Actions/Pages in CI.

Generate calendars with GitHub Actions

If you have a repository containing TOML documents defining calendars, then you can create a GitHub Actions workflow with the following content to generate calendars available via GitHub Pages:

name: generate calendars

on:
  push:
    branches: ["master", "main"]

permissions:
  contents: read
  pages: write
  id-token: write

concurrency:
  group: "pages"
  cancel-in-progress: false

jobs:
  generate:
    name: generate
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4.1.1
      - name: Generate calendars
        uses: rust-lang/calendar-generation@main
      - name: Upload artifact
        uses: actions/upload-pages-artifact@v3.0.0
        with:
          path: 'result'
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v4.0.2

You can configure the calendar generation action with the following inputs:

  • input_directory
    • Directory containing TOML calendar definitions
    • default: .
  • output_directory
    • Directory to output iCalendar documents
    • default: result

Stability

toml-to-ical has no stability guarantees.

Author and acknowledgements

toml-to-ical is authored by David Wood of Huawei Technologies Research & Development (UK) Ltd.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Code of conduct

When contributing or interacting with this project, we ask abide the Rust Code of Conduct and ask that you do too.