Skip to content

3rww/sewer-atlas-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

3RWW Atlas Docs built with mkdocs

This directory contains the 3RWW Atlas Documentation source files, written in markdown and configured with YAML for use with mkdocs

Conventions

Documentation is written markdown. File-naming conventions are as follows:

  • Help. help_ prefixed files are for general help documentation, and serve to document the functionality of the app independent from any workflow.
  • Guides. 'guide_' prefixed files are for workflow-specific user guides, intended to walk users through the button clicks needed to get certain information or create something.

Style

  • extra.css includes custom 3RWW styling elements that supplant a few underlying default mkdocs Bootstrap styling parameters (e.g., color, fonts).

Usage

The mkdocs site has great introduction to this. We'll cover the basics below.

Using mkdocs requires a Python (3+ preferred) installation and the ability to access it from the command line (not always a given on Windows, but you'll be fine on -nix systems) and Git if you plan on pulling and pushing updates.

Prerequsities

Install mkdocs locally

Run pip install mkdocs or python -m pip install mkdocs to install MkDocs.

Get this documentation

Run git clone https://github.com/3rww/sewer-atlas-docs.git to clone this repository to your local machine.

View live documentation locally

From the command line, navigate to this directory directory and enter mkdocs serve

Open http://localhost:8000 in your browser to view a live preview of the documentation. This will auto-refresh with changes to the underlying markdown and YAML files.

Write documentation

Documentation is stored in the docs folder. Assets are stored in docs/img (images) and docs/resources (everything else).

The yaml file at the root of the project articulates how the table of contents, nav bar, and other things are arranged.

Build for Deployment (3RWW)

From the command line, navigate to the directory and enter: mkdocs build

This will generate all the files needed to serve up the full static help doucmentation site.

A default build directory is set for our particular project folder structure. This is currently set for 3RWW's consultant, CivicMapper (D:\Dropbox\CivicMapper\Projects\3RWW\Atlas\Atlas Docs\atlas_mkdocs_build), but you can modify this for your own local documentation builds.

Note that the build directory as served includes an additional page (guide_rsi.html) that exists only for a client-side redirect from the mds.3riverswetweather.org. This page is not generated from mkdocs build.

The build is manually deployed using FTP to a mds.3riverswetweather.org location via a WebDAV site.