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.
Editing documentation pages¶
On every documentation page, including this one, you'll see an editor icon in the top right corner. If you click that you'll be able to do quick edits right within GitHub.
Alternatively, you can clone the whole Orchard Core repository and edit any documentation file there. These you can find 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 like the Markdown Editor VS extension then you'll see all the Markdown formatting and embedded images in a WYSIWYG manner, and links will work too.
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.
- Follow the MkDocs installation guide to install Python. once you have Python installed you won't need to install MkDocs by hand, we'll do that in a next step. If you're on Windows be sure to add the Python
Scriptsfolder to the
PATHas noted there, otherwise none of the
mkdocscommands will be found.
- Open a command line in the root of the repository.
pip3 install -r src/docs/requirements.txtto install dependencies.
mkdocs serveto start the site. You'll then be able to browse it under http://127.0.0.1:8000.