Skip to main content

SGELT: Site GEnerator for Labs and Teams

Project description

SGELT: Site GEnerator for Labs and Teams

Installation

  • Create a python virtual environment :
virtualenv .venv/
  • Activate it
source .venv/bin/activate
  • Install the package and its dependencies :
pip install sgelt

Build a website

Files organization

  • config.yml describes the site configuration
  • content/ dir contains markdown files
  • agenda.json contains all events data
  • teams.json contains teams data

Edit content

  • setup configuration in config.yml
  • edit content/ dir.
  • generate json data files

Build and serve

To build all site files, run :

sgelt

in the project directory. Output files will be written in output/ dir.

Build and serve

To serve the website and rebuild automatically when the content has changed:

sgelt -a -s

To open the homepage in a web browser, add:

sgelt -a -s -b

Get help with CLI

sgelt -h

Tests

Run tests using tox

Tox setup the appropriate environments and run tests using pytest:

pip install tox  # install tox
tox  # run

Run tests using pytest

pip install -e .[tests]  # install dependencies for tests
pytest -sv tests/  # run tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sgelt-4.9.0.tar.gz (437.6 kB view details)

Uploaded Source

Built Distribution

sgelt-4.9.0-py3-none-any.whl (426.9 kB view details)

Uploaded Python 3

File details

Details for the file sgelt-4.9.0.tar.gz.

File metadata

  • Download URL: sgelt-4.9.0.tar.gz
  • Upload date:
  • Size: 437.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for sgelt-4.9.0.tar.gz
Algorithm Hash digest
SHA256 6d5223e276f545b02b71de0b8bea1aa3b71bf0e7e0b07e4333bbeb2bfa4fabc5
MD5 af72ff54d24cb0d25b3b01c4dd4ea455
BLAKE2b-256 4ba596d236a32e98290a8959db4a7ee70b980e2f6eee8c595b5122c734f0034a

See more details on using hashes here.

File details

Details for the file sgelt-4.9.0-py3-none-any.whl.

File metadata

  • Download URL: sgelt-4.9.0-py3-none-any.whl
  • Upload date:
  • Size: 426.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for sgelt-4.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c311a7b6dd8a4287668814cd58484941f860f64926d479a6b8ad148cf4e672b
MD5 5f11e1c55b08cf03f42eb408fd31216e
BLAKE2b-256 010e65c6270723ec3647f613e863d80823113f3ba3b7ddb08a3d05caf262eb76

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page