Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
250 commits
Select commit Hold shift + click to select a range
6bc6236
Merge pull request #16 from Coral-erm/install2
scottvieira Feb 13, 2017
ecfc725
Documentation on propose new resource api
xsong9 Feb 21, 2017
91b8c2d
Move api documentation after Resources module
xsong9 Feb 21, 2017
af978ff
moved api to Appendix section
xsong9 Feb 21, 2017
676d44f
release link
Feb 22, 2017
c74ffaa
Merge pull request #17 from Coral-erm/install3
scottvieira Feb 22, 2017
aae084d
style guide update
Feb 22, 2017
0be44a7
Merge pull request #18 from Coral-erm/style1
scottvieira Feb 22, 2017
a35c84c
Noted the client form is a sample.
xsong9 Feb 22, 2017
a1e6d1d
Updated two screenshots
xsong9 Feb 23, 2017
50e9907
Merge pull request #20 from Coral-erm/apiImageUpdate
xsong9 Feb 23, 2017
b3286cd
new terms tool screenshots
Mar 1, 2017
3039bfc
made edits to terms tool documentation, included screenshots
Mar 1, 2017
a5cdb91
Merge pull request #22 from Coral-erm/louisadocumentation
Mar 1, 2017
11dd9b0
renamed terms tool image folder and images
Mar 1, 2017
02be9f1
changes to path to renamed images
Mar 1, 2017
509eb0f
edited image in mgmt folder
Mar 1, 2017
996e1ed
text updates and formatting
Mar 1, 2017
8a0d295
added links. minor changes to formatting
Mar 1, 2017
da08328
minor formatting changes and added links
Mar 1, 2017
c8d7e5d
Merge pull request #23 from Coral-erm/louisadocumentation
Mar 1, 2017
0acf9b1
software requirements
Mar 24, 2017
4d7f9c0
Merge pull request #24 from Coral-erm/install4
scottvieira Mar 24, 2017
8cffc70
update resources menu
May 22, 2017
3dabf60
Merge pull request #25 from Coral-erm/update_menu
scottvieira May 22, 2017
6548f0d
software req update
Jun 16, 2017
5270118
Merge pull request #26 from Coral-erm/supdate
scottvieira Jun 16, 2017
f737230
doc updates for install and faq
Jun 23, 2017
41ffe44
Merge pull request #27 from Coral-erm/doc1
scottvieira Jun 23, 2017
5105b3a
update governance
Dec 6, 2017
6e530d0
Merge pull request #30 from coral-erm/update
scottvieira Dec 6, 2017
c73ca3f
php extensions
Apr 19, 2018
bdfb68b
install edits v2.0.1
Apr 20, 2018
f9366d6
Merge pull request #31 from coral-erm/201ver
scottvieira Apr 20, 2018
00bb7ed
update screenshots and text for import tool and duplicate a workflow.
xsong9 May 15, 2018
a35038e
Merge pull request #35 from coral-erm/yanUpdate
xsong9 May 15, 2018
67bc131
update screenshot and text for FileImport
xsong9 May 15, 2018
614c81e
Merge pull request #36 from coral-erm/yanupdate
xsong9 May 15, 2018
a1fa699
install & kb updates
scottvieira May 16, 2018
b7d7fcd
Merge pull request #37 from coral-erm/sv_update3
scottvieira May 16, 2018
f988a49
update toc
scottvieira May 16, 2018
b0c9fc3
Merge pull request #38 from coral-erm/sv_update3
scottvieira May 16, 2018
bd795b6
integration1
scottvieira May 16, 2018
af3f75e
Merge pull request #39 from coral-erm/sv_update3
scottvieira May 16, 2018
8f69fc8
updated screenshot and texts for api form
xsong9 May 18, 2018
6cd3dcf
Merge pull request #40 from coral-erm/yanupdate
xsong9 May 18, 2018
2bf4fbc
Added 3.0 Resources home screen
caltechheather May 22, 2018
e2e9651
Update resources.md
caltechheather May 22, 2018
af3737e
Update resources.md
caltechheather May 22, 2018
f5f582d
added note about editing index.php
xsong9 May 24, 2018
260d1da
added apiClientIndexphp screenshot
xsong9 May 24, 2018
8411210
Update api.md
xsong9 May 24, 2018
6c8d10c
Update api.md
xsong9 May 24, 2018
c616256
minor change to apidotmd file
xsong9 May 24, 2018
5f63d21
Merge pull request #41 from coral-erm/yanupdate
xsong9 May 24, 2018
cbaa0a9
Add files via upload
xsong9 May 24, 2018
fd0f3c3
Update api.md
xsong9 May 24, 2018
b5b2824
Add files via upload
xsong9 May 24, 2018
44e6ac0
fixed the image showing issue.
xsong9 May 24, 2018
f868131
resource.md install.md index.rst and ebscokb update
scottvieira May 24, 2018
6394c87
Merge pull request #42 from coral-erm/sv_update4
scottvieira May 24, 2018
f68ce3f
toc revisions
scottvieira May 25, 2018
d7b6af7
Merge pull request #43 from coral-erm/sv_update6
scottvieira May 25, 2018
3558d58
overview & toc updates
scottvieira May 25, 2018
9a417d6
Merge pull request #44 from coral-erm/sv_update6
scottvieira May 25, 2018
49829a3
Added instruction on installing Composer, Flight and Unirest
xsong9 Jun 1, 2018
195fcb3
style notes
scottvieira Jun 1, 2018
50ea1c7
Merge pull request #45 from coral-erm/svupdate6
scottvieira Jun 1, 2018
a7d3846
Added Coral Koha integration
veggiematts Jun 6, 2018
17c11b8
Fix code block display
veggiematts Jun 6, 2018
d6bad0d
Add OAuth to Coral Koha integration
veggiematts Jun 6, 2018
6aa4dfa
Merge pull request #46 from coral-erm/coral_koha_integration
scottvieira Jun 6, 2018
736e49c
soft req update
scottvieira Jul 10, 2018
9ff6f8e
Merge pull request #47 from coral-erm/relnotes1
scottvieira Jul 10, 2018
e218897
soft req2 update
scottvieira Jul 10, 2018
d8f9835
Merge pull request #48 from coral-erm/relnotes2
scottvieira Jul 10, 2018
ca218ed
soft reqs rev3
scottvieira Jul 11, 2018
ff4cbc0
Merge pull request #49 from coral-erm/relnotes3
scottvieira Jul 11, 2018
bae6f17
Update sushi.md
rtatterson Aug 2, 2018
beed0a8
edit docstyleguide
scottvieira Dec 17, 2018
d0a285b
Merge pull request #52 from coral-erm/scott1
scottvieira Dec 17, 2018
1f9ef5c
ebscokb_doc_update
scottvieira Jan 3, 2019
261f80f
Merge pull request #53 from coral-erm/ebscokb_doc
scottvieira Jan 3, 2019
4b14983
Update install.md
veggiematts Jan 31, 2019
7720c6e
Update integration.md
veggiematts Jan 31, 2019
16956c2
Update integration.md
veggiematts Jan 31, 2019
78f6822
Update faq.md
rtatterson Jan 31, 2019
2aa645b
Update faq.md
rtatterson Jan 31, 2019
4a4f45c
Update faq.md
rtatterson Jan 31, 2019
1f5cc82
Update faq.md
rtatterson Feb 14, 2019
64a2658
Update faq.md
rtatterson Feb 14, 2019
1df47ce
Update faq.md
rtatterson Feb 14, 2019
a76ab01
create section for index.rst
scottvieira Mar 14, 2019
54ce8ee
Merge pull request #54 from coral-erm/scott
scottvieira Mar 14, 2019
2c1db84
server space
rtatterson Mar 15, 2019
d9b85e7
Merge pull request #55 from coral-erm/Rebecca
rtatterson Mar 15, 2019
d21f715
Update overview.md
rtatterson Feb 14, 2020
41ee26a
Update overview.md
rtatterson Feb 14, 2020
10547be
Update ebscokb.md
rtatterson Feb 17, 2020
3aae591
Update ebscokb.md
rtatterson Feb 17, 2020
9413780
Update ebscokb.md
rtatterson Feb 18, 2020
5beee05
Update ebscokb.md
rtatterson Feb 18, 2020
cdb27e2
Add files via upload
rtatterson Feb 18, 2020
c199b6a
Add files via upload
rtatterson Feb 18, 2020
db2349c
Update ebscokb.md
rtatterson Feb 18, 2020
636c268
Update ebscokb.md
rtatterson Feb 18, 2020
d528ac0
Update ebscokb.md
rtatterson Feb 18, 2020
d372024
Update ebscokb.md
rtatterson Feb 18, 2020
f31fd07
Update ebscokb.md
rtatterson Feb 18, 2020
896d587
Delete ebscokbPackageSearchCoral.PNG
rtatterson Feb 18, 2020
d406fce
Add files via upload
rtatterson Feb 18, 2020
a61f47a
Update export.md
rtatterson Feb 18, 2020
7c27c14
Update export.md
rtatterson Feb 18, 2020
be5be39
Update export.md
rtatterson Feb 18, 2020
0cbcd60
Update export.md
rtatterson Feb 18, 2020
9b45b5a
Update ebscokb.md
rtatterson Feb 19, 2020
270d32c
Merge pull request #56 from coral-erm/rtatterson-patch-1
rtatterson Feb 19, 2020
1acd61d
Update export.md
rtatterson Feb 20, 2020
929efbd
Delete ebscokbPackageSearchCoral.PNG
rtatterson Feb 20, 2020
190b019
Update ebscokb.md update
rtatterson Feb 20, 2020
cd16a82
Merge pull request #57 from coral-erm/Rebecca
rtatterson Feb 20, 2020
8041b72
Create ebscokb
rtatterson Feb 20, 2020
c7ebb76
Delete ebscokb
rtatterson Feb 20, 2020
90687b8
Update ebscokb.md update
rtatterson Feb 20, 2020
ec8aa57
Revert "Update ebscokb.md"
rtatterson Feb 21, 2020
14a8844
Merge pull request #58 from coral-erm/revert-56-rtatterson-patch-1
rtatterson Feb 21, 2020
0aacf9f
Rename ebscokb.md update to ebscokb.md
rtatterson Feb 21, 2020
12c2152
Update sushi.md
rtatterson Feb 21, 2020
d17a3c7
Update management.md
rtatterson Feb 21, 2020
b4d342b
Delete managementEditDocumentRecord.png
rtatterson Feb 21, 2020
80c534c
Update sushi.md
rtatterson Feb 24, 2020
44a229d
Delete managementHomepage.png
rtatterson Feb 24, 2020
64e8e63
Add files via upload
rtatterson Feb 24, 2020
08f3d00
Update management.md
rtatterson Feb 24, 2020
1037290
Update management.md
rtatterson Feb 24, 2020
edb26b2
Merge branch 'master' into Rebecca
rtatterson Feb 24, 2020
bdd3aa3
Merge pull request #59 from coral-erm/Rebecca
rtatterson Feb 24, 2020
7263d91
Add files via upload
rtatterson Feb 25, 2020
10926b1
Delete AddNewOrganization.png
rtatterson Feb 25, 2020
b4775ea
Add files via upload
rtatterson Feb 25, 2020
1e77bee
Merge pull request #60 from coral-erm/Rebecca
rtatterson Feb 25, 2020
c736fde
Update organizations.md
rtatterson Feb 25, 2020
9a6223f
Update organizations.md
rtatterson Feb 25, 2020
c2fb24b
Merge pull request #61 from coral-erm/Rebecca
rtatterson Feb 25, 2020
dd23a7c
Update organizations.md
rtatterson Feb 25, 2020
12db82d
Update resources.md
rtatterson Feb 25, 2020
4628a9f
Merge pull request #62 from coral-erm/Rebecca
rtatterson Feb 25, 2020
98c0053
Update resources.md
rtatterson Feb 25, 2020
9f3a293
Merge pull request #63 from coral-erm/Rebecca
rtatterson Feb 25, 2020
37c0c60
Update organizations.md
rtatterson Feb 26, 2020
364ec19
Update organizations.md
rtatterson Feb 26, 2020
5c782f2
Update organizations.md
rtatterson Feb 26, 2020
3c5293e
Merge pull request #64 from coral-erm/Rebecca
rtatterson Feb 26, 2020
acb4bee
Update licensing.md
rtatterson Feb 26, 2020
6257edd
Update licensing.md
rtatterson Feb 26, 2020
ac6aca5
Update licensing.md
rtatterson Feb 26, 2020
044eb19
Update licensing.md
rtatterson Feb 26, 2020
123d694
Update licensing.md
rtatterson Feb 26, 2020
0009ae1
Update licensing.md
rtatterson Feb 26, 2020
702342f
Update licensing.md
rtatterson Feb 26, 2020
a1d8f79
Update licensing.md
rtatterson Feb 26, 2020
7269d30
Update licensing.md
rtatterson Feb 26, 2020
312d50c
Update licensing.md
rtatterson Feb 26, 2020
dfc3a11
Add files via upload
rtatterson Feb 26, 2020
231bb2a
Delete licensingAddExpressionDisplayNote.png
rtatterson Feb 26, 2020
68291cc
Update licensing.md
rtatterson Feb 26, 2020
7e50303
Update licensing.md
rtatterson Feb 26, 2020
1d7e739
Merge pull request #65 from coral-erm/Rebecca
rtatterson Feb 26, 2020
62f3f58
Update licensing.md
rtatterson Feb 26, 2020
2325437
Update licensing.md
rtatterson Feb 26, 2020
02b65a3
Update licensing.md
rtatterson Feb 27, 2020
3ff34ed
Merge pull request #66 from coral-erm/Rebecca
rtatterson Feb 27, 2020
fade459
Update licensing.md
rtatterson Feb 27, 2020
3d30090
Update licensing.md
rtatterson Feb 27, 2020
6036761
Update terms.md
rtatterson Feb 27, 2020
061a45d
Add files via upload
rtatterson Feb 27, 2020
877eb0b
Add files via upload
rtatterson Feb 27, 2020
1c0a116
Delete termsTermsDisplayLinks.png
rtatterson Feb 27, 2020
74ffe07
Delete termsTermsDisplay.png
rtatterson Feb 27, 2020
7b1434c
Merge pull request #67 from coral-erm/Rebecca
rtatterson Feb 27, 2020
375b14a
Revert "Rebecca"
rtatterson Feb 27, 2020
ad30588
Merge pull request #68 from coral-erm/revert-67-Rebecca
rtatterson Feb 27, 2020
c2b0e4e
Add files via upload
rtatterson Feb 27, 2020
0b6f413
Delete termsProviderNoTerms.png
rtatterson Feb 27, 2020
4003253
Update terms.md
rtatterson Feb 27, 2020
5c4339c
Delete termsSFXMenuLink.png
rtatterson Feb 27, 2020
1d46887
Merge branch 'master' into Rebecca
rtatterson Feb 27, 2020
2c3cc05
Merge pull request #69 from coral-erm/Rebecca
rtatterson Feb 27, 2020
0185303
Delete termsTermsDisplay.png
rtatterson Feb 27, 2020
e85b8f6
Add files via upload
rtatterson Feb 27, 2020
d2a6ea4
Delete termsTermsDisplayLinks.png
rtatterson Feb 27, 2020
467a591
Add files via upload
rtatterson Feb 27, 2020
03a4b06
Merge pull request #70 from coral-erm/Rebecca
rtatterson Feb 27, 2020
0f6eb0e
Update terms.md
rtatterson Feb 27, 2020
8ce94ec
Update terms.md
rtatterson Feb 27, 2020
f31d5aa
Delete termsTermsDisplayLinks.PNG
rtatterson Feb 27, 2020
dfc6e3a
Add files via upload
rtatterson Feb 27, 2020
d284129
Delete termsTermsDisplay.PNG
rtatterson Feb 27, 2020
9490a10
Add files via upload
rtatterson Feb 27, 2020
bcac3f5
Merge pull request #71 from coral-erm/Rebecca
rtatterson Feb 27, 2020
0d57ccd
Update terms.md
rtatterson Feb 27, 2020
820d937
Update terms.md
rtatterson Feb 27, 2020
4af70fb
Update terms.md
rtatterson Feb 27, 2020
9454249
Update terms.md
rtatterson Feb 27, 2020
788da88
Update terms.md
rtatterson Feb 27, 2020
92165a8
Merge pull request #72 from coral-erm/Rebecca
rtatterson Feb 27, 2020
310e878
Update terms.md
rtatterson Feb 28, 2020
7fdd692
Update terms.md
rtatterson Feb 28, 2020
4f3857b
Update terms.md
rtatterson Feb 28, 2020
4ce1aed
Update licensing.md
rtatterson Feb 28, 2020
5bb79f5
Merge pull request #73 from coral-erm/Rebecca
rtatterson Feb 28, 2020
aa6c378
Update licensing.md
rtatterson Feb 28, 2020
a149fb4
Update licensing.md
rtatterson Feb 28, 2020
2938ffd
Update dashboards.md
rtatterson Feb 28, 2020
336aba3
Update ebscokb.md
rtatterson Feb 28, 2020
4aaf227
Add files via upload
rtatterson Feb 28, 2020
7911997
Update ebscokb.md
rtatterson Feb 28, 2020
1274f89
Update ebscokb.md
rtatterson Feb 28, 2020
595787c
Update ebscokb.md
rtatterson Feb 28, 2020
56b88d0
Merge pull request #74 from coral-erm/Rebecca
rtatterson Feb 28, 2020
a92b0ac
Update manual.md
rtatterson Feb 28, 2020
844d6d4
Update manual.md
rtatterson Feb 28, 2020
6cb0cdc
Merge pull request #75 from coral-erm/Rebecca
rtatterson Feb 28, 2020
986eb76
Update manual.md
rtatterson Mar 2, 2020
c51bb1b
Update manual.md
rtatterson Mar 2, 2020
353001c
Update ebscokb.md
rtatterson Mar 3, 2020
78b0b9f
Update licensing.md
rtatterson Mar 3, 2020
05508f8
Update manual.md
rtatterson Mar 3, 2020
67ee993
Update terms.md
rtatterson Mar 3, 2020
23b0ee7
Update ebscokb.md
rtatterson Mar 4, 2020
7f7a776
Update manual.md
rtatterson Mar 4, 2020
3662bbd
Update licensing.md
rtatterson Mar 4, 2020
493a14b
Update licensing.md
rtatterson Mar 4, 2020
bc9daef
Update terms.md
rtatterson Mar 4, 2020
b241c01
Update terms.md
rtatterson Mar 4, 2020
706c50a
Update organizations.md
rtatterson Mar 4, 2020
2e95c5a
Update manual.md
rtatterson Mar 4, 2020
f36063a
Update manual.md
rtatterson Mar 4, 2020
17d33ab
Merge branch 'master' into Rebecca
rtatterson Mar 4, 2020
5570368
Delete licensingAddILLExpression.png
rtatterson Mar 4, 2020
75ecd3f
Add files via upload
rtatterson Mar 4, 2020
442cee3
Update licensing.md
rtatterson Mar 4, 2020
82f6e77
Update terms.md
rtatterson Mar 4, 2020
71fb0e8
Update licensing.md
rtatterson Mar 13, 2020
424abde
Delete resourcesEditCostInformation.PNG
rtatterson Mar 13, 2020
421cc1e
Add files via upload
rtatterson Mar 13, 2020
2fc2591
Update dashboards.md
rtatterson Mar 13, 2020
fb5d932
Add files via upload
rtatterson Apr 20, 2020
0735ba5
Add files via upload
rtatterson Jun 17, 2020
db48a26
Add files via upload
rtatterson Jun 17, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ViewState]
Mode=
Vid=
FolderType=Generic
46 changes: 46 additions & 0 deletions source/api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## Propose New Resource API

This API allows users to submit a new resource order request to CORAL Resource module via a client form.

### The API and the Client Form
The API is based on [Flight](http://flightphp.com/), a simple and extensible framework for PHP.

![Screenshot of API Client Form](img/api/apiClientForm.png)

This is a sample of a client form, which is based on [unirest]( http://unirest.io/php.html ). Users can enter resource information in the form. This includes basic information about the resource including Title, Description, Provider, ISBN/ISSN, URL and information about the order such as fund code and cost. For Format, Acquisition Type, Resource Type, and Fund code, the data showing on the form are populated from the data predefined in Coral Admin tab. Data entered here are mapped to fields in CORAL Resources. Other fields without a matching CORAL field are loaded into CORAL as general notes. If a specific note type is created in CORAL, they can be mapped to the desired note type.

Once submitted, a report is presented with a summary of the fields. A new resource record is created automatically in CORAL Resource module. If data entered in Format, Acquisition Type and Resource Type match with what determine a workflow, the workflow is triggered once the record is submitted via the client form.

### API Configuration

#### Server-side:

Edit resources/admin/configuration.ini and fill apiAuthorizedIP with the IP address of the client accessing the API:
apiAuthorizedIP="192.168.1.1"

You can set multiple IPs (comma-separated):
apiAuthorizedIP="192.168.1.1,192.168.2"

You can also set incomplete IPs so the whole range will be allowed:
apiAuthorizedIP="192.168.1"
(will authorize all IPs from 192.168.1.1 to 192.168.1.255)

If you are trying to test the example form and it is on the same machine as Coral, 127.0.0.1 should work.

Hint: if you don't know which IP address will be requesting the API, just leave apiAuthorizedIP blank (apiAuthorizedIP="") and access the example form with your browser (http://yourcoral.tld/resources/api_client/ ), you will get an error like this:
You are not authorized to use this service.
Unauthorized IP: 127.0.0.1

#### Client-side:

Edit api_client/index.php and set the $server variable:
$server = "http://yourcoral.tld/resources/api/";

### Install Composer, Flight and Unirest
In addition, you'll need to install Composer, Flight and Unirest. Install Composer, then run the "php computer.phar install" command from inside the [CORAL BASE DIR]/resources/api/directory. This will bring in and manage the Flight dependency for you.

Then navigate to [CORAL BASE DIR]/resources/api_client/ and run the ‘php composer.phar install’ command again. This will bring in and manage the Unirest dependency for you. Check out [https://packagist.org/](https://packagist.org/) for instruction on getting Composer installed. The exact composer install command might be slightly different depending on which Composer install option you choose.

Note that the Acquisition Type is hardcoded to show two options Approved and Need Approval. This can be customized to show desired acquisition types by modifying index.php (in the api_client folder). Users can either edit line 330 or remove line 330 and line 334. See the code in the screenshot below.

![Screenshot of API Client IndexPHP File](img/api/apiClientIndexphp.png)
36 changes: 36 additions & 0 deletions source/dashboards.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Dashboards User Guide
---------------------------------

### About CORAL Resources Dashboards

![Screenshot of Dashboards Home Menu](img/dashboards/dashboardsHomeMenu.PNG)

The CORAL dashboards provide a quick overview of resource and cost info.

Note: Enhanced Cost history must be enabled to use Dashboards in CORAL. See [Additional Server Configuration](http://docs.coral-erm.org/en/latest/manual.html#additional-server-configuration)

### Statistics Dashboard

![Screenshot of Dashboards Statistics](img/dashboards/dashboardsStatistics.PNG)

Dashboards Statistics allows for a quick display of your Resources data by Resource Type, Subject, Acquisition Type, Order Type, Cost Details, and Year. You can also Group By: Resource, Resource Type, Subject, and Acquisition Type. Once your criteria has been selected click Display to view your results or Export to export your results.

![Screenshot of Dashboards Statistics Results](img/dashboards/dashboardsStatisticsResults.PNG)

### Yearly Costs Dashboard

![Screenshot of Dashboards Yearly Cost](img/dashboards/dashboardsYearlyCost.PNG)

Yearly Costs allows for a quick display of your Resources data by Resource Type, Subject, Acquisition Type, Order Type, Cost Details, and Year Start and end dates. You can also Group By: Resource, Resource Type, Subject, and Acquisition Type, Organization and Fund. You can also view total sum for all cost details. Once your criteria has been selected click Display to view your results or Export to export your results.

![Screenshot of Dashboards Yearly Cost](img/dashboards/dashboardsYearlyCostResults.PNG)










44 changes: 38 additions & 6 deletions source/docstyleguide.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
CORAL Documentation Style Guide
git CORAL Documentation Style Guide
-------------------------------

### About the Style Guide ###

The purpose of the style guide is to help keep the documentation consistent in style while at the same time providing tips for contributing to the CORAL Documentation Project (CDP) and other relevant information.

### Helping Out

The CDP is a great way to participate in a small or big way as time allows. Take something in the documentation that you would like to improve and help out, whether it is editing, adding new content, or just sharing a tip. All the information needed to get started is found below. When finished you will need to submit a pull request in GitHub for any changes. The Web Committee will review these pull requests and merge them into the documentation as they are approved. For any suggestions or questions about helping out, please email us at [help@coral-erm.org](mailto:help@coral-erm.org).

### Setting Up ###

The CDP is managed in a repo on GitHub found at [https://github.com/Coral-erm
](https://github.com/Coral-erm "https://github.com/Coral-erm "). The project uses the [Sphinx Python Documentation Generator](http://www.sphinx-doc.org/en/stable/) and [ReCommonMark](http://recommonmark.readthedocs.io/en/latest/). The documentation files are edited in a combination of [reStructuredText](https://en.wikipedia.org/wiki/ReStructuredText) and [Markdown](https://en.wikipedia.org/wiki/Markdown), both markup languages supported by GitHub. In addition, [Read the Docs](https://readthedocs.org/) is used for hosting the documentation and providing additional documentation conversion and indexing tools.
](https://github.com/Coral-erm "https://github.com/Coral-erm "). The project uses the [Sphinx Python Documentation Generator](http://www.sphinx-doc.org/en/stable/) and [ReCommonMark](http://recommonmark.readthedocs.io/en/latest/). The documentation files are edited in a combination of [reStructuredText](https://en.wikipedia.org/wiki/ReStructuredText) and [Markdown](https://en.wikipedia.org/wiki/Markdown), both markup languages supported by GitHub. In addition, [Read the Docs](https://readthedocs.org/) is used for hosting the documentation and providing additional documentation conversion and indexing tools.

### Editing Markdown

There are a lot of great resources online about Markdown, but to get started you may want to use a Markdown editor. There are many available free, but the best one for you will depend on your operating system. One suggestion for Microsoft Windows would be [MarkdownPad](http://markdownpad.com/).

### Basic Instructions on Getting Started with GitHub

Note: For first times users you will need to have a GitHub account. To create an account, go to [https://github.com](https://github.com). You will also need to install some type of GitHub client software on your PC. For the instructions below, we are using Git for Windows. You can download Git for Windows at [https://git-scm.com](https://git-scm.com).

**Git and Github Documentation Workflow Procedures**

*Note: Except as noted the following instructions are for Microsoft Windows using the command line prompt. *
Expand All @@ -36,9 +46,9 @@ Running this command will do a few things including identifying what github acco

7. You should now be in the master branch of the repo. You can use **`git status`** to see what branch is currently selected. You could make changes to the master branch, but when you copy these changes back to github you would be directly merging your changes into the master branch of the repo. Instead what you want to do is create a branch of the master version, so that later on when you copy your changes back to github, you have to go through another step, in github lingo a "push request," to request that your changes be merged into the master branch. This allows for you to make sure you don’t inadvertently write over another person’s changes in the master branch. Use the following command to create a new branch from the master. Command: **`git checkout –b <branchname>`** (If the branch name already exists use **`git checkout <branchname>`**). You can now start making changes to your files. Feel free to do this by commandline or gui. For us we are going to use Windows Explorer to navigate to the following folder. Taking our example earlier. **`C:\Work\Documentation\Source`**

You will notice that there are two folders under Documentation. Build and Source. You will be working primarily with the Source. This is where the individual files for the documentation are to found. There are two files types of importance: .md = Markdown files and .rst = Restructured Files. Restructured Files are Python files used by the Sphinx Documentation Generator. We are using only one of these files at this time. This file is being used primarily to create our Table of Contents structure. For now, you will be editing primarily the Markdown files. Use the recommended MarkPad 2 for Windows application to open the files.
You will notice that there are two folders under Documentation. Build and Source. Most users will be working exclusively with the Source. This is where the individual files for the documentation are to found. There are two files types of importance: .md = Markdown files and .rst = Restructured Files. Restructured Files are Python files used by the Sphinx Documentation Generator. We are using only one of these files at this time. This file is being used primarily to create our Table of Contents structure. For now, you will be editing primarily the Markdown files. If using Microsoft Windows, you can use the recommended MarkPad 2 for Windows application to open the files.

8. Make whatever edits you need to the Markdown files and be sure to save your changes. Be sure to save your changes. Once finished you are now ready to build your HTML files from your Markdown files.
8. Make whatever edits you need to the Markdown files and be sure to save your changes.

9. Go back to your command line and change your working directory to the following. For our example, **`C:\Work\Documentation`**

Expand All @@ -60,11 +70,33 @@ The command **`git push` **will work alone when you have an established connecti

17. You should receive the message "This branch has no conflicts with the base branch." If so, and you have permission to do so, go ahead and select the green “Merge pull request” button to merge your changes into the master. Other options here include adding a comment or closing the pull request.

Note: If you are more comfortable having someone else merge the code, feel free to request this via the comment field. Likewise, admin rights are required to merge the pull request. Only members on the Web Committee and Steering Committee will be granted these rights, so in this case outside parties submitting a pull request will require someone on our committee to review, approve, and merge.
Note: Admin rights are required to merge the pull request. Only members on the Web Committee and Steering Committee have these rights, so in this case outside parties submitting a pull request will require someone on our committee to review, approve, and merge the changes.

18. After clicking on the "Merge pull request" button click the “Confirm merge” button. You should receive the message “Pull request successfully merged and closed.” Go ahead and delete your branch by pushing the “Delete branch” button. Doing this will keep your workflow cleaner. Likewise, creating a new branch when needed will keep your working files closer to the master branch. Once you have committed your changes they will be updated in generally less than a minute at [http://docs.coral-erm.org/](http://docs.coral-erm.org/). If changes don’t appear right away, try refreshing the cache in your browser.

19. You have finished the process of cloning the repo, creating a branch, making updates to the source files, committing the changes in your new branch to the repo, and finally merging those changes into the master branch.
19. You have finished the process of cloning the repo, creating a branch, making updates to the source files, committing the changes in your new branch to the repo, and finally merging those changes into the master branch.

### Updating Documentation Versions

Follow instructions from "Basic Instructions on Getting Started with Github" with the following differences.

To preserve a version of the documentation a branch repo has been created for that version. You will want to clone that branch repo instead of the master repo.

For example use the following git command to clone the branch:

**`git clone -b v2.0.1-Documentation -single-branch https://github.com/coral-erm/Documentation.git`**

Change the branch name, make your edits and use the git add, commit, and push commands as described under the "Basic Instructions..."

Use the following git push format:

**`git push https://github.com/coral-erm/Documentation <your branchname>`**

Once your new branch has been committed and pushed to Github be sure to setup the pull request to merge your branch into the version branch originally cloned.

### Updating the Table of Contents Structure (TOC)




### File Structure and File Naming Conventions ###
Expand Down
Loading