2022-07-11 20:32:59 +00:00
|
|
|
# Source files for OpenMW documentation
|
|
|
|
|
|
|
|
## Generating Lua scripting API reference
|
|
|
|
|
|
|
|
### Building Docker image
|
|
|
|
|
|
|
|
Run following command from OpenMW source directory to build a new Docker image `openmw.luadoc`:
|
|
|
|
```bash
|
|
|
|
docker build -f docs/source/Dockerfile.luadoc -t openmw.luadoc docs/source
|
|
|
|
```
|
|
|
|
|
|
|
|
### Generating HTML
|
|
|
|
|
|
|
|
Run following command from OpenMW source directory to generate HTML pages:
|
|
|
|
```bash
|
|
|
|
docker run --rm --tty --interactive --user "$(id -u)":"$(id -g)" \
|
2022-07-12 20:06:37 +00:00
|
|
|
--volume "${PWD}":/openmw openmw.luadoc /openmw/docs/source/generate_luadoc.sh
|
2022-07-11 20:32:59 +00:00
|
|
|
```
|