README.md 1.02 KB
Newer Older
quota_atypique's avatar
quota_atypique committed
1 2
# blog-memopol

Jamesie Pic's avatar
Jamesie Pic committed
3
Clone the project::
quota_atypique's avatar
quota_atypique committed
4

Jamesie Pic's avatar
Jamesie Pic committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
    git clone --recursive gitlab@git.laquadrature.net:political-memory/blog-memopol.git

Install pelican::

    pip install pelican
    # Or use apt or your favorite package manager

If you have this error::

    CRITICAL: UndefinedError: 'extra_siteurls' is undefined

Then it means that the plugins directory is not populated, to do so::

    git submodule update --init
    # Or, next time do git clone with --recursive

The command to generate the output is::

    pelican
    # Or, if you're developping, use this command and open localhost:8000
    make devserver


# theme
Jamesie Pic's avatar
Jamesie Pic committed
29 30 31 32 33 34 35 36 37 38 39 40 41

The theme is based on bootstrap4. To hack it::

    cd theme

    # Install dependencies from package.json into ./node_modules
    npm install

    # Build scss/* and js/* into static/dist
    ./node_modules/.bin/gulp

    # Then you need to run the pelican command again in the parent directory
    cd ../ && pelican
quota_atypique's avatar
quota_atypique committed
42

Jamesie Pic's avatar
Jamesie Pic committed
43 44 45 46
# plugins

Don't forget to checkout submodules, ie. with
``git submodule sync; git submodule init --update``