2019-11-07 21:54:43 +01:00
2019-10-14 21:28:29 +02:00
2019-01-20 12:38:32 +01:00
2019-10-14 21:28:29 +02:00
2019-08-07 21:55:24 +02:00
2019-10-14 21:28:29 +02:00

This is a playground for a new VyOS documentation starting for VyOS 1.2 (Crux) release.

Build

Native

To build the manual run the following commands inside the docs folder:

  • make html for a HTML manual
  • make latexpdf for a LaTeX rendered PDF

Required Debian Packages:

  • python-sphinx
  • python-sphinx-rtd-theme
  • latexmk
  • texlive-latex-recommended
  • texlive-fonts-recommended
  • texlive-latex-extra

sphinx-autobuild

Required extra setup procedure on Debian:

sudo apt-get install python-pip
sudo pip install sphinx-autobuild

To build and run a webeserver, inside the docs folder:

Docker

Using our Dockerfile you create your own Docker container that is used to build a VyOS documentation.

Setup

$ docker build -t vyos-docu docker

Build

Linux

$ docker run --rm -it -v "$(pwd)":/vyos -w /vyos/docs -e GOSU_UID=$(id -u) -e GOSU_GID=$(id -g) vyos-docu make html

# sphinx autobuild
$ docker run --rm -it -p 8000:8000 -v "$(pwd)":/vyos -w /vyos/docs -e GOSU_UID=$(id -u) -e GOSU_GID=$(id -g) vyos-docu make livehtml

Windows

docker run --rm -it -v "$(pwd):/vyos" -w /vyos/docs vyos-docu make html

# sphinx autobuild
docker run --rm -it -p 8000:8000 -v "$(pwd):/vyos" -w /vyos/docs vyos-docu make livehtml

Test the docs

discuss in this Task: T1731

to test all files:

$ docker run --rm -it -v "$(pwd)":/vyos -w /vyos/docs -e GOSU_UID=$(id -u) -e GOSU_GID=$(id -g) vyos-docu vale .

to test a specific file e.g. clustering.rst

$ docker run --rm -it -v "$(pwd)":/vyos -w /vyos/docs -e GOSU_UID=$(id -u) -e GOSU_GID=$(id -g) vyos-docu vale clustering.rst
Description
VyOS readthedocs
Readme 80 MiB
Languages
Python 42.6%
Dockerfile 35.5%
Shell 21.9%