Skip to content

Commit 30af0cb

Browse files
authored
Merge pull request #895 from timhunt/docs-intro
What I needed to know to start editing
2 parents fcda622 + 584bcbb commit 30af0cb

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

general/documentation/contributing.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ sidebar_position: 3
1010

1111
The [Moodle](https://moodle.org) Developer Resources is the official source for all Moodle documentation. It's here to make your life as a Moodle Developer easier. To serve that purpose it has to be up-to-date, and as accurate and complete as possible. Every contribution is important in achieving that goal and we hope that you are able to be a part of that mission.
1212

13+
The documentation is written in Markdown (specifically [commonmark (docs link)](https://commonmark.org/help/) which is built into the website using a tool called [Docusaurus](https://docusaurus.io/docs/next/markdown-features). You don't need to understand all the details of that to make simple contributions.
14+
1315
If you are new to Open Source contributions, or you are interested in learning how to run or contribute to an open source project, then these resources from the [Open Source Guides](https://opensource.guide/) website may give you some help and insight into common practices. It has a collection of resources for individuals, communities, and companies who are interested in open source contributions. The following guides may be especially useful to you:
1416

1517
- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
@@ -52,7 +54,7 @@ Our documentation is built using [Docusaurus](https://docusaurus.io), a powerful
5254

5355
:::tip
5456

55-
If you're eager to jump in, then the fastest way to set up your development environment is to have [NVM](https://github.com/nvm-sh/nvm) installed and then run:
57+
If you're eager to jump in the fastest way to set up your development environment is to, after cloning this repository onto your computer, have [NVM](https://github.com/nvm-sh/nvm) installed and then run:
5658

5759
```console
5860
nvm install
@@ -61,6 +63,10 @@ yarn
6163
yarn start
6264
```
6365

66+
Once this completes, the docs will open in your browser. You can just edit the .md source files in your editor and reload the pages to see the effect of your changes.
67+
68+
Once you have made changes in your local checkout, you can commit them, and submit a pull request through github as usual.
69+
6470
:::
6571

6672
### Migrating legacy docs

general/documentation/installation.md

+4
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,16 @@ Gitpod is an alternative to local development and completely optional. We recomm
6060

6161
### Starting the development server
6262

63+
The development server is the best way to edit docs locally. Once the development server has started, the docs will open in your browser. You can then make changes to the source markdown files (`*.md` and `*.mdx`), which should be automatically live reloaded in your browser.
64+
6365
```console
6466
yarn start
6567
```
6668

6769
### Building the docs and serving them locally
6870

71+
This is probably only something you would do if you were developing or testing the build process.
72+
6973
```console
7074
yarn build
7175
yarn serve

0 commit comments

Comments
 (0)