|
3 | 3 | ## Overview |
4 | 4 | The documentation consists of three main parts. |
5 | 5 |
|
6 | | -* The "Home Webgpage" of the project , describing the purpose and use cases for the software. The source is located at https://github.com/SciCatProject/scicatproject.github.io |
7 | | -* The documentation proper, split into User,Operator,Ingestor and Developer manual. The source is located at https://github.com/SciCatProject/documentation . It covers all components of the software, i.e frontend and backend. The documentation tool [honkit](https://honkit.netlify.app/) (successor of gitbook) is used. |
8 | | -* The documentation of the REST API of the backend. This is generated from the swagger.json file, which itself is generated from the model descriptions in loopback |
9 | | - |
| 6 | +* The "Home Webpage" of the project , describing the purpose and use cases for the software. The source is located at https://github.com/SciCatProject/scicatproject.github.io |
| 7 | +* The documentation proper, split into User,Operator,Ingestor and Developer manual. The source is located at https://github.com/SciCatProject/documentation . It covers all components of the software, i.e frontend and backend. The documentation tool [honkit](https://honkit.netlify.app/) (successor of gitbook) is used. |
| 8 | +* The documentation of the REST API of the backend. This is generated from the OpenAPI description, which itself is generated from the model descriptions in the backend code. |
10 | 9 |
|
11 | 10 | All parts are hosted on the [GitHub Pages platform](https://pages.github.com/). The documentation part is "injected" into the GitHub pages automatically by a travis job, which runs after each commit to the documentation repository |
12 | 11 |
|
13 | 12 | The live web site is then visible on the following URLs respectively |
14 | 13 | * https://scicatproject.github.io/ |
15 | 14 | * https://scicatproject.github.io/documentation |
16 | | -* https://scicatproject.github.io/api |
| 15 | +* The REST API not generated statically but is available from each running SciCat |
| 16 | + backend (for example, the public [ESS instance](https://scicat.ess.eu/explorer)). |
| 17 | + <!-- TODO update following completion of https://github.com/SciCatProject/documentation/issues/42 --> |
17 | 18 |
|
18 | 19 | ## Changes and Deployment of Home Webpage |
19 | 20 |
|
20 | | -``` |
21 | | -git clone https://github.com/SciCatProject/scicatproject.github.io` |
22 | | -cd scicatproject.github.io |
23 | | -
|
24 | | -# make your changes on index.html directly, then git add and git commit as usual |
25 | | -
|
26 | | -git push origin master |
27 | | -``` |
| 21 | +The homepage is built using [Jekyll](https://jekyllrb.com/) and hosted on GitHub pages. |
| 22 | +The source is located in the repository |
| 23 | +[SciCatProject/scicatproject.github.io](https://github.com/SciCatProject/scicatproject.github.io). |
28 | 24 |
|
29 | | -After pushing the changes they will immediately become visible at the URL https://scicatproject.github.io/ |
| 25 | +After pushing the changes they will become visible at the URL https://scicatproject.github.io/ |
30 | 26 |
|
31 | 27 | ## Changes and Deployment of Manuals |
32 | 28 |
|
33 | | -``` |
34 | | -git clone https://github.com/SciCatProject/documentation.git` |
35 | | -cd documentation |
36 | | -
|
37 | | -# make your edit/add/commit cycle |
38 | | -
|
39 | | -npm install honkit --save |
40 | | -npx honkit build |
41 | | -``` |
42 | | - |
43 | | -### Serving the Documentation locally |
44 | | - |
45 | | -`npx honkit serve --port 4040` |
46 | | - |
47 | | -### Publishing the documentation |
48 | | - |
49 | | -`git push origin master` |
50 | | - |
51 | | -The push to the origin repo will trigger a travis job, which will publish the resulting documentation to https://scicatproject.github.io/documentation |
52 | | - |
53 | | -## Changes and Deployment of API Documentation |
54 | | - |
55 | | -Use the following command to regenerate the API with an up-to-date swagger.json file |
56 | | - |
57 | | -``` |
58 | | - # to install redoc-cli: |
59 | | - # sudo npm install -g redoc-cli |
60 | | -
|
61 | | - # to get an updated swagger.json file |
62 | | - # wget https://YOUR-API-SERVER/explorer/swagger.json |
63 | | -
|
64 | | - redoc-cli bundle -o index.html swagger.json |
65 | | -
|
66 | | - # the make commit which replaces the index.html file at |
67 | | - # https://github.com/SciCatProject/scicatproject.github.io/tree/master/api |
68 | | -``` |
69 | | - |
| 29 | +Manuals are built using [honkit](https://honkit.netlify.app/) from the |
| 30 | +[SciCatProject/documentation](https://github.com/SciCatProject/documentation) |
| 31 | +repository. After pushing the changes they will become visible at the URL |
| 32 | +https://scicatproject.github.io/documentation. |
0 commit comments