Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 2.05 KB

CONTRIBUTING.md

File metadata and controls

40 lines (26 loc) · 2.05 KB

Contributing

As the OpenFLUID community documentation is adressed to the users, we ❤️ the contributions from any user!

Preliminary operations

  • Browse the community documentation to get familiar with the documentation structure
  • If not already done, have a look at MkDocs documentation tool and Markdown syntax. The OpenFLUID community documentation is based on this tool and language
  • If not already done, install required tools :
    1. Python 3 (see instruction here)
    2. MkDocs and extensions
      pip3 install mkdocs mkdocs-markdownextradata-plugin pymdown-extensions markdown-include mkdocs-material bibtexparser

Contribution process

  1. Let us know you want to make a contribution, it is always better to know each others for later interactions. For that, you can use our support tools
  2. Fork the documentation repository
  3. Clone your fork locally and create a dedicated branch for your contributions
  4. Update the documentation with your contributions by committing it locally. Check that your contributed documentation builds without problem usink mkdocs (see next part)
  5. Push it to your forked repository in the dedicated branch
  6. Make a pull request for your contributions

Writing using MkDocs

The documentation sources are located in the src directory. The main page of this documentation is the src/docs/index.md file.

During the writing phase of your contributions, you can render the documentation using the MkDocs tool. The following recipe is for Linux environments.

  1. Open a terminal
  2. Go to the src directory
  3. Run the mkdocs serve command from within this directory
  4. Open your browser to the URL given by the mkdocs serve command

The documentation is automatically reloaded in the browser every time you save the markdown files on disk.