Québec-Python's website.
Built with Pelican
- Python 2.7 - 3.2
- See requirements.txt file for Pelican's dependencies.
- Node.js / NPM / Grunt for the theme
There are 2 ways to run our website on your machine:
$ cd app
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ make devserver
Type http://localhost:8000 in your browser to see the website
Install the latest VirtualBox and Vagrant
# Then hop into the vagrant folder:
$ cd vagrant
$ vagrant up
# Get into the VM by typing:
$ vagrant ssh
# You're now in the VM at /home/vagrant
# Go into the folder where the project is
$ cd quebecpython
# Install Pelican's dependencies
$ sudo pip install -r requirements.txt
# Run the following command in the project's folder:
$ make devserver
Type http://localhost:8000 in your browser to see the website
You need to run the make script with the following option:
$ make stopserver
- Navigate in the app/content folder
- Copy and paste the latest file there
- Save the new file with a unexistent filename
- Open that file and edit the metadata at the top
- Start writing in Markdown below the metadata
- Use the
make devserver
command to see how your article will look like
- Navigate in the app/content/pages folder
- Follow the instructions for an article !
You need to install Grunt
in this folder for live LessCSS
compilation & minification as you edit those less
files.
Take a look at the themes/quebecpython/static/css/src/main.less
file to see that it is
based on Bootstrap and Bootswatch's Yeti theme.
I only added a background image taken from Subtlepatterns and a fixed sidebar.
Templates in Pelican are based on Jinja2.
All html files here inherits from base.html:
Page | Role | Modification scope |
---|---|---|
base.html | The base html file every other html file inherits from | Global (ex: header, footer, sidebar) |
index.html | The welcome page | The articles list, the partners and sponsors at the bottom |
page.html | A regular page html structure | A regular page like *à propos* or *présentations* |
article.html | An article html structure | An article page |