Skip to content

Commit c7b5941

Browse files
committed
restructure wiki
1 parent 9cd5e79 commit c7b5941

File tree

1,056 files changed

+4414
-6360
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,056 files changed

+4414
-6360
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# The IBEX Developer's Manual
22

3-
[Click here to go to the GitHub wiki with the developer's manual.](https://github.com/ISISComputingGroup/ibex_developers_manual/wiki)
3+
[Click here to go to the GitHub wiki with the developer's manual.](https://isiscomputinggroup.github.io/ibex_developers_manual/)

doc/Client.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# IBEX GUI (Eclipse)
2+
3+
## Getting Started
4+
5+
```{toctree}
6+
:glob:
7+
:titlesonly:
8+
9+
client/GUI-Getting-Started
10+
client/GUI-Coding
11+
client/GUI-Testing
12+
client/GUI-Eclipse
13+
client/GUI-CSS
14+
client/GUI-Other
15+
client/GUI-Troubleshooting
16+
client/GUI-Design
17+
```

doc/Deployment.md

Lines changed: 4 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,12 @@
11
# Releases & Deployment
22

3-
## Releases
4-
53
```{toctree}
64
:glob:
75
:titlesonly:
86
97
deployment/Creating-a-release
10-
deployment/Manual-system-tests
11-
```
12-
13-
## Deployment
14-
15-
### IBEX
16-
17-
```{toctree}
18-
:glob:
19-
:titlesonly:
20-
21-
deployment/Updating-Instrument-Machines
22-
deployment/Deployment-on-an-Instrument-Control-PC
23-
deployment/IBEX-Deployment-on-Training-machine
24-
deployment/Autostart-IBEX-on-Computer-Restart
25-
deployment/Making-an-Instrument-Available-from-the-GUI
26-
deployment/Reviewing-Deploy-Tickets
27-
deployment/Deploy-script-workflow
28-
```
29-
30-
### Supporting software
31-
32-
```{toctree}
33-
:glob:
34-
:titlesonly:
35-
36-
deployment/Installing-and-Upgrading-MySQL
37-
deployment/NPort-install
38-
deployment/Upgrade-Java
39-
deployment/Upgrade-ISISICP
40-
```
41-
42-
## Patching
43-
44-
```{toctree}
45-
:glob:
46-
:titlesonly:
47-
48-
deployment/Modifying-Code-on-an-instrument
49-
deployment/Modifying-Device-on-an-Instrument
50-
deployment/Release-Single-IOC
51-
deployment/Modifying-Plugins-on-a-Deployed-Client
52-
```
53-
54-
## VHD Build & Deployments
55-
56-
```{toctree}
57-
:glob:
58-
:titlesonly:
59-
60-
deployment/Mount-or-create-IBEX-VHDs
61-
```
62-
63-
## Containers
64-
65-
```{toctree}
66-
:glob:
67-
:titlesonly:
68-
69-
deployment/Containerising-an-IOC
70-
deployment/Containerising-the-Archiver-Appliance
8+
deployment/Manual-System-Tests
9+
deployment/Deploy
10+
deployment/Patch
11+
deployment/Future
7112
```

doc/Editing-the-Wiki.md

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# Editing this Documentation
2+
3+
This documentation is built using [sphinx](https://www.sphinx-doc.org/en/master/) and the [myst](https://myst-parser.readthedocs.io/en/latest/) markdown
4+
plugin. Both of these tools have excellent online documentation.
5+
6+
Sphinx is a widely-adopted structured documentation tool, which scales well even for very large projects - for example it
7+
is used to build [python's documentation](https://docs.python.org/3/), the [linux kernel documentation](https://docs.kernel.org/), and
8+
the [numpy documentation](https://numpy.org/doc/stable/).
9+
10+
### Markdown
11+
12+
Markdown is the preferred format, although any format supported by sphinx can be used if needed for example ReST or MediaWiki may be useful if moving documentation from other sources.
13+
14+
For a 3-minute introduction to Markdown see ['Mastering Markdown'](https://guides.github.com/features/mastering-markdown/).
15+
16+
### Page Titles
17+
18+
A top-level heading (e.g. `#` markdown header) is used as the page title. **A page should only have one title** (at the top) - otherwise multiple links to that
19+
page will appear in the navigation structure. Subsections within a page should use sub-headers like `##` or `###`.
20+
21+
The page title is independent from the filename of the markdown file - however, for clarity, choose to use similar titles and
22+
filenames wherever possible.
23+
24+
### Adding & editing pages
25+
26+
For simple edits to existing pages, editing can be done via the github interface. There is an "edit on github" button at
27+
the top of every page, which will take you to the relevant page in github to edit it.
28+
29+
For more complex changes, for example adding new pages, it is recommended to make the changes and test them locally, to make sure
30+
that the navigation structure renders properly.
31+
32+
When adding new pages, carefully consider at what level in the hierarchy the new page should be inserted. In particular, be cautious
33+
about adding pages at the very top level of the documentation - these can very quickly clutter the navigation.
34+
35+
Some sphinx `toctrees` (Table-of-contents trees) are listed explicitly, to promote a natural reading order. Where this is the case,
36+
new pages will need to be added to the `toctree` in the document one level up from where the new page has been added - preserving a
37+
natural reading order. Sphinx will warn you (and fail the build) if you forget to do this.
38+
39+
### Building the wiki locally
40+
41+
Check out the wiki into `c:\instrument\dev\ibex_developers_manual`:
42+
43+
```shell
44+
cd c:\instrument\dev
45+
git clone https://github.com/ISISComputingGroup/ibex_developers_manual.git
46+
```
47+
48+
Make a python virtual environment containing the wiki's dependencies:
49+
50+
```
51+
cd c:\instrument\dev\ibex_developers_manual
52+
c:\instrument\apps\python3\python.exe -m venv .venv
53+
.venv\Scripts\activate
54+
python -m pip install -e .
55+
```
56+
57+
Build the wiki (rebuilding automatically on changes):
58+
59+
```
60+
sphinx-autobuild doc _build
61+
```
62+
63+
The local wiki will then be available at [http://localhost:8000](http://localhost:8000) in your browser.
64+
65+
If sphinx gets out of sync with changes, you can clear the cached build output and start again by running:
66+
67+
```
68+
rmdir /s /q _build && sphinx-autobuild doc _build
69+
```
70+
71+
72+
### Adding DrawIO Diagram
73+
74+
Create new diagram
75+
76+
1. Visit [DrawIO](https://www.draw.io/) choose `device`
77+
1. Create New Diagram, select type etc.
78+
1. Edit diagram until you are happy
79+
1. choose `File` -> `Export` -> `Png...`
80+
1. Then make sure `Include a copy of my diagram` is ticked
81+
1. Add it to the folder in git, next to the page which will use it
82+
83+
In wiki add to markdown using:
84+
85+
![alternative text](<image name>.png)
86+
87+
To edit this just open that png in `draw.io`.
88+
89+
### Adding Images
90+
91+
To add images you need to check out the Wiki and add them manually. The images should go into a folder next to the page which will use them.
92+
93+
```shell
94+
git add some/folder/test.png
95+
git commit -m "Added an image to Using the Wiki page"
96+
git push
97+
```
98+
99+
You can then add the image in markdown using the URL `test.png`:
100+
101+
![alternative text](test.png)

0 commit comments

Comments
 (0)