Skip to content

Commit 1511821

Browse files
authored
Bump jinja2 from 3.1.5 to 3.1.6, update GitHub Pages deployment (#92)
* Bump jinja2 from 3.1.5 to 3.1.6 - See security tab for more information regarding the security update * Update ONI links * Update to modern GitHub pages deployment * Ignore timeout for white-matter.com
1 parent d5e7cce commit 1511821

File tree

9 files changed

+42
-68
lines changed

9 files changed

+42
-68
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
name: Build and Test Documentation
1+
name: Build Documentation
22

33
on:
4+
push:
5+
branches: [ main ]
46
pull_request:
5-
branches:
6-
- main
7+
branches: [ main ]
78

89
jobs:
9-
build_and_test:
10-
name: Build and Test
10+
build:
11+
name: Build
1112
runs-on: ubuntu-22.04
12-
environment: Testing
1313

1414
steps:
1515
- name: Check out repository code
1616
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
1719

1820
- name: Setup Python
1921
uses: actions/setup-python@v5
@@ -33,11 +35,24 @@ jobs:
3335
- name: Check all external links
3436
id: make_linkcheck
3537
run: |
36-
pipenv run make linkcheck SPHINXOPTS="-W --keep-going -n" # -n: nit-picky mode, generates warnings for all missing references
38+
pipenv run make linkcheck SPHINXOPTS="-W --keep-going"
3739
38-
- name: Upload docs
39-
uses: actions/upload-artifact@v4
40+
- name: Upload GitHub Pages Artifact
41+
uses: actions/upload-pages-artifact@v3
4042
with:
41-
name: html
42-
if-no-files-found: error
43-
path: docs/html/*
43+
path: docs/html/
44+
45+
deploy:
46+
name: Deploy docs
47+
runs-on: ubuntu-22.04
48+
needs: build
49+
if: github.event_name == 'push' && always() && !failure() && !cancelled()
50+
51+
permissions:
52+
# Both required by actions/deploy-pages
53+
pages: write
54+
id-token: write
55+
56+
steps:
57+
- name: Deploy to GitHub Pages
58+
uses: actions/deploy-pages@v4

.github/workflows/deploy_docs.yml

-44
This file was deleted.

Pipfile

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ make = "*"
1010
pytz = "*"
1111
sphinxcontrib-wavedrom = "*"
1212
jinja2 = "*"
13+
14+
[dev-packages]

Pipfile.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/Getting Started/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ Understanding the System
2222
- See the :ref:`hardware_guide` for a description of each ONIX hardware component and decide which you will need.
2323

2424
.. note::
25-
To understand the underlying hardware specifications, check out the `ONI Hardware Specification <https://open-ephys.github.io/ONI/hw-spec/index.html>`_.
25+
To understand the underlying hardware specifications, check out the `ONI Hardware Specification <https://open-ephys.github.io/ONI/v1.0/hw-spec/index.html>`_.
2626

2727
.. note::
28-
For developers who want to dig into the API, check out the `ONI API Documentation <https://open-ephys.github.io/ONI/api/index.html>`_.
28+
For developers who want to dig into the API, check out the `ONI API Documentation <https://open-ephys.github.io/ONI/v1.0/api/index.html>`_.
2929

3030
Usage Warnings
3131
--------------------------------

source/Resources/faq.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ FAQ
4848
I have existing acquisition hardware. Can I can use your API and software to acquire data from it?
4949
Yes. We tried to design our API so that it decouples hardware details
5050
from software in a generic way. Have a look at the
51-
`Driver Translators <https://open-ephys.github.io/ONI/api/liboni/driver-translators/index.html>`_ page
51+
`Driver Translators <https://open-ephys.github.io/ONI/v1.0/api/liboni/driver-translators/index.html>`_ page
5252
for more information on how to use the ONIX API with your hardware.
5353
Depending on how your device communicates with the computer it may only
5454
take 10's of lines of C.
5555

5656
I have existing acquisition software. Can I integrate support for ONIX hardware using your API?
57-
Yes. Have a look at the `ONI API Documentation <https://open-ephys.github.io/ONI/api/index.html>`_
57+
Yes. Have a look at the `ONI API Documentation <https://open-ephys.github.io/ONI/v1.0/api/index.html>`_
5858
to get started. Also let us know if you want help.
5959

source/Software Guide/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
debugging and basic streaming IO with ONIX hardware.
3030

3131
.. tip:: ONIX uses an `ONI-compliant API
32-
<https://open-ephys.github.io/ONI/api/index.html>`__ that is software
32+
<https://open-ephys.github.io/ONI/v1.0/api/index.html>`__ that is software
3333
agnostic. If you want to use ONIX hardware with your acquisition software,
3434
please :ref:`get in touch <support>`.
3535

source/Software Guide/oni-repl/index.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Command Line Application
1111

1212
``oni-repl`` is a simple `read-eval-print loop (REPL)
1313
<https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop>`__ for
14-
`liboni <https://open-ephys.github.io/ONI/api/liboni/index.html>`__.
14+
`liboni <https://open-ephys.github.io/ONI/v1.0/api/liboni/index.html>`__.
1515

1616
:Code: https://github.com/open-ephys/liboni/tree/main/api/liboni/oni-repl
1717
:Compatibility: Any ONI-compliant hardware
@@ -34,10 +34,10 @@ hardware to perform the following:
3434
- Bulk initialize device register state
3535

3636
.. note:: ``oni-repl`` was created for hardware debugging and as a test program
37-
for `liboni <https://open-ephys.github.io/ONI/api/liboni/index.html>`__.
37+
for `liboni <https://open-ephys.github.io/ONI/v1.0/api/liboni/index.html>`__.
3838
However, its simplicity and lack of abstraction compared to
3939
:ref:`bonsai_onixref` make it useful as an example of how to use `liboni
40-
<https://open-ephys.github.io/ONI/api/liboni/index.html>`__ and for quickly
40+
<https://open-ephys.github.io/ONI/v1.0/api/liboni/index.html>`__ and for quickly
4141
examining hardware state and hub firmware versions.
4242

4343
.. code-block:: none

source/conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@
153153
'https://multimedia.3m.com/mws/media/*',
154154
'https://www.intel.com/*',
155155
'https://www.analog.com/*',
156-
'https://www.xilinx.com/*'
156+
'https://www.xilinx.com/*',
157+
'https://white-matter.com/*'
157158
]
158159

159160
# NB: Allow this permanent redirect for a Visual Studio package

0 commit comments

Comments
 (0)