-
Notifications
You must be signed in to change notification settings - Fork 79
Building the Website
Ayush Agarwal edited this page Oct 11, 2018
·
2 revisions
The website utilizes StaticJinja to build and compile data and templates into a final static build. StaticJinja uses Jinja2 templating system, refer to Jinja2 website for template designer documentation.
When building for the first time, certain dependencies need to be installed to successfully build the website.
Though the step is optional but highly recommended to ensure the dependencies does not conflict with system installed libraries.
Install Python3 and Pip and then run:
pip install virtualenv
virtualenv VENV_NAME
Linux:
source VENV_NAME/bin/activate
Windows:
./VENV_NAME/Scripts/activate
Requirements are listed in standard pip requirements file in /requirements.txt
pip install -r requirements.txt
Run build.py to automatically build and render top-level HTML files.
python build.py
To run a development Server (Optional):
python -m http.server