Skip to content
This repository has been archived by the owner. It is now read-only.
Repository has been moved! https://postmarketos.org/move.html#/postmarketos.org 🚚 🚚 🚚
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
content update clone URL for QEMU instructions Jun 30, 2018
logo All new homepage and blog post! (#26) Sep 3, 2017
static Moving to gitlab post (#65) Jun 27, 2018
templates header: link to gitlab instead of GitHub Jun 30, 2018
.gitignore Delete and ignore docs/ Sep 4, 2017
README.md Delete and ignore docs/ Sep 4, 2017
app.py new redirect: git -> Git_repository_move Jun 30, 2018
encode-video.sh Spring 2018 blog post about #postmarketOS-lowlevel (WIP) (#55) Apr 14, 2018
freeze.py Add FAQ to the homepage (#49) Feb 5, 2018
requirements.txt

README.md

postmarketos.org

Dev

Python Requirements Setup

Python 3.4+ is supported. Install all requirements, preferably within a virtualenv:

$ python -m venv .venv
$ source .venv/bin/activate
(venv)$ pip install -r requirements.txt

New Blog Content

Blog content is written in markdown format with metadata in the file header. Filename syntax is yyyy-mm-dd-slug.md.

$ cat >content/blog/2017-12-31-happy-new-year.md << EOF
> ---
> title: Happy New Year!
> ---
>
> This is a *markdown* **formatted** post.
> EOF

Dev Server

Run the dev server during local development, changes are auto reloaded:

(venv)$ FLASK_DEBUG=1 FLASK_APP=app.py flask run

CSS

Not much CSS is used due to heavy usage of Tachyons toolkit classes. Please use CSS judiciously only when needed.

Any CSS used should be compiled via lessc:

$ npm install -g less
$ lessc static/css/main.less static/css/main.css

Build

To run a static site build, run:

(venv)$ python freeze.py

This will generate a static version in docs/. Any manual changes to the docs/ directory will be overridden in the next build.

Note that the docs/ directory is ignored and not versioned.

You can’t perform that action at this time.