Skip to content

Commit 19bb66b

Browse files
Merge pull request #1052 from TheDeanLab/docs-update
Link check with Sphinx
2 parents 90c5160 + 514e45b commit 19bb66b

File tree

10 files changed

+52
-34
lines changed

10 files changed

+52
-34
lines changed

.github/workflows/build_docs.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ jobs:
5252
run: pwd
5353
- name: Deploy
5454
uses: peaceiris/actions-gh-pages@v3
55-
# if: ${{ github.ref == 'refs/heads/main' }}
5655
with:
5756
github_token: ${{ secrets.GITHUB_TOKEN }}
5857
publish_dir: ./docs/build/html

docs/make.bat

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,50 @@
11
@ECHO OFF
22

3+
REM Save the current directory and change to the script's directory
34
pushd %~dp0
45

56
REM Command file for Sphinx documentation
67

8+
REM Set the SPHINXBUILD variable if it is not already set
79
if "%SPHINXBUILD%" == "" (
810
set SPHINXBUILD=sphinx-build
911
)
12+
13+
REM Define the source and build directories
1014
set SOURCEDIR=source
1115
set BUILDDIR=build
1216

17+
REM Check if sphinx-build is available
1318
%SPHINXBUILD% >NUL 2>NUL
1419
if errorlevel 9009 (
1520
echo.
16-
echo.The 'sphinx-build' command was not found. Make sure you have
17-
Sphinx
18-
echo.installed, then set the SPHINXBUILD environment variable to
19-
point
20-
echo.to the full path of the 'sphinx-build' executable.
21-
Alternatively you
21+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
22+
echo.installed, then set the SPHINXBUILD environment variable to point
23+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
2224
echo.may add the Sphinx directory to PATH.
2325
echo.
2426
echo.If you don't have Sphinx installed, grab it from
2527
echo.https://www.sphinx-doc.org/
2628
exit /b 1
2729
)
2830

31+
REM If no argument is provided, show help
2932
if "%1" == "" goto help
3033

34+
REM Handle the linkcheck target
35+
if "%1" == "linkcheck" (
36+
%SPHINXBUILD% -b linkcheck %SOURCEDIR% %BUILDDIR%/linkcheck %SPHINXOPTS% %O%
37+
goto end
38+
)
39+
40+
REM Run the specified target
3141
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
3242
goto end
3343

3444
:help
3545
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
3646

3747
:end
48+
49+
REM Return to the original directory
3850
popd

docs/source/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@
109109

110110
pygments_style = "sphinx"
111111

112+
# -- Linkcheck Options ---------------------------------------------
113+
linkcheck_ignore = [
114+
r'http://proxy\.your_university\.edu:1234',
115+
r'https://proxy\.your_university\.edu:1234'
116+
]
112117
# -- LaTeX output options ----------------------------------------------------
113118

114119
latex_elements = {

docs/source/intermediate.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Write A Smart Acquisition Routine (Intermediate)
44

55
**navigate**'s :doc:`feature container <contributing/feature_container>` enables us to
66
write acquisition routines on the fly by chaining existing
7-
:doc:`features <user_guide/features>` into lists. Please see
7+
:doc:`features <user_guide/features/features>` into lists. Please see
88
:ref:`Currently Implemented Features <contributing/feature_container:currently implemented features>`
9-
for a complete list of features. Users can build additionals feature within :doc:`plugins <plugin/plugin_home>`.
9+
for a complete list of features. Users can build additional features within :doc:`plugins <plugin/plugin_home>`.
1010

1111
In this guide, we will use existing features to write a routine that scans through an
1212
imaging chamber and takes z-stacks only where it finds the sample.

docs/source/software_installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Developer install
193193

194194
If you do not have `Git already installed <https://git-scm.com/downloads>`_, you will
195195
need to do so before downloading the repo. We also recommend installing
196-
`GitHub Desktop <https://desktop.github.com/>`_ for a more user-friendly experience.
196+
`GitHub Desktop <https://github.com/apps/desktop>`_ for a more user-friendly experience.
197197

198198
**Create a directory where the repository will be cloned**
199199
We recommend a path/location that is easy to find and access such as the your

docs/source/user_guide/acquiring_guide.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ Saving is toggled under the GUI's :ref:`timepoint settings <user_guide/gui_walkt
1818
These modes (and other custom modes) can be selected in the program's
1919
:ref:`acquisition bar <user_guide/gui_walkthrough:acquisition bar>` dropdown list.
2020

21-
Each acquisition mode is implemented as a :doc:`feature list <features>` and can be used
22-
in sequence with other features that can, for example,
21+
Each acquisition mode is implemented as a :doc:`feature list <features/features>` and can be used in sequence with other features that can, for example,
2322
:doc:`make smart decisions <../intermediate>`.
2423

2524
----------------
@@ -32,8 +31,8 @@ this mode, only to preview what is in focus. This mode is helpful for alignment,
3231
parameter tuning, and scrolling around the sample with the stage.
3332

3433
It is implemented as
35-
a :doc:`feature list <features>`, shown in its
36-
:ref:`textual form <user_guide/features:text representation of feature lists>` below.
34+
a :doc:`feature list <features/features>`, shown in its
35+
:ref:`textual form <user_guide/features/features:text representation of feature lists>` below.
3736

3837
.. code-block:: python
3938
@@ -105,7 +104,7 @@ Customized
105104

106105
The customized acquisition mode can be used to run any feature list of the user's choosing.
107106
Data acquisition with **navigate** is almost infinitely reconfigurable with the either the
108-
:doc:`feature container <features>`, if a desired acquisition can be
107+
:doc:`feature container <features/features>`, if a desired acquisition can be
109108
performed using a reconfiguration of existing features and saving formats, or the
110109
:doc:`plugin architecture <../plugin/plugin_home>`, if new features or saving formats are
111110
required. We strongly recommend the reader check through the

docs/source/user_guide/features/features.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ As an example, let's look at the feature list that describes the
213213
Here, we have a sequence defined by ``[]`` containing one element, a loop, indicated
214214
by the closed parentheses. There are two features within this loop. One feature has the
215215
name
216-
:doc:`PrepareNextChannel <../_autosummary/navigate.model.features.common_features.PrepareNextChannel>`
216+
:doc:`PrepareNextChannel <../../_autosummary/navigate.model.features.common_features.PrepareNextChannel>`
217217
and the other
218-
:doc:`LoopByCount <../_autosummary/navigate.model.features.common_features.LoopByCount>`.
218+
:doc:`LoopByCount <../../_autosummary/navigate.model.features.common_features.LoopByCount>`.
219219
The parentheses indicate we will keep looping through both of these features until
220220
stopping criteria is met. In this case, the looping will stop when ``LoopByCount``
221221
returns ``False`` due to running out of ``selected_channels`` to loop through. That is,

docs/source/user_guide/gui_walkthrough.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Features
101101

102102
This menu provides access to acquisition feature lists. An explanation of features,
103103
feature lists, and the use and operation of this menu is provided under
104-
:doc:`Reconfigurable Acquisitions Using Features <features>`.
104+
:doc:`Reconfigurable Acquisitions Using Features <features/features>`.
105105

106106
-------------------
107107

@@ -719,7 +719,7 @@ Autofocus Settings
719719
.. image:: case_studies/images/autofocus_settings.png
720720

721721
The :guilabel:`Autofocus Settings` panel controls parameters of the autofocus
722-
:doc:`feature <features>`.
722+
:doc:`feature <features/features>`.
723723

724724
* :guilabel:`Device Type` indicates if the autofocus routine should be applied to a
725725
stage or to a remote focus device.

docs/source/user_guide/hardware/stage.rst

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ Physik Instrumente
275275
------------------
276276

277277
These stages are controlled by `PI <https://www.pi-usa.us/en/>`_'s own
278-
`Python code <https://pypi.org/project/PIPython/>`_ and are quite stable.
278+
`Python code <https://pypi.org/project/PIPython/>`_.
279279

280280
.. note::
281281

@@ -285,19 +285,22 @@ These stages are controlled by `PI <https://www.pi-usa.us/en/>`_'s own
285285
- PIMikroMove: 2.36.1.0
286286
- PI_GCS2_DLL: 3.22.0.0
287287

288-
289-
They
290-
include a special ``hardware`` option, ``refmode``, which corresponds to how the
291-
PI stage chooses to self-reference. Options are ``REF``, ``FRF``, ``MNL``, ``FNL``,
292-
``MPL`` or ``FPL``. These are PI's GCS commands, and the correct reference mode
293-
for your stage should be found by launching PIMikroMove, which should come with
294-
your stage. Stage names (e.g. ``L-509.20DG10``) can also be found in PIMikroMove
295-
or on a label on the side of your stage.
296-
297288
.. note::
298-
PI L-509.20DG10 has a unidirectional repeatability of 100 nm, bidirectional
299-
repeatability of 2 microns, and a minimum incremental motion of 100 nm.
300-
This is potentially too coarse.
289+
PI stages require a special ``hardware`` option in the configuration.yaml file, ``refmode``,
290+
which corresponds to how the PI stage chooses to self-reference. Options are:
291+
292+
* ``REF``
293+
* ``FRF``
294+
* ``MNL``
295+
* ``FNL``
296+
* ``MPL``
297+
* ``FPL``
298+
* ``" "`` - An empty string can be provided if no stage referencing mode is needed.
299+
300+
These are PI's GCS commands, and the correct reference mode for your stage should be found by
301+
launching PIMikroMove, which comes with your stage and can be downloaded
302+
`here <https://www.pi-usa.us/en/products/controllers-drivers-motion-control-software/motion-control-software>`_.
303+
Stage names (e.g. ``L-509.20DG10``) can also be found in PIMikroMove or on a label on the side of your stage.
301304

302305
-----------------
303306

docs/source/user_guide/software_configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ along in this file when reading the next sections.
9595

9696
See the :ref:`Setting up an Axially Swept Light-Sheet Microscope <setup_aslm>` case
9797
study for a general walkthrough of how to build your own configuration file and see
98-
:doc:`Implementations <implemented_microscopes>` for examples of configuration files.
98+
:doc:`Implementations <../implementations/implementations>` for examples of configuration files.
9999

100100
-----------------
101101

@@ -165,7 +165,7 @@ Each microscope is expected to have a ``daq``, ``camera``, ``remote_focus_device
165165
can be specified as synthetic.
166166

167167
Most of the information to set up these devices can be found in the
168-
:doc:`Supported Hardware <hardware_overview>` section of the documentation.
168+
:doc:`Supported Hardware <hardware/hardware_home>` section of the documentation.
169169
Additional explanations of a few specific sections of the microscope configuration are
170170
below. Notably, the ``zoom`` section of the ``configuration.yaml`` specifies effective
171171
pixel size.

0 commit comments

Comments
 (0)