OneGov official notices website.
Ongeov Gazette uses the model from Onegov Notice.
Every Onegov Gazette instance contains a principal.yml
with the following
configuration options:
- name
- The name of the principal.
- color
- The primary color.
- logo
- The filename of the logo.
- logo_for_pdf
- The filename of the logo used in the PDF.
- canton
- The shortcode of the canton, used for the SOGC import.
- time_zone
- The timezone used for dates.
- help_link
- A link to a help page, displayed in the foooter.
- publishing
- Enables the publish state.
- frontend
- Enables the frontend.
- on_accept
- Allows to send an email in case a notice has been accepted.
- sogc_import
- Configures the SOGC import.
Example:
name: Govikon color: '#ccaa2e' logo: 'govikon.svg' logo_for_pdf: 'govikon-bw.svg' canton: 'zg' help_link: 'https://help.me/please' timezone: 'Europe/Zurich' publishing: False frontend: False on_accept: mail_to: '[email protected]' mail_from: '[email protected]' sogc_import: endpoint: 'https://amtsblattportal.ch/api/v1' organization: '190' category: '126'
There are CLI commands for importing XLSX files containing editors, organizations, categories and issues:
onegov-gazette import-editors ... onegov-gazette import-organizations ... onegov-gazette import-categories ... onegov-gazette import-issues ...
There is a CLI command for importing from the SOGC:
onegov-gazette import-sogc ...
Install tox and run it:
pip install tox tox
Limit the tests to a specific python version:
tox -e py27
Install jest and run it:
npm install npm t
Onegov Gazette follows PEP8 as close as possible. To test for it run:
tox -e pep8
Onegov Gazette uses Semantic Versioning
onegov.gazette is released under GPLv2