Skip to content

Contributing to the Orchard Core documentation

First of all, thank you for thinking about contributing to the docs! This is especially valuable while you're still new to Orchard because your experiences and revelations can help other newcomers a lot. Be sure to check out the general contribution docs first.

The Orchard Core documentation site is built with MkDocs and served from Read the docs.

Info

Are you looking for information on contributing code? Head over to here instead.

Tip

If you're looking for ideas on what to improve in the Orchard Core documentation, check out the documentation issues.

Editing documentation pages

First, clone the repository using the command git clone https://github.com/OrchardCMS/OrchardCore.git and checkout the main branch. You can find the documentation files under the src/docs folder.

If you open the Orchard Core solution (OrchardCore.sln in the root) in Visual Studio or another IDE then you'll be able to browse the files in the OrchardCore.Docs project under the docs solution folder. If you use a Markdown editor (IDEs usually have built-in support for it, including Visual Studio) then you'll see all the Markdown formatting and embedded images in a WYSIWYG manner, and links will work too.

  • To embed YouTube videos, be sure to tick "Enable privacy-enhanced mode." when generating the embed code (this will create a code that references youtube-nocookie.com).
  • If you rename or move a documentation page, external links to it will break. Please add a redirect from the old URL in the mkdocs.yml file, under the redirect_maps section.

Adding docs for a new extension or topic

Do the following if you're adding docs for a newly developed extension, or if you add some other completely new topic (in which case adapt it to the section you add the topic to):

  1. Add a folder under reference/modules with the same name as the module's project without OrchardCore.. E.g. for OrchardCore.AuditTrail use AuditTrail.
  2. Add a README.md file to it, following the format of existing such files. There, add an overview of the extension's features, configuration, embed demo videos.
  3. Link to the README.md file from reference/modules/README.md.
  4. Link to the README.md file from the mkdocs.yml file in the repository root.
  5. If the module contains content parts, also link the README.md file from reference/modules/ContentParts/README.md.

Running the documentation site locally

With MkDocs you can get the full docs.orchardcore.net experience locally too. If you are looking to contribute substantial amount of docs then please do run the site locally to make sure what you write will actually look like it should.

  1. Follow the MkDocs installation guide to install Python, PIP and MkDocs. If you already have a fresh enough Python installation, you can simply run pip install mkdocs.
  2. Open a command line in the root of your clone of the repository.
  3. Run pip install -r src/docs/requirements.txt to install dependencies.
  4. Run python -m mkdocs serve to start the site. You'll then be able to browse it under http://127.0.0.1:8000.

Submitting a pull request and gathering feedback

This happens in the same way as for code contributions, see there.