Skip to content

Commit

Permalink
Merge pull request #895 from timhunt/docs-intro
Browse files Browse the repository at this point in the history
What I needed to know to start editing
  • Loading branch information
andrewnicols authored Feb 27, 2024
2 parents fcda622 + 584bcbb commit 30af0cb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion general/documentation/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ sidebar_position: 3

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.

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.

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:

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

:::tip

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:
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:

```console
nvm install
Expand All @@ -61,6 +63,10 @@ yarn
yarn start
```

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.

Once you have made changes in your local checkout, you can commit them, and submit a pull request through github as usual.

:::

### Migrating legacy docs
Expand Down
4 changes: 4 additions & 0 deletions general/documentation/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,16 @@ Gitpod is an alternative to local development and completely optional. We recomm

### Starting the development server

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.

```console
yarn start
```

### Building the docs and serving them locally

This is probably only something you would do if you were developing or testing the build process.

```console
yarn build
yarn serve
Expand Down

0 comments on commit 30af0cb

Please sign in to comment.