Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.

Latest commit

 

History

History
111 lines (74 loc) · 3.6 KB

README.md

File metadata and controls

111 lines (74 loc) · 3.6 KB

bf-docs

This repository contains the markdown source for Beachfront documentation.

Important Note

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.

Table of Contents

Building HTML Documentation

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:

Install MkDocs

Install with a Package Manager

Linux

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.

OSX

MkDocs is available as a Homebrew package:

[~/workspace/bf-docs]$ sudo brew install mkdocs

Manual Installation

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.

Build the Documentation

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 the mkdocs.yml file in this repo's root directory. See MkDocs Configuration for details.

Documentation Authors

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: