From: Jonathan S. Katz Date: Thu, 21 Jan 2021 16:40:17 +0000 (-0500) Subject: Update README instructions and add .gitignore X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=74389a325d9441e2873cca0da24fc107e571d19c;p=pgcac-website.git Update README instructions and add .gitignore The README instructions are simplified slightly for setting up the virtual environment. A .gitignore entry is also added to coincide with one of the README instructions, i.e. creating the virtual environment directory within the repository. --- diff --git a/.gitignore b/.gitignore index 723ef36..84f91b1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.idea \ No newline at end of file +.idea +pythonenv diff --git a/README.md b/README.md index 8e7a1a0..0191c6d 100644 --- a/README.md +++ b/README.md @@ -3,26 +3,24 @@ The PGCAC website is based on the pgeu-website template engine. A static website can be generated from these templates with the following steps: 1. git clone https://git.postgresql.org/git/pgcac-website.git -2. git clone https://git.postgresql.org/git/pgeu-website.git +2. git clone https://git.postgresql.org/git/pgeu-website.git 3. Setup a python virtualenv: ```shell script - python3 -m venv pythonenv + python3 -m venv pythonenv . pythonenv/bin/activate - pip3 install Markdown==2.6.5 - pip3 install python-dateutil - pip3 install jinja2 + pip install Markdown==2.6.5 python-dateutil jinja2 ``` 4. Run the deploystatic.py script: ```shell script - python3 pgeu-website/tools/deploystatic/deploystatic.py `pwd`/pgcac-website `pwd`/postgres.ca + python pgeu-website/tools/deploystatic/deploystatic.py `pwd`/pgcac-website `pwd`/postgres.ca ``` 5. Test the resulting build: ```shell script cd postgres.ca - python3 -m http.server + python -m http.server ```