Skip to content

Commit

Permalink
updated contributing pages
Browse files Browse the repository at this point in the history
  • Loading branch information
AesaraB committed Mar 12, 2024
1 parent a190f54 commit b0788cf
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 54 deletions.
32 changes: 4 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,23 @@
# MyPaint Website
This repository holds the page data for [MyPaint.org][mypaint]. It uses the [Hugo][hugo]
This repository holds the page data for [mypaint.org][mypaint]. It uses the [Hugo][hugo]
static site generator and [Dart Sass][sass].

The official MyPaint website repository is hosted on [GitHub][website]. The theme
is hosted [here][website-theme].

Get started with making changes to the website with [this guide][website-docs].

[mypaint]: https://mypaint.org
[hugo]: https://gohugo.io
[sass]: https://sass-lang.com/dart-sass
[website]: https://github.com/mypaint/website
[website-theme]: https://github.com/mypaint/website-theme
[website-docs]: https://horizon.mypaint.app/en/docs/contributing/documentation/#hugo

# Contributing
To build this repository:
1. Install [hugo-extended][hugo-release], [dart sass][sass-release], and [git-lfs](https://git-lfs.com/)
2. Clone this repo
3. Run ``git submodule update --init``
4. Run ``hugo`` or ``hugo server``

[hugo-release]: https://github.com/gohugoio/hugo/releases
[sass-release]: https://github.com/sass/dart-sass/releases

## Update submodules
When the [website-theme][website-theme] or other submodules are updated, use
``git submodule update --recursive --remote`` to reflect the changes in
your development environment.

## Adding content
Page content is stored in the [pages](/pages/) directory. Pages are written in
[markdown][hugo-learn-md] and [extended][hugo-content] by Hugo.

To add a new page to the website, type ``hugo new content pages/path/to/filename.md``.

[hugo-learn-md]: https://gohugo.io/content-management/formats/#learn-markdown
[hugo-content]: https://gohugo.io/content-management/

### Writing developer documentation
Making changes to MyPaint? Follow [this guide][developer-docs] to get started
writing documentation.

# License
All text in the website is licensed under [CC-BY-SA 4.0][cc-by-sa].
Additional terms may apply.

[developer-docs]: https://horizon.mypaint.app/en/docs/contributing/documentation/#hugo
[cc-by-sa]: https://creativecommons.org/licenses/by-sa/4.0/
50 changes: 29 additions & 21 deletions pages/docs/contributing/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,22 @@ it. Good documentation is vital for everyone. Any sort of improvement, including
fixing typos and improving readability, is greatly appreciated.<!--more-->

Want to help improve our documentation but don't know where to start? Our issue
tracker contains issues with the documentation.
tracker contains problems with the website and documentation. Use our [git workflow]({{< relref "/docs/contributing/git" >}})
when contributing improvements/fixes.
{{< flex >}}
{{< button content="Report an Issue"
href="https://github.com/mypaint/website/issues/new/choose" >}}
{{< button content="User Documentation Issues"
href="https://github.com/mypaint/mypaint/issues?q=is%3Aopen+is%3Aissue+label%3Acat.docs.user" >}}
{{< button content="Developer Documentation Issues"
href="https://github.com/mypaint/mypaint/issues?q=is%3Aopen+is%3Aissue+label%3Acat.docs.dev" >}}
{{< /flex >}}


# Blogs & User Guides
This is the meat and bones of the project's documentation efforts. Ensuring users
have a solid understanding of the MyPaint application's functionality through user
guides, and new versions through release notes is vital to a healthy version lifecycle.
Ensuring users have a solid understanding of the MyPaint application's functionality
through user guides, and new versions through release notes is vital to a healthy
version lifecycle.

## Tone and Writing Style
- Page titles and headings should be in title case.
Expand All @@ -31,18 +35,22 @@ your preferred dialect of English is okay to use.

## Translation
If a page is complete, please consider translating it into other languages. MyPaint's
design documentation aims to be a single source of truth, so decidedlly *not* translating
it reduces overhead.
contributor documentation aims to be a single source of truth, so decidedlly *not*
translating it reduces overhead.

Translate a page by prepending the ``.md`` exntension with a [language code][website-languages].
e.g. to localise this page to Japanese, [create a page]({{< relref "#adding-content" >}})
named ``documentation.ja.md``.

[Hugo's page on multilingual content](https://gohugo.io/content-management/multilingual/)
[website-languages]: https://github.com/mypaint/website/blob/main/config/_default/languages.toml

Please also consider [translating MyPaint (the program)]({{<relref "translating/adding-translations" >}}).

# Developer Documentation
As a MyPaint developer, you are entrusted to keep the project's developer documentation
up-to-date. Poor or missing documentation is an obstacle to new contributors, and
you can help combat this by writing documentation. If you are new to technical writing,
here are some resources to get you started:
Poor or missing documentation is an obstacle to new contributors, you can help prevent
this by writing documentation.

If you are new to technical writing, here are some resources to get you started:
- [MDN Web Docs' blog post][mdn-tech-writing]
- [Google's courses][google-tech-writing]
- [FreeCodeCamp's articles][fcc-tech-writing]
Expand All @@ -52,14 +60,14 @@ here are some resources to get you started:
[fcc-tech-writing]: https://www.freecodecamp.org/news/tag/technical-writing/

## Backend
Backend docs exist for two reasons:
Backend docs exist for two reasons, to:
1. Help *new* developers understand MyPaint's general design as quickly as possible.
2. Scope files/directories by describing them.

1. To act as a primer given to *new* developers so that they can get started as
quickly as possible. They're presented to the reader as:
1. Here's a file/concept.
2. This is the gist of what you need to know.
3. You're now prepared to read through the code and understand the specifics.
2. To help scope files/directories by describing them.
They are presented to the reader as:
1. Here's a file/concept.
2. This is the gist of what you need to know.
3. You're now prepared to read through the code and understand the specifics.

The most detailed documentation for the project will *always* be contained within
source code.
Expand All @@ -86,18 +94,18 @@ file for this page. Click it.
3. Start getting your bearings by comparing what you see on the source file to what
you see on this page.

### Building The Site Locally
## Build the Site Locally
1. Install [hugo-extended][hugo-release], [dart sass][sass-release], and [git-lfs][git-lfs]
2. Clone the website [repository][website]
3. Run ``git submodule update --init``
4. Run ``hugo`` or ``hugo server``

#### Update submodules
### Update Submodules
When the [website-theme][website-theme] or other submodules are updated, use
``git submodule update --recursive --remote`` to reflect the changes in
your development environment.

#### Adding content
### Adding Content
Page content is stored in the pages directory. To add a new page to the website,
type ``hugo new content pages/path/to/filename.md``.

Expand Down
7 changes: 3 additions & 4 deletions pages/docs/contributing/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ to changes in the code.
- Split commits logically, either by being selective with files, or [staging interactively][git-interactive-staging].

## Dead Code
Dead code, also known as commented-out code, has the potential to cause a lot of
harm as commented-out code quickly becomes out of date and misleading. We have version
control anyway, so people can just look at the commit log.
Dead code, also known as commented-out code quickly becomes out of date and misleading.
Do not include any in your pull request.

## Writing Commit Messages
Each commit you contribute should have a good commit message. Here's an example
Expand Down Expand Up @@ -56,7 +55,7 @@ from your forked repository.
- If a commit fixes an issue, write a message that [automatically closes the
issue][github-close-issue] when merged.

# Workflow for Maintainers
# Maintainers
## Git Branches
```mermaid
---
Expand Down

0 comments on commit b0788cf

Please sign in to comment.