Skip to content

Latest commit

 

History

History
61 lines (36 loc) · 3.06 KB

README.md

File metadata and controls

61 lines (36 loc) · 3.06 KB

Mathesar's Documentation

This directory contains the source code for Mathesar's user and administrator documentation published to https://docs.mathesar.org/

Preview your documentation edits locally

  1. Install requirements

    pip install -r requirements.txt
    
  2. Start MkDocs

    mkdocs serve -a localhost:9000
    
  3. Preview the docs at http://localhost:9000

  4. Keep mkdocs running while you edit and your local preview will refresh automatically.

Contribution process

  • For small documentation improvements, we welcome PRs without any prior issues. For larger edits, please open an issue first to discuss your changes and get approval from the team before proceeding.

  • Take care when choosing the git branch on which to base your edits

    • Target master if you have an important fix which needs to be published for the currently-released version of Mathesar.
    • Target develop if you are adding/updating documentation along with yet-to-be-released changes to the product.

    The docs site is published from the master branch. This is important because we want to ensure that it reflects the latest released version of Mathesar so that docs readers who are installing or using Mathesar don't see content before it's actually applicable.

See our Contribution guidelines for more information about our pull-request workflow.

Reference

  • Our docs run on a distribution of mkdocs called mkdocs-material. For basics of doc writing, see the Writing your docs section of mkdocs user guide.

  • For some customization basics, see Customization section of mkdocs-material's Getting started guide. To learn about some of mkdocs-material's features (annotations, code blocks, content tabs, etc.), see its Reference.

  • For page redirects, we use mkdocs-redirects.

  • We use the macros plugin to show the same content in different places, and we generally put such content in the snippets directory.

  • We use the placeholder plugin to allow the user to customize small tokens which get repeated throughout a page. Here's how it works:

    1. Add a token like PLACEHOLDER_NAME in placeholder-plugin.yaml with a default value.

    2. Put an input on the page to allow the reader to customize the value of the token.

      <input data-input-for="PLACEHOLDER_NAME">
    3. Then put the customized value anywhere in the page

      xPLACEHOLDER_NAMEx
      
  • For docs content, we adhere to CiviCRM's Documentation Style Guide.