@@ -49,6 +49,7 @@ The documentation is built with mkdocs:
49
49
* [ mkdocs] ( https://www.mkdocs.org/ ) >= 1.1.2
50
50
* [ mkdocstrings] ( https://mkdocstrings.github.io/ ) >= 0.25
51
51
* [ mkdocs-material] ( https://squidfunk.github.io/mkdocs-material/ )
52
+ * [ mkdocs-gen-files] ( https://oprypin.github.io/mkdocs-gen-files/ )
52
53
53
54
Please be aware that tests always run against the globally installed
54
55
osm2pgsql, so you need to have this set up. If you want to test against
@@ -66,9 +67,9 @@ To set up the virtual environment with all necessary packages run:
66
67
``` sh
67
68
virtualenv ~ /nominatim-dev-venv
68
69
~ /nominatim-dev-venv/bin/pip install\
69
- psycopg2-binary psutil psycopg[binary] PyICU SQLAlchemy \
70
- python-dotenv jinja2 pyYAML datrie \
71
- behave mkdocs mkdocstrings pytest pytest-asyncio pylint \
70
+ psutil psycopg[binary] PyICU SQLAlchemy \
71
+ python-dotenv jinja2 pyYAML datrie behave \
72
+ mkdocs mkdocstrings mkdocs-gen-files pytest pytest-asyncio pylint \
72
73
types-jinja2 types-markupsafe types-psutil types-psycopg2 \
73
74
types-pygments types-pyyaml types-requests types-ujson \
74
75
types-urllib3 typing-extensions unicorn falcon
@@ -147,18 +148,14 @@ built using the [MkDocs](https://www.mkdocs.org/) static site generation
147
148
framework. The master branch is automatically deployed every night on
148
149
[ https://nominatim.org/release-docs/develop/ ] ( https://nominatim.org/release-docs/develop/ )
149
150
150
- To build the documentation, go to the build directory and run
151
+ To build the documentation run
151
152
152
153
```
153
154
make doc
154
- INFO - Cleaning site directory
155
- INFO - Building documentation to directory: /home/vagrant/build/site-html
156
155
```
157
156
158
- This runs ` mkdocs build ` plus extra transformation of some files and adds
159
- symlinks (see ` CMakeLists.txt ` for the exact steps).
160
157
161
- Now you can start webserver for local testing
158
+ For local testing, you can start webserver:
162
159
163
160
```
164
161
build> make serve-doc
@@ -170,7 +167,7 @@ If you develop inside a Vagrant virtual machine, use a port that is forwarded
170
167
to your host:
171
168
172
169
```
173
- build> PYTHONPATH=$SRCDIR mkdocs serve --dev-addr 0.0.0.0:8088
170
+ build> mkdocs serve --dev-addr 0.0.0.0:8088
174
171
[server:296] Serving on http://0.0.0.0:8088
175
172
[handlers:62] Start watching changes
176
173
```
0 commit comments