Skip to content

Commit 05c0460

Browse files
authored
Adding migration notes to package docs (UniversalRobots#325)
* Add migration notes to package docs * Add doc building CI job
1 parent 6dd8bdc commit 05c0460

File tree

5 files changed

+52
-4
lines changed

5 files changed

+52
-4
lines changed

.github/workflows/sphinx_build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: "Build documentation"
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- rolling
9+
schedule:
10+
- cron: '38 2 * * *'
11+
12+
jobs:
13+
docs:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
steps:
20+
- uses: actions/checkout@v5
21+
- uses: actions/setup-python@v6
22+
with:
23+
cache: 'pip'
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r doc_requirements.txt
28+
- name: Build documentation
29+
run: |
30+
sphinx-build -W -b html doc _doc_build

doc/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
#
3737
# This is also used if you do content translation via gettext catalogs.
3838
# Usually you set "language" from the command line for these cases.
39-
language = None
39+
language = "en"
4040

4141
# List of patterns, relative to source directory, that match files and
4242
# directories to ignore when looking for source files.
4343
# This pattern also affects html_static_path and html_extra_path.
44-
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
44+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "migration/*.rst"]
4545

4646
# The name of the Pygments (syntax highlighting) style to use.
4747
pygments_style = None
@@ -63,7 +63,7 @@
6363
# Add any paths that contain custom static files (such as style sheets) here,
6464
# relative to this directory. They are copied after the builtin static files,
6565
# so a file named "default.css" will overwrite the builtin "default.css".
66-
html_static_path = ["_static"]
66+
# html_static_path = ["_static"]
6767

6868
# Custom sidebar templates, must be a dictionary that maps document names
6969
# to template names.

doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ This package contains the kinematic and visual description of Universal Robots m
99
2.
1010

1111
.. toctree::
12-
:maxdepth: 4
12+
:maxdepth: 2
1313
:caption: Contents:
1414

1515
robot_frames
16+
migration_notes
1617

1718
.. contents::
1819
:depth: 2

doc/migration_notes.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Migration notes
2+
===============
3+
4+
Iron -> Jazzy
5+
^^^^^^^^^^^^^
6+
.. include:: migration/jazzy.rst
7+
:start-line: 4
8+
9+
Jazzy -> Kilted
10+
^^^^^^^^^^^^^^^
11+
.. include:: migration/kilted.rst
12+
:start-line: 4

doc_requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sphinx
2+
sphinx-copybutton
3+
sphinx-tabs
4+
sphinx_rtd_theme
5+
catkin-pkg

0 commit comments

Comments
 (0)