The repository of mashhadlug website, located at mashhadlug.com.
Mashhadlug website is made using pelican static site genrator.
We recommend installing pelican
and the required libraries inside a virtual environment as follows:
$ git clone [email protected]:mashhadlug/www.git
$ cd www
$ git checkout master
$ python -m venv .env
$ source .env/bin/activate
$ pip install pelican markdown ghp-import
to create a development server run the following command
$ make devserver
You can open localhost:8000 to view the website.
First make sure that your repository is updated and the virtual environment is activated:
$ git pull
$ git checkout master
$ source .env/bin/activate
To change the content of the website you need to edit the markdown files located inside different folders in contents
folder.
edit the contents/pages/index.md
file to change the index of the website.
Session reports are placed inside the contents/reports
directory. you need to create a folder for each new session. Note that any files related to the session should be placed inside that session's directory.
To manually update your changes to be shown in web server running on your localhost run
$ pelican content -s pelicanconf.py
to update the master branch run
$ git add #{any file you changed}
$ git commit
$ git push origin master
To publish the changes to github's gh-pages
branch simply run
$ make github
When you're done, you can deactivate the virtual environment
$ deactivate