Skip to content

ni/monodrive-documentation

Repository files navigation

monoDrive Docs

Getting Started

  • Clone project
$ git clone git@github.com:monoDriveIO/documentation.git
  • Create python environment
$ conda env create -f environment.yml
$ conda activate monodrive-documentation
(monodrive-documentation) $ mkdocs serve

 

Build

  • Login/create user to readthedocs preferably through github for easy access to monodrive

  • Get access to be a maintainer through someone who is already a maintainer. (like me, Katie)

  • After having access, click on >> My Projects >> monoDrive

  • Select latest and Build Version.

 

Navigation / Side Panel

Add new sections and documents to mkdocs.yml with their title and corresponding file from the docs folder.

- monoDrive :
  - Home: 
    - monoDrive: index.md

 

Markdown & Styling

Consistency with the markdown effects the layout of the side panel as well as the over all consistency between sections. Here are some recommended guidelines:

Headers

# MarkDown Header Example Title

## Markdown Header Example Title (repeat)

Repeat the same title twice, once for the overall section, and one for the basic details of the section.

## Additional Header Example Information

Headers need to go in order, so for instance, resist going from a h2 ## to an h4 ####. This might break the styling of the side panel. 
Any sub-sections that get to h4 or smaller will not be included in the side panel, and will show the same as h3 ###. This probably indicates a need to break down the information into more manageable chunks for the user. 

### Sub-Header is Seen and Clickable in Side Panel

#### This Sub-Header is Not Seen in Side Panel

 

Images

    <div class="img_container">
        <img class='lg_img' src="path/to/image.png"/>
    </div>

Sizing and Centering

To center an image, wrap in a div with the class img_container like in the example above. Four separate sizes were created using css:

  • thumbnail { width: 50px }

     <img class="thumbnail" src= https://github.com/monoDriveIO/client/raw/master/WikiPhotos/monoDriveLogo.png alt="monoDrive"/>
    
    monoDrive
  • sm_img { width: 200px }

     <img class="sm_img" src= https://github.com/monoDriveIO/client/raw/master/WikiPhotos/monoDriveLogo.png alt="monoDrive"/>
    
    monoDrive
  • lg_img { width: 400px }

     <img class="lg_img" src= https://github.com/monoDriveIO/client/raw/master/WikiPhotos/monoDriveLogo.png alt="monoDrive"/>
    
    monoDrive
  • wide_img { width: 90% }

     <img class="wide_img" src= https://github.com/monoDriveIO/client/raw/master/WikiPhotos/monoDriveLogo.png alt="monoDrive"/>
    
    monoDrive

Add custom image sizes in extra.css

 

Recommendations

  • Add a line between sections : <p>&nbsp;</p>

  • There should always be an empty line before bulleted lists

  • For instructions, add lines between list items

  • Capitalize all header titles

 

Sources

Created using mkdocs with the theme ivory

Written in markdown

Hosted through readthedocs