Browse Source

Ajout infos compilation / publication

sebbaz 6 years ago
parent
commit
324ae87d8a
3 changed files with 44 additions and 1 deletions
  1. 2 1
      .gitignore
  2. 40 0
      README.md
  3. 2 0
      requirements.txt

+ 2 - 1
.gitignore

@@ -1,3 +1,4 @@
 output/*
 __pycache__
-
+virtualenv-tdn/*
+*.swp

+ 40 - 0
README.md

@@ -12,3 +12,43 @@
 ## Conception
 
 voir [[documentation/conception.md]]
+
+## Créer un environnement pour modifier le site
+
+Installer au préalable Python [[https://www.python.org/downloads/]], [[pip|https://pip.pypa.io/en/stable/installing/]] et [[virtualenv|https://virtualenv.pypa.io/en/stable/]]
+
+Cloner le projet :
+
+```
+git clone ssh://gogs@code.ffdn.org:55555/TDN/SiteWeb.git
+```
+
+Créer un environnement virtuel :
+
+```
+virtualenv ./virtualenv-tdn
+source ./virtualenv-tdn/bin/activate
+```
+
+Installer les dépendances : 
+
+```
+pip install requirements.txt
+```
+
+Faire les modifications
+
+## Pour générer le site
+
+En developpement :
+
+```
+pelican content/ -s pelicanconf_dev.py
+```
+
+En production :
+
+```
+pelican content/
+```
+

+ 2 - 0
requirements.txt

@@ -0,0 +1,2 @@
+pelican
+Markdown