Skip to content

Commit 9f639dd

Browse files
committed
update docs
1 parent 378c569 commit 9f639dd

7 files changed

Lines changed: 1207 additions & 382 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,3 +507,5 @@ bin/native/osx-x64/libsecp256k1.dylib
507507
bin/native/osx-arm64/libsecp256k1.dylib
508508
bin/native/linux-x64/libsecp256k1.so
509509
bin/native/linux-arm64/libsecp256k1.so
510+
docs/.venv-pandoc/
511+
.DS_Store

docs/index.html

Lines changed: 1088 additions & 369 deletions
Large diffs are not rendered by default.

docs/index.md

Lines changed: 42 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ NOVA provides several statistical meassures to investigate the agreement between
271271

272272
where $K$ defines the number of components (K-items or testlets)
273273

274-
$\bar{r}$ is the mean of the $K(K-1)/2} K(K-1)/2$ non-redundant correlation coefficients
274+
$\bar{r}$ is the mean of the $K(K-1)/2$ non-redundant correlation coefficients
275275

276276
* Spearman Correlation:
277277

@@ -357,8 +357,8 @@ We will describe two strategies: a) set up MongoDB with Docker *or* b) set up Mo
357357
First, we install Docker (<https://www.docker.com/>) and run:
358358

359359
~~~~
360-
docker pull mongo:3.6.0
361-
docker run -d -p 27017-27019:27017-27019 --name nova mongo:3.6.0
360+
docker pull mongo:3.6
361+
docker run -d --restart unless-stopped -p 27017-27019:27017-27019 --name nova mongo:3.6
362362
363363
364364
~~~~
@@ -377,12 +377,13 @@ MongoDB now runs on 127.0.0.1:27017 and we can connect to it:
377377

378378

379379
~~~~
380-
381380
docker exec -it nova bash
381+
~~~~
382382

383-
Enter:
384-
mongo
383+
*Press <kbd>Enter</kbd>.*
385384

385+
~~~~
386+
mongo
386387
~~~~
387388

388389
*or*
@@ -397,10 +398,12 @@ We add an administrator:
397398
use admin
398399
db.createUser({ user: 'admin', pwd: 'PASSWORD', roles: [ { role: "root", db: "admin" } ], customData: {fullname: "ADMIN", email: ' ', expertise: NumberInt(0)}});
399400
exit
401+
~~~~
400402

401-
Enter:
402-
exit
403+
*Press <kbd>Enter</kbd>.*
403404

405+
~~~~
406+
exit
404407
~~~~
405408

406409
And reconnect afterwards:
@@ -440,11 +443,39 @@ db.createUser({ user: 'gold', pwd: 'PASSWORD1', roles: [ { role: "readWriteAnyDa
440443
db.createUser({ user: 'system', pwd: 'PASSWORD2', roles: [ { role: "readWriteAnyDatabase", db: "admin" }, {"role" : "changeOwnPasswordCustomDataRole", "db" : "admin"} ], customData: {fullname: 'SYSTEM', email: ' ', expertise: NumberInt(0)} });
441444
~~~~
442445

443-
We can now test the server:
446+
We can now test the server:
444447

445-
~~~~
448+
~~~~
446449
show dbs
447-
~~~~
450+
~~~~
451+
452+
If MongoDB runs on a different machine than NOVA, we recommend enabling TLS. A minimal container setup is:
453+
454+
1) Create a server certificate and key on the MongoDB host (use your CA or self-signed for testing) and place them in one PEM file, e.g. `mongo.pem`.
455+
456+
2) Start MongoDB with TLS enabled:
457+
458+
~~~~
459+
docker run -d --restart unless-stopped \
460+
-p 27017:27017 \
461+
-v /path/to/certs:/certs:ro \
462+
--name nova \
463+
mongo:3.6.0 \
464+
--auth \
465+
--tlsMode requireTLS \
466+
--tlsCertificateKeyFile /certs/mongo.pem \
467+
--tlsCAFile /certs/ca.pem
468+
~~~~
469+
470+
3) Connect with TLS from NOVA or the shell (example):
471+
472+
~~~~
473+
mongo --tls --host <mongo-host> --port 27017 \
474+
--tlsCAFile /path/to/ca.pem \
475+
-u admin -p PASSWORD --authenticationDatabase admin
476+
~~~~
477+
478+
Make sure the host name in the certificate matches the address NOVA uses to connect (or include it in the certificate SANs).
448479

449480
To connect to the MongoDB server in NOVA, we open the settings by clicking the wheel in the menu and switch to the 'Database' tab. Here we enter the host and port number of the MongoDB server and the user credentials. The dialog also allows it to customize the download and CML directory. After applying the changes, NOVA tries to connect to MongoDB. If a connection is established it will be displayed in the status bar.
450481

docs/make-html.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@echo off
22
cd /D "%~dp0"
33

4-
pandoc -o index.html -s -f markdown --number-sections --template templates/standalone.html --css templates/template.css --toc --toc-depth=4 --mathjax index.md
4+
pandoc -o index.html -s -f markdown --number-sections --template templates/standalone.html --css templates/template.css --toc --toc-depth=4 --mathjax=https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js index.md

docs/make-html.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
cd "$(dirname "${BASH_SOURCE[0]}")"
5+
6+
VENV_DIR=".venv-pandoc"
7+
8+
if [[ ! -d "$VENV_DIR" ]]; then
9+
python3 -m venv "$VENV_DIR"
10+
fi
11+
12+
# shellcheck disable=SC1091
13+
source "$VENV_DIR/bin/activate"
14+
15+
python -m pip install --upgrade pip >/dev/null
16+
python -m pip install --quiet pypandoc-binary >/dev/null
17+
18+
python - <<'PY'
19+
import pypandoc
20+
21+
pypandoc.convert_file(
22+
"index.md",
23+
"html",
24+
outputfile="index.html",
25+
extra_args=[
26+
"-s",
27+
"-f", "markdown",
28+
"--number-sections",
29+
"--template", "templates/standalone.html",
30+
"--css", "templates/template.css",
31+
"--toc",
32+
"--toc-depth=4",
33+
"--mathjax=https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js",
34+
],
35+
)
36+
PY
37+
38+
echo "Wrote index.html"

docs/make-latex.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
cd "$(dirname "${BASH_SOURCE[0]}")"
5+
6+
VENV_DIR=".venv-pandoc"
7+
8+
if [[ ! -d "$VENV_DIR" ]]; then
9+
python3 -m venv "$VENV_DIR"
10+
fi
11+
12+
# shellcheck disable=SC1091
13+
source "$VENV_DIR/bin/activate"
14+
15+
python -m pip install --upgrade pip >/dev/null
16+
python -m pip install --quiet pypandoc-binary >/dev/null
17+
18+
python - <<'PY'
19+
import pypandoc
20+
21+
pypandoc.convert_file(
22+
"index.md",
23+
"pdf",
24+
outputfile="index.pdf",
25+
extra_args=[
26+
"-s",
27+
"--number-sections",
28+
"--toc",
29+
"--toc-depth=4",
30+
"--template=templates/default.latex",
31+
"-V", "documentclass=scrartcl",
32+
],
33+
)
34+
PY
35+
36+
echo "Wrote index.pdf"

docs/templates/standalone.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
<link href="templates/menu/css/skins/graphite.css" rel="stylesheet" type="text/css" />
2525
<link href="templates/menu/css/skins/grey.css" rel="stylesheet" type="text/css" />
2626

27-
<script src="templates/menu/js/MathJax.js"></script>
2827

2928

3029
<script src="templates/script.js"></script>

0 commit comments

Comments
 (0)