This repo contains a template that should be used when creating lab documentation for F5's Agility Labs.
- Download or
git clone
the f5-agility-lab-template - Download and install Docker CE (https://docs.docker.com/engine/installation/)
- Build the sample docs
./containthedocs-build.sh
. The first time you build a container (~1G in size) will be downloaded from Docker Hub. - Open the
docs/_build/html/index.html
file on you system in a web browser
To use this template:
- Copy contents of this repo to a new directory
cp -Rf . /path/to/your/docs
cd /path/to/your/docs
- Edit
docs/conf.py
- Modify the following lines:
classname = "Your Class Name"
github_repo = "https://github.com/f5devcentral/your-class-repo"
- Build docs
./containthedocs-build.sh
(see Build Scripts below) - Open the
docs/_build/html/index.html
file on you system in a web browser - Edit the
*.rst
files as needed for your class - Rebuild docs as needed using
./containthedocs-build.sh
To convert a .docx
file from Microsoft Work to reStructuredText:
- Copy your
.docx
file into the f5-agility-lab-template directory - Run
./containthedocs-convert.sh <filename.docx>
- Your converted file will be named
filename.rst
- Images in your document will be extracted and placed in the
media
directory
Warning
While the document has been converted to rST format you will still need to refactor the rST to use the structure implemented in this template.
The repo includes build scripts for common operations:
containthedocs-bash.sh
: Run to container with a BASH promptcontainthedocs-build.sh
: Build HTML docs usingmake -C docs html
todocs/_build/html
containthedocs-clean.sh
: Clean the build directory usingmake -C docs clean
containthedocs-cleanbuild.sh
: Clean the build directory and build HTML docs usingmake -C docs clean html
containthedocs-convert.sh
: Convert a Word.docx
file to rST