diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-10-24 21:42:20 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-10-24 21:42:20 +0200 |
commit | 56cdadf71a8232b33fbd54f04c24af95957a6023 (patch) | |
tree | 4d140a80e499b317086b5e73c2da595b2240ce8b | |
parent | 8ce0d0f2d65974f98b2792a546734e6742980a1f (diff) | |
download | auditor-56cdadf71a8232b33fbd54f04c24af95957a6023.tar.gz auditor-56cdadf71a8232b33fbd54f04c24af95957a6023.tar.bz2 auditor-56cdadf71a8232b33fbd54f04c24af95957a6023.zip |
update docu
-rw-r--r-- | INSTALL | 35 | ||||
-rw-r--r-- | README | 26 |
2 files changed, 53 insertions, 8 deletions
@@ -0,0 +1,35 @@ +Installation instructions +------------------------- + +For Debian: +=========== + +Simply install: + +# apt-install python3-ruamel.yaml python3-jinja2 python3-babel git node-typescript + +Then invoke "bootstrap" and "configure". You must pass +"--prefix=$P" and "--variant=$V" for some values of +$P and $V to configure. The actual Web site +will be installed at $P/$V. + + +For NetBSD: +=========== + +Install python3.8, py38-babel, npm, nodejs from pkgsrc. + +Adjust the values in config.mk: + + PYTHON=python3.8 + BABEL=pybabel-3.8 + +npm install typescript +Add the node_module's bin to your $PATH for the typescript binary. +make submodules/init +make submodules/update +make + +If you installed typescript in $HOME: +PATH=$HOME/node_modules/.bin/:$PATH env BROWSER=firefox make run +to run the website @@ -1,11 +1,21 @@ -This repository just contains the auditor's standalone Web site. -The actual auditing logic is part of the 'exchange.git' repository. +This repository contains a template for a simple auditor Web site. -To build the auditor web page stand alone, make sure you have GNUnet -installed (e.g. via apt install gnunet) for the required gnunet-ecc -support, and run the following steps from the repository root: +The Web site consists of basically static HTML. However, the static HTML is +run through the Jinja2 template processor for internationalization. -$ git submodule init -$ git submodule update --remote -$ make +Structure: +INSTALL contains instructions for how to generate the HTML page(s). + +template/ + Basically, you edit the English "*.html.j2" files in template/, and then run + the Python script to generate static HTML. To facilitate translation, all + English text in the HTML is marked for GNU Gettext using Jinja2 mark-up. + +locale/ + The translations of the strings into the various languages are in the + locale/ directory. + +inc/ + This directory contains various Python scripts that are included during + the pre-processing with Jinja2. |