Skip to content

Commit 3370164

Browse files
Link to docs in readme (#110)
* Link to docs in readme
1 parent 825a1ec commit 3370164

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88

99
A service to read files on Diamond's filesystem from a BlueAPI container. Currently this service is only able to read files on `/dls_sw/`. Writing to configuration files will come in a future release.
1010

11-
| Source | <https://github.com/DiamondLightSource/daq-config-server> |
12-
| :------: | :----------------------------------------------------------------: |
13-
| Docker | `docker run ghcr.io/DiamondLightSource/daq-config-server:latest` |
14-
| Releases | <https://github.com/DiamondLightSource/daq-config-server/releases> |
11+
| Source | <https://github.com/DiamondLightSource/daq-config-server> |
12+
| :-----------: | :----------------------------------------------------------------: |
13+
| Docker | `docker run ghcr.io/DiamondLightSource/daq-config-server:latest` |
14+
| Releases | <https://github.com/DiamondLightSource/daq-config-server/releases> |
15+
| Documentation | https://DiamondLightSource.github.io/daq-config-server |
1516

1617
Here is a minimal example to read a file from the centrally hosted service after installing this package
1718

@@ -23,8 +24,8 @@ config_server = ConfigServer("https://daq-config.diamond.ac.uk")
2324
file_contents = config_server.get_file_contents({ABSOLUTE_PATH_TO_CONFIG_FILE}, desired_return_type=str)
2425

2526
```
26-
The output will come out as a raw string - you should format it as required in your own code. You may also request that the file contents is returned as a `dict` or in `bytes` - this will raise an http exception if the file cannot be converted to that type. To be able to read a file, you must first add it to the [whitelist](https://github.com/DiamondLightSource/daq-config-server/blob/main/whitelist.yaml).
2727

28+
The output will come out as a raw string - you should format it as required in your own code. You may also request that the file contents is returned as a `dict` or in `bytes` - this will raise an http exception if the file cannot be converted to that type. To be able to read a file, you must first add it to the [whitelist](https://github.com/DiamondLightSource/daq-config-server/blob/main/whitelist.yaml).
2829

2930
## Testing and deployment
3031

@@ -48,4 +49,6 @@ kubectl port-forward service/daq-config-server-svc 8555
4849

4950
after which you should be able to access the API on `http://localhost:8555/docs`
5051

52+
See https://DiamondLightSource.github.io/daq-config-server for more detailed documentation.
53+
5154
<!-- README only content. Anything below this line won't be included in index.md -->

docs/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,45 @@ top bar.
1717
:gutter: 4
1818

1919
:::{grid-item-card} {material-regular}`directions_walk;2em`
20+
2021
```{toctree}
2122
:maxdepth: 2
2223
tutorials
2324
```
25+
2426
+++
2527
Tutorials for installation and typical usage. New users start here.
2628
:::
2729

2830
:::{grid-item-card} {material-regular}`directions;2em`
31+
2932
```{toctree}
3033
:maxdepth: 2
3134
how-to
3235
```
36+
3337
+++
3438
Practical step-by-step guides for the more experienced user.
3539
:::
3640

3741
:::{grid-item-card} {material-regular}`info;2em`
42+
3843
```{toctree}
3944
:maxdepth: 2
4045
explanations
4146
```
47+
4248
+++
4349
Explanations of how it works and why it works that way.
4450
:::
4551

4652
:::{grid-item-card} {material-regular}`menu_book;2em`
53+
4754
```{toctree}
4855
:maxdepth: 2
4956
reference
5057
```
58+
5159
+++
5260
Technical reference material including APIs and release notes.
5361
:::

0 commit comments

Comments
 (0)