Skip to content

Commit 357cbb8

Browse files
authored
Update documentation (#277)
* Add github_url directives to sphinx doc * Fix heading in README * added sphinx config to build this package standalone. * Update ci-ros-lint with ignore list
1 parent fcb3186 commit 357cbb8

File tree

6 files changed

+104
-10
lines changed

6 files changed

+104
-10
lines changed

.github/workflows/ci-ros-lint.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
linter: [copyright, lint_cmake]
12+
env:
13+
- linter: copyright
14+
arguments: '--exclude doc/conf.py'
15+
- linter: lint_cmake
16+
arguments: ''
1317
steps:
14-
- uses: actions/checkout@v4
15-
- uses: ros-tooling/[email protected]
16-
- uses: ros-tooling/[email protected]
17-
with:
18-
distribution: rolling
19-
linter: ${{ matrix.linter }}
20-
package-name:
21-
ur_description
18+
- uses: actions/checkout@v4
19+
- uses: ros-tooling/[email protected]
20+
- uses: ros-tooling/[email protected]
21+
with:
22+
distribution: rolling
23+
linter: ${{ matrix.env.linter }}
24+
arguments: ${{ matrix.env.arguments }}
25+
package-name:
26+
ur_description

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ repos:
8989
stages: [pre-commit]
9090
entry: ament_copyright
9191
language: system
92+
args: ['--exclude', 'doc/conf.py']
9293

9394
# Docs - RestructuredText hooks
9495
- repo: https://github.com/PyCQA/doc8

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This repository contains description files and meshes for *Universal Robots* manipulators.
44

5-
### Build status
5+
## Build status
66

77
ROS2 Distro | Branch | Build status | Released packages
88
:---------: | :----: | :----------: | :---------------:

doc/conf.py

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
project = "ur_description"
2+
copyright = "2025, Universal Robots A/S"
3+
author = "Felix Exner"
4+
5+
# The short X.Y version
6+
version = ""
7+
# The full version, including alpha/beta/rc tags
8+
release = ""
9+
10+
# -- General configuration ---------------------------------------------------
11+
12+
# If your documentation needs a minimal Sphinx version, state it here.
13+
#
14+
# needs_sphinx = '1.0'
15+
16+
# Add any Sphinx extension module names here, as strings. They can be
17+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
18+
# ones.
19+
extensions = []
20+
21+
# Add any paths that contain templates here, relative to this directory.
22+
templates_path = ["_templates"]
23+
24+
# The suffix(es) of source filenames.
25+
# You can specify multiple suffix as a list of string:
26+
#
27+
source_suffix = [".rst"]
28+
29+
# The master toctree document.
30+
master_doc = "index"
31+
32+
numfig = True
33+
34+
# The language for content autogenerated by Sphinx. Refer to documentation
35+
# for a list of supported languages.
36+
#
37+
# This is also used if you do content translation via gettext catalogs.
38+
# Usually you set "language" from the command line for these cases.
39+
language = None
40+
41+
# List of patterns, relative to source directory, that match files and
42+
# directories to ignore when looking for source files.
43+
# This pattern also affects html_static_path and html_extra_path.
44+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
45+
46+
# The name of the Pygments (syntax highlighting) style to use.
47+
pygments_style = None
48+
49+
50+
# -- Options for HTML output -------------------------------------------------
51+
52+
# The theme to use for HTML and HTML Help pages. See the documentation for
53+
# a list of builtin themes.
54+
#
55+
html_theme = "alabaster"
56+
57+
# Theme options are theme-specific and customize the look and feel of a theme
58+
# further. For a list of options available for each theme, see the
59+
# documentation.
60+
#
61+
# html_theme_options = {}
62+
63+
# Add any paths that contain custom static files (such as style sheets) here,
64+
# relative to this directory. They are copied after the builtin static files,
65+
# so a file named "default.css" will overwrite the builtin "default.css".
66+
html_static_path = ["_static"]
67+
68+
# Custom sidebar templates, must be a dictionary that maps document names
69+
# to template names.
70+
#
71+
# The default sidebars (for documents that don't match any pattern) are
72+
# defined by theme itself. Builtin themes are using these templates by
73+
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
74+
# 'searchbox.html']``.
75+
#
76+
# html_sidebars = {}
77+
78+
79+
# -- Options for HTMLHelp output ---------------------------------------------
80+
81+
# Output file base name for HTML help builder.
82+
htmlhelp_basename = "ur_description_doc"

doc/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
:github_url: https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/blob/rolling/doc/index.rst
2+
3+
.. _ur_description:
4+
15
ur_description
26
==============
37

doc/migration/jazzy.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:github_url: https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/blob/rolling/doc/migration/jazzy.rst
2+
13
ur_description
24
^^^^^^^^^^^^^^
35

0 commit comments

Comments
 (0)