Tutorial
A Quick Start Guide for using the tool. This assumes a generic Linux / Mac / Windows system.
I will put together a specific version for a University Windows image, when I work out the Gotchas.
Requirements
All the requirements should be in the standard uni image.
- Web Browser
- Text Editor
- Python (3.x preferred)
All the code uses native python packages, so there should be no need to install any other software.
Installation
Get a copy of the source code from the Github Repo It doesn't matter if you clone the repository or get the zip file.
Once you have the code navigate to its location using the command line.
cd <path>/<to>/<source>
Virtual environments (venv) give us a way of sandboxing python software we install. It means that they are not installed in the global path. Personally, as a developer, I prefer this as it means I dont get caught out by dependencies or clutter up my Python namespace with cruft.
We can create a venv using
python -m venv env
Each time we want to use the code we need to access enter the virtual environment. We can do this in Linux / mac with
$source env/bin/activate
or Windows
C:\> env\Scripts\activate.bat
We can now install the program using the setup script.
$ python setup.py install
Building our First Document
cd examples
$ runDMC CourseworkBrief.md -t coursework/CourseworkBrief.jinja2