From 8051b9b228a0794c154c2f4c06ecb6620942db0d Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Mon, 24 Jun 2024 15:16:47 +0100 Subject: [PATCH 01/17] add custom js to remove/add active class Signed-off-by: Huong Nguyen --- docs/source/_static/custom.js | 25 +++++++++++++++++++ docs/source/conf.py | 4 +++ .../theme/kedro-sphinx-theme/layout.html | 6 ++--- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 docs/source/_static/custom.js diff --git a/docs/source/_static/custom.js b/docs/source/_static/custom.js new file mode 100644 index 0000000..d0cd5d7 --- /dev/null +++ b/docs/source/_static/custom.js @@ -0,0 +1,25 @@ +document.addEventListener('DOMContentLoaded', function() { + // Select all navigation links within the .wy-main-nav container + var navLinks = document.querySelectorAll('.wy-main-nav .wy-main-nav-link'); + + // Function to remove 'active' class from all links + function removeActiveClass() { + navLinks.forEach(function(link) { + link.classList.remove('active'); + }); + } + + // Add click event listener to each link + navLinks.forEach(function(link) { + link.addEventListener('click', function(event) { + // Prevent the default link action + event.preventDefault(); + + // Remove 'active' class from all links + removeActiveClass(); + + // Add 'active' class to the clicked link + event.target.classList.add('active'); + }); + }); +}); \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index b1c6238..e111a42 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -21,6 +21,10 @@ "sphinx_copybutton", ] +html_js_files = [ + "js/custom.js", +] + templates_path = ["_templates"] exclude_patterns = [ diff --git a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html index 40a7109..5ea87b8 100644 --- a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html +++ b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html @@ -13,9 +13,9 @@ {%- include "searchbox.html" %} From 80b29344fad5a5a6ee4da7975e881cebf48e67af Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Mon, 24 Jun 2024 15:18:08 +0100 Subject: [PATCH 02/17] add favicon to the conf.py Signed-off-by: Huong Nguyen --- docs/source/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/source/conf.py b/docs/source/conf.py index e111a42..eb71187 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -21,6 +21,10 @@ "sphinx_copybutton", ] +favicons = [ + "https://kedro.org/images/favicon.ico", +] + html_js_files = [ "js/custom.js", ] From 08d5dd43c1bbdb22d112f0c3c019bdf100012eb5 Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 25 Jun 2024 09:47:12 +0100 Subject: [PATCH 03/17] update path for custom.js Signed-off-by: Huong Nguyen --- docs/source/conf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index eb71187..7785b31 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -25,8 +25,12 @@ "https://kedro.org/images/favicon.ico", ] +# Add the relative path from your conf.py file to the assets directory to html_static_path +html_static_path = ['_static'] + +# Include custom.js in the HTML output html_js_files = [ - "js/custom.js", + 'custom.js', ] templates_path = ["_templates"] From 9c25649f8b8e5d8570574b1b2721d6c5415d222b Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 25 Jun 2024 10:06:32 +0100 Subject: [PATCH 04/17] remove custom js Signed-off-by: Huong Nguyen --- docs/source/_static/custom.js | 25 ------------------- docs/source/conf.py | 7 ------ .../theme/kedro-sphinx-theme/layout.html | 24 ++++++++++++++++++ 3 files changed, 24 insertions(+), 32 deletions(-) delete mode 100644 docs/source/_static/custom.js diff --git a/docs/source/_static/custom.js b/docs/source/_static/custom.js deleted file mode 100644 index d0cd5d7..0000000 --- a/docs/source/_static/custom.js +++ /dev/null @@ -1,25 +0,0 @@ -document.addEventListener('DOMContentLoaded', function() { - // Select all navigation links within the .wy-main-nav container - var navLinks = document.querySelectorAll('.wy-main-nav .wy-main-nav-link'); - - // Function to remove 'active' class from all links - function removeActiveClass() { - navLinks.forEach(function(link) { - link.classList.remove('active'); - }); - } - - // Add click event listener to each link - navLinks.forEach(function(link) { - link.addEventListener('click', function(event) { - // Prevent the default link action - event.preventDefault(); - - // Remove 'active' class from all links - removeActiveClass(); - - // Add 'active' class to the clicked link - event.target.classList.add('active'); - }); - }); -}); \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 7785b31..0b5d3c9 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -25,13 +25,6 @@ "https://kedro.org/images/favicon.ico", ] -# Add the relative path from your conf.py file to the assets directory to html_static_path -html_static_path = ['_static'] - -# Include custom.js in the HTML output -html_js_files = [ - 'custom.js', -] templates_path = ["_templates"] diff --git a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html index 5ea87b8..3e41ade 100644 --- a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html +++ b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html @@ -65,6 +65,30 @@ openBtn.dataset.toggle = 'wy-nav-top'; openBtn.classList.add('wy-nav-top-open'); document.querySelector('.wy-nav-top').prepend(openBtn); + + // Select all navigation links within the .wy-main-nav container + var navLinks = document.querySelectorAll('.wy-main-nav .wy-main-nav-link'); + + // Function to remove 'active' class from all links + function removeActiveClass() { + navLinks.forEach(function(link) { + link.classList.remove('active'); + }); + } + + // Add click event listener to each link + navLinks.forEach(function(link) { + link.addEventListener('click', function(event) { + // Prevent the default link action + event.preventDefault(); + + // Remove 'active' class from all links + removeActiveClass(); + + // Add 'active' class to the clicked link + event.target.classList.add('active'); + }); + }); }); {% endblock %} From 768e1e9ffaeee1be6322b675bdd35eb4ae0b6382 Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 25 Jun 2024 10:18:24 +0100 Subject: [PATCH 05/17] remove prevent default the link Signed-off-by: Huong Nguyen --- src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html index 3e41ade..d45fa22 100644 --- a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html +++ b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html @@ -79,9 +79,6 @@ // Add click event listener to each link navLinks.forEach(function(link) { link.addEventListener('click', function(event) { - // Prevent the default link action - event.preventDefault(); - // Remove 'active' class from all links removeActiveClass(); From 3623873e32ea33d7ff11508f3cc55fd5cf4e9c42 Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 25 Jun 2024 10:34:04 +0100 Subject: [PATCH 06/17] Add Active Navigation Class Based on URL Signed-off-by: Huong Nguyen --- .../theme/kedro-sphinx-theme/layout.html | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html index d45fa22..7ae2524 100644 --- a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html +++ b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html @@ -66,25 +66,19 @@ openBtn.classList.add('wy-nav-top-open'); document.querySelector('.wy-nav-top').prepend(openBtn); + // Get the current URL + const currentUrl = window.location.href; + // Select all navigation links within the .wy-main-nav container var navLinks = document.querySelectorAll('.wy-main-nav .wy-main-nav-link'); - // Function to remove 'active' class from all links - function removeActiveClass() { - navLinks.forEach(function(link) { - link.classList.remove('active'); - }); - } - - // Add click event listener to each link + // Iterate over each link navLinks.forEach(function(link) { - link.addEventListener('click', function(event) { - // Remove 'active' class from all links - removeActiveClass(); - - // Add 'active' class to the clicked link - event.target.classList.add('active'); - }); + // Check if the link's href matches the current URL + if (link.href === currentUrl) { + // Add the 'active' class to the matching link + link.classList.add('active'); + } }); }); From d4213a5f143babd6efe94d1df62df5097d65a0e5 Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 25 Jun 2024 10:41:32 +0100 Subject: [PATCH 07/17] revert Signed-off-by: Huong Nguyen --- .../theme/kedro-sphinx-theme/layout.html | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html index 7ae2524..a04d4c6 100644 --- a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html +++ b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html @@ -66,19 +66,29 @@ openBtn.classList.add('wy-nav-top-open'); document.querySelector('.wy-nav-top').prepend(openBtn); - // Get the current URL - const currentUrl = window.location.href; // Select all navigation links within the .wy-main-nav container var navLinks = document.querySelectorAll('.wy-main-nav .wy-main-nav-link'); - // Iterate over each link + // Function to remove 'active' class from all links + function removeActiveClass() { + navLinks.forEach(function(link) { + link.classList.remove('active'); + }); + } + + // Add click event listener to each link navLinks.forEach(function(link) { - // Check if the link's href matches the current URL - if (link.href === currentUrl) { - // Add the 'active' class to the matching link - link.classList.add('active'); - } + link.addEventListener('click', function(event) { + // Prevent the default link action + event.preventDefault(); + + // Remove 'active' class from all links + removeActiveClass(); + + // Add 'active' class to the clicked link + event.target.classList.add('active'); + }); }); }); From 7050441c95019e59b637f9254a17c7050100481a Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 25 Jun 2024 10:48:28 +0100 Subject: [PATCH 08/17] try navigate to href manually Signed-off-by: Huong Nguyen --- .../theme/kedro-sphinx-theme/layout.html | 26 ++++++------------- 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html index a04d4c6..7ae2524 100644 --- a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html +++ b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html @@ -66,29 +66,19 @@ openBtn.classList.add('wy-nav-top-open'); document.querySelector('.wy-nav-top').prepend(openBtn); + // Get the current URL + const currentUrl = window.location.href; // Select all navigation links within the .wy-main-nav container var navLinks = document.querySelectorAll('.wy-main-nav .wy-main-nav-link'); - // Function to remove 'active' class from all links - function removeActiveClass() { - navLinks.forEach(function(link) { - link.classList.remove('active'); - }); - } - - // Add click event listener to each link + // Iterate over each link navLinks.forEach(function(link) { - link.addEventListener('click', function(event) { - // Prevent the default link action - event.preventDefault(); - - // Remove 'active' class from all links - removeActiveClass(); - - // Add 'active' class to the clicked link - event.target.classList.add('active'); - }); + // Check if the link's href matches the current URL + if (link.href === currentUrl) { + // Add the 'active' class to the matching link + link.classList.add('active'); + } }); }); From f7269fe1d1b1c3a75a44f978e202ca2f01c06c6f Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 25 Jun 2024 11:03:42 +0100 Subject: [PATCH 09/17] try navigate to href manually Signed-off-by: Huong Nguyen --- .../theme/kedro-sphinx-theme/layout.html | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html index 7ae2524..a70c9f2 100644 --- a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html +++ b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html @@ -72,13 +72,20 @@ // Select all navigation links within the .wy-main-nav container var navLinks = document.querySelectorAll('.wy-main-nav .wy-main-nav-link'); - // Iterate over each link navLinks.forEach(function(link) { - // Check if the link's href matches the current URL - if (link.href === currentUrl) { - // Add the 'active' class to the matching link - link.classList.add('active'); - } + link.addEventListener('click', function(event) { + // Prevent the default link action + event.preventDefault(); + + // Remove 'active' class from all links + removeActiveClass(); + + // Add 'active' class to the clicked link + event.target.classList.add('active'); + + // Manually navigate to the link's href + window.location.href = event.target.getAttribute('href'); + }); }); }); From cc6b57e3c103d9e00d58d0a242fcf4024a147a18 Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 25 Jun 2024 12:36:03 +0100 Subject: [PATCH 10/17] remove manually update Signed-off-by: Huong Nguyen --- src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html index a70c9f2..d1f8ce1 100644 --- a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html +++ b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html @@ -82,9 +82,6 @@ // Add 'active' class to the clicked link event.target.classList.add('active'); - - // Manually navigate to the link's href - window.location.href = event.target.getAttribute('href'); }); }); }); From fe41c7706e351f74ca8c0ffb7f461f6986c995da Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 25 Jun 2024 13:41:50 +0100 Subject: [PATCH 11/17] revert to working version Signed-off-by: Huong Nguyen --- .../theme/kedro-sphinx-theme/layout.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html index d1f8ce1..3e41ade 100644 --- a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html +++ b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html @@ -66,12 +66,17 @@ openBtn.classList.add('wy-nav-top-open'); document.querySelector('.wy-nav-top').prepend(openBtn); - // Get the current URL - const currentUrl = window.location.href; - // Select all navigation links within the .wy-main-nav container var navLinks = document.querySelectorAll('.wy-main-nav .wy-main-nav-link'); + // Function to remove 'active' class from all links + function removeActiveClass() { + navLinks.forEach(function(link) { + link.classList.remove('active'); + }); + } + + // Add click event listener to each link navLinks.forEach(function(link) { link.addEventListener('click', function(event) { // Prevent the default link action From 390fc02438ce16c45b162a4dcd1d9c5df89eb6b2 Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 25 Jun 2024 13:48:38 +0100 Subject: [PATCH 12/17] Get the href attribute of the clicked link Signed-off-by: Huong Nguyen --- .../theme/kedro-sphinx-theme/layout.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html index 3e41ade..90a85df 100644 --- a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html +++ b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html @@ -87,6 +87,13 @@ // Add 'active' class to the clicked link event.target.classList.add('active'); + + + // Get the href attribute of the clicked link + var href = event.target.getAttribute('href'); + console.log(href); // This will log the href to the console + + window.location.href = href; }); }); }); From adfaf29c85da369efe7c2d56018099b1e8100168 Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 25 Jun 2024 13:58:44 +0100 Subject: [PATCH 13/17] log current path Signed-off-by: Huong Nguyen --- .../theme/kedro-sphinx-theme/layout.html | 37 +++++++++++++------ 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html index 90a85df..59ba37b 100644 --- a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html +++ b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html @@ -78,22 +78,37 @@ // Add click event listener to each link navLinks.forEach(function(link) { - link.addEventListener('click', function(event) { - // Prevent the default link action - event.preventDefault(); + // link.addEventListener('click', function(event) { + // // Prevent the default link action + // event.preventDefault(); - // Remove 'active' class from all links - removeActiveClass(); + // // Remove 'active' class from all links + // removeActiveClass(); - // Add 'active' class to the clicked link - event.target.classList.add('active'); + // // Add 'active' class to the clicked link + // event.target.classList.add('active'); - // Get the href attribute of the clicked link - var href = event.target.getAttribute('href'); - console.log(href); // This will log the href to the console + // // Get the href attribute of the clicked link + // var href = event.target.getAttribute('href'); + // console.log(href); // This will log the href to the console - window.location.href = href; + // window.location.href = href; + // }); + + + // Add active class based on current URL + var currentPath = window.location.pathname; + console.log(currentPath, 'currentPath') + + navLinks.forEach(function(link) { + if (link.getAttribute('href') === currentPath) { + console.log("link.getAttribute('href')", link.getAttribute('href')); + // Remove 'active' class from all links first to ensure only one active link + removeActiveClass(); + // Add 'active' class to the link that matches current URL + link.classList.add('active'); + } }); }); }); From f4243095b499fc577061a5b443c509ec3b71d1f3 Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 25 Jun 2024 14:05:55 +0100 Subject: [PATCH 14/17] check if includes kedro-viz Signed-off-by: Huong Nguyen --- src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html index 59ba37b..daef943 100644 --- a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html +++ b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html @@ -100,9 +100,9 @@ // Add active class based on current URL var currentPath = window.location.pathname; console.log(currentPath, 'currentPath') - + navLinks.forEach(function(link) { - if (link.getAttribute('href') === currentPath) { + if (window.location.pathname.includes("kedro-viz")) { console.log("link.getAttribute('href')", link.getAttribute('href')); // Remove 'active' class from all links first to ensure only one active link removeActiveClass(); From 8dcf4bdaf681dc2394c79af75fc365ba7f9c21eb Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 25 Jun 2024 14:32:03 +0100 Subject: [PATCH 15/17] test new way Signed-off-by: Huong Nguyen --- .../theme/kedro-sphinx-theme/layout.html | 52 +++++++------------ 1 file changed, 19 insertions(+), 33 deletions(-) diff --git a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html index daef943..a836e60 100644 --- a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html +++ b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html @@ -68,6 +68,10 @@ // Select all navigation links within the .wy-main-nav container var navLinks = document.querySelectorAll('.wy-main-nav .wy-main-nav-link'); + + // Define paths to check against the current URL + var paths = ['kedro-viz', 'kedro-datasets']; + var currentPath = window.location.pathname; // Function to remove 'active' class from all links function removeActiveClass() { @@ -76,41 +80,23 @@ }); } - // Add click event listener to each link - navLinks.forEach(function(link) { - // link.addEventListener('click', function(event) { - // // Prevent the default link action - // event.preventDefault(); - // // Remove 'active' class from all links - // removeActiveClass(); - - // // Add 'active' class to the clicked link - // event.target.classList.add('active'); - - - // // Get the href attribute of the clicked link - // var href = event.target.getAttribute('href'); - // console.log(href); // This will log the href to the console - - // window.location.href = href; - // }); - - - // Add active class based on current URL - var currentPath = window.location.pathname; - console.log(currentPath, 'currentPath') - - navLinks.forEach(function(link) { - if (window.location.pathname.includes("kedro-viz")) { - console.log("link.getAttribute('href')", link.getAttribute('href')); - // Remove 'active' class from all links first to ensure only one active link - removeActiveClass(); - // Add 'active' class to the link that matches current URL - link.classList.add('active'); - } - }); + // Check each path for a match with the current URL + paths.forEach(function(path) { + if (currentPath.includes(path)) { + navLinks.forEach(function(link) { + if (link.getAttribute('href').includes(path)) { + removeActiveClass(); // Ensure only one link is active + link.classList.add('active'); // Add 'active' class to the matching link + } + }); + } }); }); {% endblock %} + + +https://docs.kedro.org/en/stable/ +https://docs.kedro.org/projects/kedro-viz/en/stable/ +https://docs.kedro.org/projects/kedro-datasets/en/stable/ \ No newline at end of file From d3e43f3b622ff244fdd8804dec73c7c6a7e6f860 Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 25 Jun 2024 14:46:43 +0100 Subject: [PATCH 16/17] include favicon in html template Signed-off-by: Huong Nguyen --- src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html index a836e60..8c3cb8d 100644 --- a/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html +++ b/src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html @@ -24,6 +24,8 @@ {% endblock %} {%- block extrahead %} +{{ super() }} +