From 6801ea7afadbc5aee5a8188b30a8362623b04a7d Mon Sep 17 00:00:00 2001 From: Hugo Kerstens <hugokk@hotmail.nl> Date: Mon, 15 Apr 2019 14:56:13 +0200 Subject: [PATCH] Add compilation instructions to readme --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index 05a6b694..f7d1dca3 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,37 @@ Lecture notes and teaching material used for the Delft University of Technology The compiled materials are available at http://solidstate.quantumtinkerer.tudelft.nl +## How to compile +To compile it is advised to use a separate environment. We use miniconda for environment management, which can be found at https://docs.conda.io/en/latest/miniconda.html + +First create a new conda environment named `lectures` with Python 3.6 and activate it. You can also use another environment manager of your choice. + +```sh +conda create -n lectures python=3.6 +conda activate lectures +``` + +Clone this repository and enter the directory. + +```sh +git clone https://gitlab.kwant-project.org/solidstate/lectures.git +cd lectures +``` +Install the required packages from `requirements.txt`. + +```sh +pip install -r requirements.txt +``` + +And finally run `execute.py` to prepare the source files for `mkdocs`. + +```sh +python execute.py +``` + +Now that all the files are where they should be, you can either run a development server or build the files for deployment using `mkdocs`. The commands to achieve this are: + +```sh +mkdocs serve # Run a development server +mkdocs build # Build for deployment +``` -- GitLab