Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 2.09 KB

nanoc-export.md

File metadata and controls

58 lines (43 loc) · 2.09 KB

Pretalx exporter for nanoc (FOSDEM)

This is a plugin for pretalx that builds a yaml file that can be consumed by the fosdem website nanoc build.

Note this is a first version/proof of concept. Bug reports and pull requests are highly appreciated.

Features not yet implemented are:

  • ordering of tracks (may need a change/plugin in pretalx?)
  • track type (eg main track/keynote)
  • some fields have a default value - check the code for TODO
  • logo for talks/images for speaker - check need for resizing

Development setup

  1. Make sure that you have a working pretalx development setup.
  2. Clone this repository, eg to local/pretalx-nanoc-yaml-exporter.
  3. Activate the virtual environment you use for pretalx development.
  4. Execute pip install -e . within this directory to register this application with pretalx's plugin registry.
  5. Restart your local pretalx server. You can now use the plugin from this repository for your events by enabling it in the 'plugins' tab in the settings.

Test building the website

  1. If you have a running pretalx setup, either create a conference from scratch or create a dummy conference by running
./manage.py create_test_event
  1. Ensure the plugin is installed (as mentioned above) and activated for the conference
  2. From a checked out version of the FOSDEM website in the pretalx branch , run
curl http://localhost:8000/democon/schedule/export/NanocExporter -o export/pentabarf.yaml
nanoc
nanoc view

replace democon with the name of the conference.

  1. To export the static files (attachments/logo/...) run
./manage.py export_schedule_html $confname

This will export a static html version of the pretalx schedule with all its media assets to the folder you configured in your pretalx.cfg file under filesystem.data. $data/htmlexport/.

License

Copyright 2023 Johan Van de Wauw

Released under the terms of the Apache License 2.0