]> git.evergreen-ils.org Git - Evergreen.git/blob - docs/modules/shared/pages/how_to_contribute_docs.adoc
5d9071caff5448a3b22e59338a1ba004b7da61c6
[Evergreen.git] / docs / modules / shared / pages / how_to_contribute_docs.adoc
1 = How to Contribute Documentation =
2 :toc:
3
4 We want everyone to be able to contribute documentation to the Evergreen project. We've made it as easy as possible. Please follow these simple steps to get your computer ready for contributions!
5
6 == Create a GitHub account ==
7
8 NOTE: Screenshots of the Github website might be out of date. Their website might look different today.
9
10 . Open a web browser and go to: https://github.com/[https://github.com/]
11 . Create an account by clicking "Sign Up"
12 +
13 image::how_to_contribute_docs/github_signup.png[Github Signup Screenshot]
14 +
15 . Fill in your information
16 +
17 image::how_to_contribute_docs/github_create_account.png[Github Create Account Screenshot]
18
19 == Fork the Community Evergreen code repository ==
20
21 We will need to make a copy of the Evergreen documentation. This will allow you to make edits to your copy.
22
23 . Find the Evergreen repository (evergreen-library-system/Evergreen) https://github.com/evergreen-library-system/Evergreen[https://github.com/evergreen-library-system/Evergreen]
24
25 . Click on "Fork"
26 +
27 image::how_to_contribute_docs/github_click_fork.png[Github Click Fork Screenshot]
28 +
29 . This process will make a copy of the repositoy into your personal GitHub account.
30
31 == Install the GitHub Desktop Software ==
32
33 We will need to download and install the GitHub Desktop software onto your computer. This software will act as liaison between your computer and GitHub.
34
35 . Open the web page where you can download the free installer https://desktop.github.com/[https://desktop.github.com/]
36 +
37 image::how_to_contribute_docs/github_desktop_download_site.png[Github Destop Download Screenshot]
38 +
39 . Save the file to your computer.
40 . Execute the installer file.
41
42 == Clone your Evergreen repository ==
43
44 Once the Github Desktop software is installed, it should automatically launch itself. If not, you will find the software on your desktop or Start Menu.
45
46 . Sign the Github Desktop software into your GitHub Account
47 .. Click "File" -> "Options"
48 +
49 image::how_to_contribute_docs/github_desktop_click_option.png[Github Destop Click Options Screenshot]
50 +
51 .. Click on "Accounts" -> "Sign In"
52 +
53 image::how_to_contribute_docs/github_desktop_click_signin.png[Github Destop Click Sign in Screenshot]
54 +
55 .. Click on "Continue in Browser"
56 +
57 image::how_to_contribute_docs/github_desktop_singin_with_browser.png[Github Destop Sign in with Browser Screenshot]
58 +
59 .. Sign into your account (if you were already signed in, then you can ignore this instruction)
60 .. Once signed in, you will be prompted by your browser to launch the GitHub Desktop Application again
61 +
62 image::how_to_contribute_docs/github_desktop_singin_with_browser_launch_app.png[Github Destop Browser launch App Screenshot]
63 +
64 . Now that the GitHub Desktop software has been authenticated with your account, you should notice that you have your Forked Evergreen repository listed as an option. 
65 +
66 image::how_to_contribute_docs/github_desktop_clone_from_internet.png[Github Destop Clone Evergreen Screenshot]
67 +
68 . Click on the Evergreen repository and then click the button at the bottom "Clone XXXX/Evergreen"
69 +
70 image::how_to_contribute_docs/github_desktop_clone_evergreen.png[Github Destop Clone Evergreen Screenshot]
71 +
72 . Once Cloned, you will be asked this question (pictured below). Choose "To contribute to the parent project" and click "Continue"
73 +
74 image::how_to_contribute_docs/github_desktop_planning_on_fork.png[Github Destop Planning Fork Screenshot]
75
76 NOTE: From now on, you won't need to perform the previous steps. You can skip to "Make a Branch" to make new changes in the future.
77
78 == Make a Branch ==
79
80 A Git repository has a concept of a "branch". Which means you are making changes that do not affect the rest of the community. You are making changes to the documentation in your own private branch. You can invite others to work on your branch as well.
81
82 . From the GitHub Desktop Software, click on "Branch" -> "New branch"
83 +
84 image::how_to_contribute_docs/github_desktop_click_new_branch.png[Github Destop Click New Branch Screenshot]
85 +
86 . Supply a name for your branch. It's a good idea to name it with a good summary of what your changes will contain.
87 +
88 image::how_to_contribute_docs/github_desktop_make_branch.png[Github Destop Make Branch Dialog Screenshot]
89 +
90 . Confirm that you are working in your branch
91 +
92 image::how_to_contribute_docs/github_desktop_quick_tour.png[Github Destop Quick Tour Screenshot]
93
94 == Make your edits ==
95
96 The Evergreen documentation is written in AsciiDoc. AsciiDoc is plain old text with some basic formatting stuff around it. AsciiDoc is great because it takes away so much of the pain of formatting the words and allows you to focus more on the content rather than the formatting. Looking at AsciiDoc text can be a bit confusing at first but please stick with it. It will make more sense in no time!
97
98 There are many tools that help you edit/write AsciiDoc. Here are a few:
99
100 [cols="4"]
101 |===
102 |*Name*
103 |*Link*
104 |*Supports live preview*
105 |*Supports live preview with Evergreen images*
106
107 |AsciiDocFX
108 |https://asciidocfx.com/[https://asciidocfx.com/]
109 |Yes
110 |Yes
111
112 |VSCode
113 |https://code.visualstudio.com/download[https://code.visualstudio.com/download]
114 |Yes - Needs fiddling to get it to work
115 |No
116
117 |AsciiDoctor Chrome Plugin
118 |https://chrome.google.com/webstore/detail/asciidoctorjs-live-previe/iaalpfgpbocpdfblpnhhgllgbdbchmia?hl=en[https://chrome.google.com/webstore/detail/asciidoctorjs-live-previe/iaalpfgpbocpdfblpnhhgllgbdbchmia?hl=en]
119 |No
120 |No
121
122 |===
123
124 I'm using AsciiDocFX to edit this document!
125
126 image::how_to_contribute_docs/asciidocfx_sample.png[Using AsciiDoc for this document Screenshot]
127
128 The document test is on the left and the instant preview of the rendered version of our document is displayed on the right.
129
130 NOTE: The https://docs.evergreen-ils.org/eg/docs/latest/shared/about_this_documentation.html[Evergreen documentation website] renders the pages with our own Evergreen style and flair. These other tools will give you a basic idea of what your document will look like but it will never be exactly like the end-result on the final Evergreen Documentation website.
131
132 === A quick word on images ===
133
134 Each section of the Evergreen documentation is divided into "modules". Each module has a special place where we save our image files. Images are then referred to in the documentation.
135
136 For example:
137
138 This document is here:
139
140 [source,bash]
141 ----
142 Evergreen/docs/modules/shared/pages/how_to_contribute_docs.adoc
143 ----
144
145 And the images are here:
146
147 [source,bash]
148 ----
149 Evergreen/docs/modules/shared/assets/images/how_to_contribute_docs/
150 ----
151
152 When you are editing your document, you will refer to your image like this:
153
154 [source]
155 ----
156 image::how_to_contribute_docs/filename.png
157 ----
158
159 == Commit your changes ==
160
161 Now that you've completed your changes on your computer, you need to commit them to the repository and push those changes to the cloud. This is done using the GitHub Desktop software.
162
163 . Open the GitHub Desktop Software
164 +
165 image::how_to_contribute_docs/github_desktop_commit_changes.png[Github Destop Commit Changes Screenshot]
166 +
167 .. Be sure and double check that you are on your branch
168 .. GitHub Desktop will display a summary of your changes on the left pane
169 .. If you click on one of the files that you've edited, GitHub Desktop will display the specific changes to that file in the right pane
170
171 === Supply a commit message ===
172
173 Your commit message needs to be supplied in the highlighted box (bottom left)
174
175 When you are satisfied with your commit message (and description), click on "Commit to <branch name>"
176
177 === Commit to the GitHub Cloud ===
178
179 Now that you have committed a change to your copy of the repository, you will no longer see any changes in the "Changes" section. You can see your commit in the "History" tab. In order for everyone in the Evergreen community to see your changes, will need to publish it to  the internet.
180
181 Click on "Publish branch"
182
183 image::how_to_contribute_docs/github_desktop_publish.png[Github Destop Publish Branch Screenshot]
184
185 === Make a "Pull Request" ===
186
187 This is a way to flag down the Evergreen community core committers and let them know that this change is pending approval.
188
189 . From the GitHub Desktop software, you should be prompted to "Create a Pull Request"
190 +
191 image::how_to_contribute_docs/github_desktop_create_pull_request.png[Github Destop Create a Pull Request Screenshot]
192 +
193 . This will open your default web browser and prompt you to confirm some of the details
194 +
195 image::how_to_contribute_docs/github_web_create_pull_request.png[Github Web Create a Pull Request Screenshot]
196 +
197 . It's nice to see "Able to merge"
198 . Confirm that this pull request is compared with *master* on the left and with *your branch* on the right
199 . Click on "Create pull request"
200
201 == Follow up on Launchpad ==
202
203 The Evergreen Community bug tracking platform is called Launchpad. You can see the main page here: https://launchpad.net/evergreen[https://launchpad.net/evergreen]. It's common Evergreen workflow to track and discuss any needed Evergreen changes on Launchpad. If your documentation change has an associated Launchpad bug, be sure and update the bug with details about your contribution on GitHub! This gives more ways for the community to find your contribution.
204
205 == Helpful links ==
206
207 There are many places to find helpful tips on Evergreen documentation and AsciiDoc in general.
208
209 === Evergreen documentation ===
210
211 . https://wiki.evergreen-ils.org/doku.php?id=evergreen-docs:dig[Documentation Interest Group main page]
212 . https://wiki.evergreen-ils.org/doku.php?id=evergreen-docs:documentation_needs[Documentation Needs]
213
214 === AsciiDoc Resources ===
215
216 . https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/[Quick Syntax Reference]
217 . https://wiki.evergreen-ils.org/doku.php?id=evergreen-docs:dig_style_guide[DIG Style Guide]