Skip to content
Snippets Groups Projects
Select Git revision
  • master default
  • docker
  • 2021.04.42
  • 2021.04.41
  • 2021.03.40
  • 2021.03.39
  • 2021.03.38
  • 2021.03.37
  • 2021.03.36
  • 20
  • 18
  • 16
  • 13
13 results

website_en

  • Clone with SSH
  • Clone with HTTPS
  • Forked from websites / duniter_website_en
    8 commits behind the upstream repository.
    user avatar
    Luke Marlin authored
    The CI builds, tags, create a release and a generic pages and finally
    publishes to Gitlab pages automatically.
    For development branches, it will only build.
    5ae1296a
    History

    Duniter website

    Public site available at https://duniter.org/en

    Reproduce it locally

    You may want to reproduce this website locally, for developement purposes for example. Here are the instructions.

    Clone the sources

    git clone https://git.duniter.org/websites/website_en.git

    Install python stuff

    cd website_en
    python3 -m venv .venv
    source .venv/bin/activate
    pip install -r requirements.txt

    Install system dependencies for plantuml plugin (plantuml and GraphViz utilities) :

    apt install plantuml graphviz

    Generate the site

    pelican

    Serve it

    pelican --listen --autoreload --port 8557

    The website should be available at http://localhost:8557.

    Generate production site

    You just need to give the production configuration file to Pelican:

    pelican -s publishconf.py

    You may want to change the production parameters, like the domain name: just edit publishconf.py and modify the SITEURL to whatever value you want. You can also override any other value simply by adding it.

    For example if you want to host the site at https://my.website.org, set:

    SITEURL = u'https://my.website.org'

    Plantuml plugin documentation