Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CONTRIBUTING.md - github.com/chipzoller/hugo-clarity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: df5e9d59a973a2fe53de9531cdb6bfe3ca56486d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Contributing to Hugo Clarity

Thank you for taking the time to contribute!

Hugo Clarity is open-source, and contributions are what make the open-source
community such an amazing place to learn, inspire, and create. Any contributions
you make will benefit everybody else and are **greatly appreciated**!

When contributing, especially for the first time, consider starting by
[creating an issue](https://github.com/chipzoller/hugo-clarity/issues/new) so
you can get feedback from the maintainers and avoid unncessary work.

**Note:** Hugo Clarity has a [code of conduct](CODE_OF_CONDUCT.md).
Please follow it in all your interactions with the project.

## Getting support and asking questions

If you have questions about the project, are encountering something and aren't
sure if it's a bug, or if you'd like to discuss an idea before filing a feature
request, please use 
[GitHub Discussions](https://github.com/chipzoller/hugo-clarity/discussions)
rather than posting an issue.

## Filing issues and requesting features

You've found a bug in the source code, a mistake in the documentation or maybe
you'd like a new feature? You can help us by
[submitting an issue](https://github.com/chipzoller/hugo-clarity/issues).
Before you create an issue, make sure to search the issue archive -- your issue
may have already been addressed!

Once a bug has been confirmed or a feature has been approved, you are welcome
to [submit a Pull Request](#submit-a-pull-request) -- if you have the solution,
please do tell us about it!

### Helping us fix bugs

We want to help you solve any problems you might be facing with the theme! In
order to help us help you, create bug reports that are:

- _Reproducible._ Include steps to reproduce the problem.
- _Specific._ Include as much detail as possible: which version, what
  environment, etc.
- _Unique._ If other bug reports already exist about the same issue, add to
  them rather than creating a new one.
- _Scoped to a single bug._ One bug per report. We know this might be a little
  tedious, but it makes it *much* easier to keep track of which bugs are fixed
  and which still need work to be done.

## How to submit a Pull Request

1. Search our repository for open or closed
   [Pull Requests](https://github.com/chipzoller/hugo-clarity/pulls) that
   relate to your issue. You don't want to duplicate effort, and if one already
   exists you can collaborate on that.

2. Ensure that you plan to work consistent with the
   [Developer Certificate of Origin](https://developercertificate.org/). This
   confirms to us that you have the right to submit your contribution to an
   open-source project (i.e. it is not proprietary or trade-secret code) and
   that the record of your contribution will be recorded. **This is required
   in order to contribute to Hugo Clarity**, and you'll need to confirm your
   consent in the final steps below.

3. Clone the project using [Gitpod](https://github.com/chipzoller/hugo-clarity#option-1a-development-in-the-browser)
   or [locally on your machine](https://github.com/chipzoller/hugo-clarity#option-1b-development-on-your-machine)

4. Create a new branch:

   ```sh
   git checkout -b amazing_feature
   ```

5. Do your work.

6. Commit your changes:

   ```sh
   git commit -s -m 'Adding an amazing new feature'
   ```

  The `-s` flag is the short form of `--signoff` and signals to us that you are
  abiding by the Developer Certificate of Origin (see step 2, above).

  If you are in an environment in which you cannot provide this cryptographic
  signoff (for instance, Gitpod) you will need to leave a comment on the PR you
  submit confirming that you certify compliance with the DCO.

6. Repeat steps 5-6 as necessary.

7. Unless your PR is documentation-only, **test your work 
   [using Hugo extended](https://github.com/chipzoller/hugo-clarity#prerequisites)
   to build a site.** When you submit your PR we'll run test-builds of a Hugo
   site with your PR applied, so you'll save time if you fix any build issues
   before submitting.

8. Push the branch:

   ```sh
   git push origin amazing_feature
   ```

9. [Open a Pull Request](https://github.com/chipzoller/hugo-clarity/compare?expand=1)
   and wait for feedback. Filling out the PR as requested will ensure your work
   gets reviewed by maintainers promptly.

## 🎉 **Thank you for your contribution!**