Skip to content

Commit 4a0bacd

Browse files
committed
Implement spellcheck
1 parent d934137 commit 4a0bacd

File tree

6 files changed

+1189
-8
lines changed

6 files changed

+1189
-8
lines changed

.github/workflows/documentation.yml

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ name: sphinx
33
on: [push, pull_request, workflow_call]
44

55
jobs:
6+
spellcheck:
7+
runs-on: "ubuntu-latest"
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-python@v5
11+
with:
12+
python-version: "3.12"
13+
- name: install requirements
14+
run: pip install -e .[dev]
15+
- name: run spellcheck
16+
run: sphinx-build -b spelling doc _build
617
call_sphinx_builder:
718
uses: ISISComputingGroup/reusable-workflows/.github/workflows/sphinx.yml@main
819
secrets: inherit

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
ibex_developers_manual.egg-info/
44
build/
55
_build/
6+
doc/words.txt

doc/conf.py

+9-7
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
# -- Project information -----------------------------------------------------
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88

9-
import os
10-
import sys
119

1210
project = "IBEX Developer's Manual"
1311
copyright = ""
@@ -20,10 +18,10 @@
2018
nitpicky = True
2119

2220
myst_enable_extensions = [
23-
"dollarmath",
24-
"strikethrough",
25-
"colon_fence",
26-
"linkify",
21+
"dollarmath",
22+
"strikethrough",
23+
"colon_fence",
24+
"linkify",
2725
"html_image",
2826
"attrs_block",
2927
]
@@ -69,10 +67,14 @@
6967
html_favicon = "favicon.ico"
7068
html_static_path = ["_static"]
7169
html_css_files = [
72-
'css/custom.css',
70+
"css/custom.css",
7371
]
7472

7573
autoclass_content = "both"
7674
myst_heading_anchors = 7
7775
html_last_updated_fmt = ""
7876
html_show_copyright = False
77+
78+
spelling_lang = "en_GB"
79+
spelling_filters = ["enchant.tokenize.MentionFilter"]
80+
spelling_exclude_patterns = ["Glossary.md"]

doc/specific_iocs/choppers/FZJ_DD_Fermi_chopper.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Prototype digital drive Fermi chopper controller made by Forschungszentrum Jüli
77
## Gotchas
88
- Only one TCP connection allowed at a time. Other TCP connections will appear to connect but not give any responses (this can cause the IOC to read "zero" for everything).
99
- Message length limit at 19 chars. For some commands (e.g. setting phase setpoint) this means the device cannot handle more than 1 d.p. If the message is too long the device will respond with an error message and not accept the setpoint at all. This length limit *includes* the `\r\n` terminator so really the message length limit is 17 characters.
10-
- The manual does not match the command set. For example, the order of responses in the long response packet is incorrect and several of the commands simply don't exist. The best (most up-to-date) place to get the command syntax from is the Julich VIs which are running on the chopper control machine (David has a copy of these).
10+
- The manual does not match the command set. For example, the order of responses in the long response packet is incorrect and several of the commands simply don't exist. The best (most up-to-date) place to get the command syntax from is the Jülich VIs which are running on the chopper control machine (David has a copy of these).
1111
- Be careful about renaming/removing PVs, this IOC is used by a CaLAB wrapper and that will need to be updated if the PV names change.
1212
- Errors on all PVs are propagated from a single source so may not accurately reflect which command(s) have gone wrong
1313

0 commit comments

Comments
 (0)