Skip to content

Commit 3a215f6

Browse files
authored
Add WAN communition over TCP tutorial (#306)
* Add WAN communition çover TCP tutorial Signed-off-by: RaulSanchez <raul@eprosima.com> * Fix docs build Signed-off-by: RaulSanchez <raul@eprosima.com> * Apply review suggestions Signed-off-by: RaulSanchez <raul@eprosima.com> * Ignore max line lenght test Signed-off-by: RaulSanchez <raul@eprosima.com> Signed-off-by: RaulSanchez <raul@eprosima.com>
1 parent e98b208 commit 3a215f6

13 files changed

Lines changed: 317 additions & 4 deletions

File tree

.github/actions/install-python-packages/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ runs:
1111
sphinx_rtd_theme==0.4.3 \
1212
sphinxcontrib.spelling==5.0.0 \
1313
sphinxcontrib-imagehelper==1.1.1 \
14+
sphinx-tabs==3.2.0 \
1415
colcon-common-extensions \
1516
colcon-mixin \
1617
vcstool \

docs/conf.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,17 @@ def select_css(html_css_dir):
145145
:param html_css_dir: The directory to save the CSS stylesheet.
146146
:return: Returns a list of CSS files to be imported.
147147
"""
148+
ret = ['_static/tabs.css']
148149
common_css = '_static/css/online_eprosima_rtd_theme.css'
149150
local_css = '_static/css/eprosima_rtd_theme.css'
150151
if download_css(html_css_dir):
151152
print('Applying common CSS style file: {}'.format(common_css))
152-
return [common_css]
153+
ret.append(common_css)
153154
else:
154155
print('Applying local CSS style file: {}'.format(local_css))
155-
return [local_css]
156+
ret.append(local_css)
157+
158+
return ret
156159

157160

158161
script_path = os.path.abspath(pathlib.Path(__file__).parent.absolute())
@@ -174,8 +177,12 @@ def select_css(html_css_dir):
174177
# ones.
175178
extensions = [
176179
'sphinx.ext.todo',
180+
'sphinx_tabs.tabs'
177181
]
178182

183+
sphinx_tabs_disable_css_loading = False
184+
sphinx_tabs_disable_tab_closing = True
185+
179186
try:
180187
import sphinxcontrib.spelling # noqa: F401
181188
extensions.append('sphinxcontrib.spelling')

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
:numbered: 5
7878
:hidden:
7979

80+
/rst/use_cases/wan_tcp
8081
/rst/use_cases/ros_cloud
8182
/rst/use_cases/repeater
8283

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: v3.0
2+
3+
participants:
4+
5+
- name: DDS_LAN_A
6+
kind: local
7+
8+
- name: Router_Client
9+
kind: wan
10+
connection-addresses:
11+
- ip: 123.123.123.123
12+
port: 45678
13+
transport: tcp
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: v3.0
2+
3+
participants:
4+
5+
- name: DDS_LAN_B
6+
kind: local
7+
domain: 1
8+
9+
- name: Router_Client
10+
kind: wan
11+
listening-addresses:
12+
- ip: 123.123.123.123
13+
port: 45678
14+
transport: tcp
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: v3.0
2+
3+
participants:
4+
5+
- name: DDS_LAN_B
6+
kind: local
7+
8+
- name: Router_Server
9+
kind: wan
10+
listening-addresses:
11+
- ip: 123.123.123.123
12+
port: 45678
13+
transport: tcp
48.2 KB
Loading
401 KB
Loading
488 KB
Loading
481 KB
Loading

0 commit comments

Comments
 (0)