This repository contains the markdown source for Beachfront documentation.
As of May 2018, BF-Docs is no longer built as part of the Jenkins pipeline (due to various technical reasons), all documents in the MASTER BRANCH must be generated by MkDocs locally on developer machines. The process for updating BF-Docs is as follows:
- Update the BUILD branch with the direct Markdown changes and updates
- Run the MkDocs build (documented below) manually to create the output HTML files
- Merge those output HTML files into the Master branch
The ultimate goal should be for the Markdown files to be built into HTML files via JenkinsFiles in Jenkins automatically. Until then, the above process shall stand.
The delivery method for this documentation is a static HTML site. We use MkDocs to generate the static files from the markdown documents contained in this repo.
MkDocs is a generator that uses source documents in markdown (using a Python implementation of Markdown) to generate a static HTML site.
As a developer, you don't need to generate these static files yourself unless you would like to preview your work. If you do decide to do that, here's how:
There may be a package available for your flavor of Linux. For example, with Ubuntu:
[~/workspace/bf-docs]$ sudo apt-get install mkdocs
Other packages are available to install additional themes and documentation.
MkDocs is available as a Homebrew package:
[~/workspace/bf-docs]$ sudo brew install mkdocs
If you can't or don't want to install MkDocs with your platform's package manager, then you can do it manually. You'll need Python >= 2.7.2 and the Python package manager, pip:
[~/workspace/bf-docs]$ python --version
Python 2.7.2
[~/workspace/bf-docs]$ pip --version
pip 1.5.2
Then install with:
$ pip install mkdocs
If you are installing on Windows, then see the instructions on www.mkdocs.org.
You can build the documentation static site with the command:
[~/workspace/bf-docs]$ mkdocs build
This will generate the static files in the project's site/
directory. But
you won't normally have a need to do this. Typically you would run the mkdocs serve
command to run a local server on port 8000 to review the HTML documents:
[~/workspace/bf-docs]$ mkdocs serve
Then just use a browser to access http://localhost:8000/ to see the results. This site will automatically reload when you make changes to the files.
The behavior of
mkdocs
is controlled by themkdocs.yml
file in this repo's root directory. See MkDocs Configuration for details.
All documentation that is intended to be distributed as part of the static
Beachfront documentation site must be somewhere in the docs/
directory and
should have the .md
extension.
The documentation must be written in markdown for the Python implementation of Markdown with the extensions: