From 982e98bad469460bb4bb728183dfab53fa967829 Mon Sep 17 00:00:00 2001 From: "Masson, Lola" Date: Wed, 15 Dec 2021 15:49:56 +0100 Subject: [PATCH 1/5] Add ROS1 and 2 to index --- sphinx-doc/source/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sphinx-doc/source/index.md b/sphinx-doc/source/index.md index 678da5d59..cb744e6f0 100644 --- a/sphinx-doc/source/index.md +++ b/sphinx-doc/source/index.md @@ -5,6 +5,8 @@ Welcome to the O3R's documentation! :::{toctree} O3R ifm3d library +ROS +ROS2 ::: From 55eb08f0c1cc21f74d50a66dc61deff5e9e53c39 Mon Sep 17 00:00:00 2001 From: Mike Berry <79332589+mikedb66@users.noreply.github.com> Date: Mon, 28 Feb 2022 16:12:35 -0500 Subject: [PATCH 2/5] Update custom.css --- sphinx-doc/source/_static/custom.css | 34 +++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/sphinx-doc/source/_static/custom.css b/sphinx-doc/source/_static/custom.css index a8a61f5c7..71322ce14 100644 --- a/sphinx-doc/source/_static/custom.css +++ b/sphinx-doc/source/_static/custom.css @@ -1,3 +1,35 @@ +body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; +} + +a { + text-decoration: none; + color: #f06700; +} + +a:hover { + color: #46a3ba; + text-decoration: underline; +} + +ul ul { + display: none; +} + +ul .toctree-l1 { + margin: 0; + padding: 0; +} + +ul .toctree-l1 a { + padding: 2px 15px; + display: block; +} + +ul li:first-child { + border: none; +} + .wy-side-nav-search { background-color: #ff6e00; -} \ No newline at end of file +} From 99d703db43c9b658f105c87aa1ad51e53bffeca6 Mon Sep 17 00:00:00 2001 From: Mike Berry <79332589+mikedb66@users.noreply.github.com> Date: Mon, 28 Feb 2022 16:29:54 -0500 Subject: [PATCH 3/5] Update conf.py --- sphinx-doc/source/conf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sphinx-doc/source/conf.py b/sphinx-doc/source/conf.py index e36743754..aad5792ad 100644 --- a/sphinx-doc/source/conf.py +++ b/sphinx-doc/source/conf.py @@ -82,7 +82,10 @@ html_css_files = [ 'custom.css', ] +html_js_files = [ + 'ifm3d.js', +] myst_enable_extensions = [ "colon_fence" -] \ No newline at end of file +] From ce6300c14c6c22e206a5b0ecb33deefbc07e0c0b Mon Sep 17 00:00:00 2001 From: Mike Berry <79332589+mikedb66@users.noreply.github.com> Date: Mon, 28 Feb 2022 16:30:47 -0500 Subject: [PATCH 4/5] Add files via upload --- sphinx-doc/source/_static/ifm3d.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sphinx-doc/source/_static/ifm3d.js diff --git a/sphinx-doc/source/_static/ifm3d.js b/sphinx-doc/source/_static/ifm3d.js new file mode 100644 index 000000000..25f2c2e96 --- /dev/null +++ b/sphinx-doc/source/_static/ifm3d.js @@ -0,0 +1,12 @@ +$(function() { + $('ul li a').click(function(e) { + + if ($(this).siblings().length > 0) { + e.preventDefault(); + $('ul ul').hide(); + $(this).parents('ul').show(); + $(this).next('ul').toggle(); + } + console.log($(this).siblings().length); + }); +}); \ No newline at end of file From 918db2164d40fe02a1115c5b21ce16d332d8ecba Mon Sep 17 00:00:00 2001 From: Mike Berry <79332589+mikedb66@users.noreply.github.com> Date: Wed, 2 Mar 2022 12:40:21 -0500 Subject: [PATCH 5/5] Update custom.css --- sphinx-doc/source/_static/custom.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx-doc/source/_static/custom.css b/sphinx-doc/source/_static/custom.css index 71322ce14..42c9b6954 100644 --- a/sphinx-doc/source/_static/custom.css +++ b/sphinx-doc/source/_static/custom.css @@ -17,7 +17,7 @@ ul ul { } ul .toctree-l1 { - margin: 0; + margin: 25px; padding: 0; }