Skip to content

Commit f5b3c95

Browse files
committed
add how to contribute to the docs
1 parent e5fa629 commit f5b3c95

5 files changed

Lines changed: 138 additions & 60 deletions

File tree

docs/_settings/content/contributing/index.md

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,43 @@ weight: 6
55
---
66

77

8-
## Guidelines
9-
108
Your contribution is more than welcome.
119

12-
### Got a Question or Problem?
10+
## Got a Question or Problem?
1311

1412
If you have questions about how to use LaraDock, please direct your questions to the discussion on [Gitter](https://gitter.im/LaraDock/laradock). If you believe your question could help others, then consider opening an [Issue](https://github.com/laradock/laradock/issues) (it will be labeled as Question).
1513

16-
### Found an Issue?
14+
## Found an Issue?
1715
If you find a bug in the source code or a mistake in the documentation, you can help us by
1816
submitting an [Issue](https://github.com/laradock/laradock/issues). Even better you can submit a Pull Request with a fix.
1917

20-
### Want a Feature?
18+
## Want a Feature?
2119
You can request a new feature by submitting an [Issue](https://github.com/laradock/laradock/issues) (it will be labeled as Feature Suggestion). If you would like to implement a new feature then consider submitting a Pull Request.
2220

2321

22+
## Edit the documentation
23+
24+
Laradock uses [Hugo](https://gohugo.io/) as website generator tool, with the [Material Docs theme](http://themes.gohugo.io/theme/material-docs/). You might need to check their docs quickly.
25+
26+
27+
1. Install [Hugo](https://gohugo.io/) on your machine.
28+
2. Clone laradock.
29+
3. Go to `/docs`.
30+
4. Delete everything except the `_settings` folder & the `CNAME` file.
31+
5. Open `docs/_settings` from your terminal and run `hugo serve` to host the website locally.
32+
6. Open the `docs/_settings/content` and search for the folder of the section you want to edit.
33+
7. In each secion there's an `index.md` file, that's the file you need to edit.
34+
8. To edit the sidebar (in case you are adding new section) go to `docs/_settings/config.toml` and add the section there.
35+
9. After done editing, run the this command `hugo` to generate the updated site inside the `docs` folder.
36+
10. Go back to the project root directory, commit and push..
37+
38+
39+
40+
41+
2442
## Coding Guidelines
2543

26-
### Support new Software
44+
## Support new Software
2745

2846
* Create folder with the software name.
2947

@@ -37,7 +55,7 @@ You can request a new feature by submitting an [Issue](https://github.com/larado
3755

3856
* Add the software in the `Readme`.
3957

40-
### Edit existing Software
58+
## Edit existing Software
4159

4260
* Open the software (container) folder.
4361

@@ -50,15 +68,15 @@ you need to edit their Dockerfiles from their GitHub repositories. For more info
5068

5169
## Issue/PR Submission Guidelines
5270

53-
### Submitting an Issue
71+
## Submitting an Issue
5472
Before you submit your issue search the archive, maybe your question was already answered.
5573

5674
If your issue appears to be a bug, and hasn't been reported, open a new issue.
5775
Help us to maximize the effort we can spend fixing issues and adding new
5876
features, by not reporting duplicate issues.
5977

6078

61-
### Before Submitting a Pull Request (PR)
79+
## Before Submitting a Pull Request (PR)
6280

6381
Always Test everything and make sure its working:
6482

@@ -71,7 +89,7 @@ Always Test everything and make sure its working:
7189
- Test it in real App.
7290

7391

74-
### Submitting a PR
92+
## Submitting a PR
7593
Consider the following guidelines:
7694

7795
* Search [GitHub](https://github.com/laradock/laradock/pulls) for an open or closed Pull Request that relates to your submission. You don't want to duplicate effort.
@@ -109,7 +127,7 @@ git push origin my-fix-branch -f
109127

110128

111129

112-
### After your PR is merged
130+
## After your PR is merged
113131

114132
After your pull request is merged, you can safely delete your branch and pull the changes
115133
from the main (upstream) repository:
@@ -143,4 +161,4 @@ from the main (upstream) repository:
143161

144162

145163
<br>
146-
### Happy Coding :)
164+
## Happy Coding :)

docs/contributing/index.html

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -336,26 +336,41 @@ <h1>Contributing </h1>
336336

337337

338338

339-
<h2 id="guidelines">Guidelines</h2>
340-
341339
<p>Your contribution is more than welcome.</p>
342340

343-
<h3 id="got-a-question-or-problem">Got a Question or Problem?</h3>
341+
<h2 id="got-a-question-or-problem">Got a Question or Problem?</h2>
344342

345343
<p>If you have questions about how to use LaraDock, please direct your questions to the discussion on <a href="https://gitter.im/LaraDock/laradock">Gitter</a>. If you believe your question could help others, then consider opening an <a href="https://github.com/laradock/laradock/issues">Issue</a> (it will be labeled as Question).</p>
346344

347-
<h3 id="found-an-issue">Found an Issue?</h3>
345+
<h2 id="found-an-issue">Found an Issue?</h2>
348346

349347
<p>If you find a bug in the source code or a mistake in the documentation, you can help us by
350348
submitting an <a href="https://github.com/laradock/laradock/issues">Issue</a>. Even better you can submit a Pull Request with a fix.</p>
351349

352-
<h3 id="want-a-feature">Want a Feature?</h3>
350+
<h2 id="want-a-feature">Want a Feature?</h2>
353351

354352
<p>You can request a new feature by submitting an <a href="https://github.com/laradock/laradock/issues">Issue</a> (it will be labeled as Feature Suggestion). If you would like to implement a new feature then consider submitting a Pull Request.</p>
355353

354+
<h2 id="edit-the-documentation">Edit the documentation</h2>
355+
356+
<p>Laradock uses <a href="https://gohugo.io/">Hugo</a> as website generator tool, with the <a href="http://themes.gohugo.io/theme/material-docs/">Material Docs theme</a>. You might need to check their docs quickly.</p>
357+
358+
<ol>
359+
<li>Install <a href="https://gohugo.io/">Hugo</a> on your machine.</li>
360+
<li>Clone laradock.</li>
361+
<li>Go to <code>/docs</code>.</li>
362+
<li>Delete everything except the <code>_settings</code> folder &amp; the <code>CNAME</code> file.</li>
363+
<li>Open <code>docs/_settings</code> from your terminal and run <code>hugo serve</code> to host the website locally.</li>
364+
<li>Open the <code>docs/_settings/content</code> and search for the folder of the section you want to edit.</li>
365+
<li>In each secion there&rsquo;s an <code>index.md</code> file, that&rsquo;s the file you need to edit.</li>
366+
<li>To edit the sidebar (in case you are adding new section) go to <code>docs/_settings/config.toml</code> and add the section there.</li>
367+
<li>After done editing, run the this command <code>hugo</code> to generate the updated site inside the <code>docs</code> folder.</li>
368+
<li>Go back to the project root directory, commit and push..</li>
369+
</ol>
370+
356371
<h2 id="coding-guidelines">Coding Guidelines</h2>
357372

358-
<h3 id="support-new-software">Support new Software</h3>
373+
<h2 id="support-new-software">Support new Software</h2>
359374

360375
<ul>
361376
<li><p>Create folder with the software name.</p></li>
@@ -371,7 +386,7 @@ <h3 id="support-new-software">Support new Software</h3>
371386
<li><p>Add the software in the <code>Readme</code>.</p></li>
372387
</ul>
373388

374-
<h3 id="edit-existing-software">Edit existing Software</h3>
389+
<h2 id="edit-existing-software">Edit existing Software</h2>
375390

376391
<ul>
377392
<li><p>Open the software (container) folder.</p></li>
@@ -386,15 +401,15 @@ <h3 id="edit-existing-software">Edit existing Software</h3>
386401

387402
<h2 id="issue-pr-submission-guidelines">Issue/PR Submission Guidelines</h2>
388403

389-
<h3 id="submitting-an-issue">Submitting an Issue</h3>
404+
<h2 id="submitting-an-issue">Submitting an Issue</h2>
390405

391406
<p>Before you submit your issue search the archive, maybe your question was already answered.</p>
392407

393408
<p>If your issue appears to be a bug, and hasn&rsquo;t been reported, open a new issue.
394409
Help us to maximize the effort we can spend fixing issues and adding new
395410
features, by not reporting duplicate issues.</p>
396411

397-
<h3 id="before-submitting-a-pull-request-pr">Before Submitting a Pull Request (PR)</h3>
412+
<h2 id="before-submitting-a-pull-request-pr">Before Submitting a Pull Request (PR)</h2>
398413

399414
<p>Always Test everything and make sure its working:</p>
400415

@@ -414,7 +429,7 @@ <h3 id="before-submitting-a-pull-request-pr">Before Submitting a Pull Request (P
414429
</ul></li>
415430
</ul>
416431

417-
<h3 id="submitting-a-pr">Submitting a PR</h3>
432+
<h2 id="submitting-a-pr">Submitting a PR</h2>
418433

419434
<p>Consider the following guidelines:</p>
420435

@@ -454,7 +469,7 @@ <h3 id="submitting-a-pr">Submitting a PR</h3>
454469

455470
<p><em>WARNING. Squashing or reverting commits and forced push thereafter may remove GitHub comments on code that were previously made by you and others in your commits.</em></p>
456471

457-
<h3 id="after-your-pr-is-merged">After your PR is merged</h3>
472+
<h2 id="after-your-pr-is-merged">After your PR is merged</h2>
458473

459474
<p>After your pull request is merged, you can safely delete your branch and pull the changes
460475
from the main (upstream) repository:</p>
@@ -483,7 +498,7 @@ <h3 id="after-your-pr-is-merged">After your PR is merged</h3>
483498

484499
<p><br></p>
485500

486-
<h3 id="happy-coding">Happy Coding :)</h3>
501+
<h2 id="happy-coding">Happy Coding :)</h2>
487502

488503

489504
<aside class="copyright" role="note">

docs/contributing/index.xml

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,41 @@
1616
<guid>http://laradock.io/contributing/</guid>
1717
<description>
1818

19-
&lt;h2 id=&#34;guidelines&#34;&gt;Guidelines&lt;/h2&gt;
20-
2119
&lt;p&gt;Your contribution is more than welcome.&lt;/p&gt;
2220

23-
&lt;h3 id=&#34;got-a-question-or-problem&#34;&gt;Got a Question or Problem?&lt;/h3&gt;
21+
&lt;h2 id=&#34;got-a-question-or-problem&#34;&gt;Got a Question or Problem?&lt;/h2&gt;
2422

2523
&lt;p&gt;If you have questions about how to use LaraDock, please direct your questions to the discussion on &lt;a href=&#34;https://gitter.im/LaraDock/laradock&#34;&gt;Gitter&lt;/a&gt;. If you believe your question could help others, then consider opening an &lt;a href=&#34;https://github.com/laradock/laradock/issues&#34;&gt;Issue&lt;/a&gt; (it will be labeled as Question).&lt;/p&gt;
2624

27-
&lt;h3 id=&#34;found-an-issue&#34;&gt;Found an Issue?&lt;/h3&gt;
25+
&lt;h2 id=&#34;found-an-issue&#34;&gt;Found an Issue?&lt;/h2&gt;
2826

2927
&lt;p&gt;If you find a bug in the source code or a mistake in the documentation, you can help us by
3028
submitting an &lt;a href=&#34;https://github.com/laradock/laradock/issues&#34;&gt;Issue&lt;/a&gt;. Even better you can submit a Pull Request with a fix.&lt;/p&gt;
3129

32-
&lt;h3 id=&#34;want-a-feature&#34;&gt;Want a Feature?&lt;/h3&gt;
30+
&lt;h2 id=&#34;want-a-feature&#34;&gt;Want a Feature?&lt;/h2&gt;
3331

3432
&lt;p&gt;You can request a new feature by submitting an &lt;a href=&#34;https://github.com/laradock/laradock/issues&#34;&gt;Issue&lt;/a&gt; (it will be labeled as Feature Suggestion). If you would like to implement a new feature then consider submitting a Pull Request.&lt;/p&gt;
3533

34+
&lt;h2 id=&#34;edit-the-documentation&#34;&gt;Edit the documentation&lt;/h2&gt;
35+
36+
&lt;p&gt;Laradock uses &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt; as website generator tool, with the &lt;a href=&#34;http://themes.gohugo.io/theme/material-docs/&#34;&gt;Material Docs theme&lt;/a&gt;. You might need to check their docs quickly.&lt;/p&gt;
37+
38+
&lt;ol&gt;
39+
&lt;li&gt;Install &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt; on your machine.&lt;/li&gt;
40+
&lt;li&gt;Clone laradock.&lt;/li&gt;
41+
&lt;li&gt;Go to &lt;code&gt;/docs&lt;/code&gt;.&lt;/li&gt;
42+
&lt;li&gt;Delete everything except the &lt;code&gt;_settings&lt;/code&gt; folder &amp;amp; the &lt;code&gt;CNAME&lt;/code&gt; file.&lt;/li&gt;
43+
&lt;li&gt;Open &lt;code&gt;docs/_settings&lt;/code&gt; from your terminal and run &lt;code&gt;hugo serve&lt;/code&gt; to host the website locally.&lt;/li&gt;
44+
&lt;li&gt;Open the &lt;code&gt;docs/_settings/content&lt;/code&gt; and search for the folder of the section you want to edit.&lt;/li&gt;
45+
&lt;li&gt;In each secion there&amp;rsquo;s an &lt;code&gt;index.md&lt;/code&gt; file, that&amp;rsquo;s the file you need to edit.&lt;/li&gt;
46+
&lt;li&gt;To edit the sidebar (in case you are adding new section) go to &lt;code&gt;docs/_settings/config.toml&lt;/code&gt; and add the section there.&lt;/li&gt;
47+
&lt;li&gt;After done editing, run the this command &lt;code&gt;hugo&lt;/code&gt; to generate the updated site inside the &lt;code&gt;docs&lt;/code&gt; folder.&lt;/li&gt;
48+
&lt;li&gt;Go back to the project root directory, commit and push..&lt;/li&gt;
49+
&lt;/ol&gt;
50+
3651
&lt;h2 id=&#34;coding-guidelines&#34;&gt;Coding Guidelines&lt;/h2&gt;
3752

38-
&lt;h3 id=&#34;support-new-software&#34;&gt;Support new Software&lt;/h3&gt;
53+
&lt;h2 id=&#34;support-new-software&#34;&gt;Support new Software&lt;/h2&gt;
3954

4055
&lt;ul&gt;
4156
&lt;li&gt;&lt;p&gt;Create folder with the software name.&lt;/p&gt;&lt;/li&gt;
@@ -51,7 +66,7 @@ submitting an &lt;a href=&#34;https://github.com/laradock/laradock/issues&#34;&g
5166
&lt;li&gt;&lt;p&gt;Add the software in the &lt;code&gt;Readme&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
5267
&lt;/ul&gt;
5368

54-
&lt;h3 id=&#34;edit-existing-software&#34;&gt;Edit existing Software&lt;/h3&gt;
69+
&lt;h2 id=&#34;edit-existing-software&#34;&gt;Edit existing Software&lt;/h2&gt;
5570

5671
&lt;ul&gt;
5772
&lt;li&gt;&lt;p&gt;Open the software (container) folder.&lt;/p&gt;&lt;/li&gt;
@@ -66,15 +81,15 @@ you need to edit their Dockerfiles from their GitHub repositories. For more info
6681

6782
&lt;h2 id=&#34;issue-pr-submission-guidelines&#34;&gt;Issue/PR Submission Guidelines&lt;/h2&gt;
6883

69-
&lt;h3 id=&#34;submitting-an-issue&#34;&gt;Submitting an Issue&lt;/h3&gt;
84+
&lt;h2 id=&#34;submitting-an-issue&#34;&gt;Submitting an Issue&lt;/h2&gt;
7085

7186
&lt;p&gt;Before you submit your issue search the archive, maybe your question was already answered.&lt;/p&gt;
7287

7388
&lt;p&gt;If your issue appears to be a bug, and hasn&amp;rsquo;t been reported, open a new issue.
7489
Help us to maximize the effort we can spend fixing issues and adding new
7590
features, by not reporting duplicate issues.&lt;/p&gt;
7691

77-
&lt;h3 id=&#34;before-submitting-a-pull-request-pr&#34;&gt;Before Submitting a Pull Request (PR)&lt;/h3&gt;
92+
&lt;h2 id=&#34;before-submitting-a-pull-request-pr&#34;&gt;Before Submitting a Pull Request (PR)&lt;/h2&gt;
7893

7994
&lt;p&gt;Always Test everything and make sure its working:&lt;/p&gt;
8095

@@ -94,7 +109,7 @@ features, by not reporting duplicate issues.&lt;/p&gt;
94109
&lt;/ul&gt;&lt;/li&gt;
95110
&lt;/ul&gt;
96111

97-
&lt;h3 id=&#34;submitting-a-pr&#34;&gt;Submitting a PR&lt;/h3&gt;
112+
&lt;h2 id=&#34;submitting-a-pr&#34;&gt;Submitting a PR&lt;/h2&gt;
98113

99114
&lt;p&gt;Consider the following guidelines:&lt;/p&gt;
100115

@@ -134,7 +149,7 @@ git push origin my-fix-branch -f
134149

135150
&lt;p&gt;&lt;em&gt;WARNING. Squashing or reverting commits and forced push thereafter may remove GitHub comments on code that were previously made by you and others in your commits.&lt;/em&gt;&lt;/p&gt;
136151

137-
&lt;h3 id=&#34;after-your-pr-is-merged&#34;&gt;After your PR is merged&lt;/h3&gt;
152+
&lt;h2 id=&#34;after-your-pr-is-merged&#34;&gt;After your PR is merged&lt;/h2&gt;
138153

139154
&lt;p&gt;After your pull request is merged, you can safely delete your branch and pull the changes
140155
from the main (upstream) repository:&lt;/p&gt;
@@ -163,7 +178,7 @@ from the main (upstream) repository:&lt;/p&gt;
163178

164179
&lt;p&gt;&lt;br&gt;&lt;/p&gt;
165180

166-
&lt;h3 id=&#34;happy-coding&#34;&gt;Happy Coding :)&lt;/h3&gt;
181+
&lt;h2 id=&#34;happy-coding&#34;&gt;Happy Coding :)&lt;/h2&gt;
167182
</description>
168183
</item>
169184

0 commit comments

Comments
 (0)