Compare commits
1 changed files with 4 additions and 18 deletions
22
README.md
22
README.md
|
|
@ -27,24 +27,10 @@ This is the website of the CCCB.
|
||||||
|
|
||||||
5. Point your browser to: <http://localhost:1313/>
|
5. Point your browser to: <http://localhost:1313/>
|
||||||
|
|
||||||
Every change you make on the project will be reflected in your browser as long
|
To ready your site for upload, run `./build.sh`, which also generates `all.ics`
|
||||||
as `hugo serve` is running.
|
and adds the calendar table to `index.html`.
|
||||||
|
Every change you make on the project will be reflected in your browser
|
||||||
The *"Nächste Veranstaltungen"* table on the home page is generated by
|
as long as `hugo serve` is running.
|
||||||
post-processing in `./build.sh`, not by Hugo, so it is **not** visible under
|
|
||||||
`hugo serve`. To preview the fully-built site (including the home-page
|
|
||||||
calendar), or to ready the site for upload, run:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
./build.sh
|
|
||||||
python3 -m http.server -d public 1313
|
|
||||||
```
|
|
||||||
|
|
||||||
`build.sh` generates `all.ics` and replaces the `CALENDAR` placeholder in
|
|
||||||
`index.html` with the upcoming-events table. It depends on Python with the
|
|
||||||
`icalendar`, `python-dateutil`, and `pytz` packages, plus a `de_DE.UTF-8`
|
|
||||||
locale (used to format weekday names). Inside `nix develop` these are
|
|
||||||
provided automatically.
|
|
||||||
|
|
||||||
To build with *nix*: `nix build '.?submodules=1#production-content'`
|
To build with *nix*: `nix build '.?submodules=1#production-content'`
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue