diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css index 6f26621ed96..ee43e722512 100644 --- a/docs/_static/css/custom.css +++ b/docs/_static/css/custom.css @@ -9,3 +9,15 @@ #rtd-stickybox-container { text-align: center; } + +.wy-menu.wy-menu-vertical a.reference.external::after { + /* \00a0 = no break space */ + content: "\00a0\f08e"; + font-family: FontAwesome; + display: inline-block; + font-style: normal; + font-variant: normal; + text-rendering: auto; + -webkit-font-smoothing: antialiased; + +} \ No newline at end of file diff --git a/docs/_static/js/expand_tabs.js b/docs/_static/js/expand_tabs.js index 8f874455d16..38e1dd12fde 100644 --- a/docs/_static/js/expand_tabs.js +++ b/docs/_static/js/expand_tabs.js @@ -21,17 +21,19 @@ $( document ).ready(function() { // Uses a hash referencing a Sphinx label from the URL page#sphinx-label var hash = window.location.hash.substr(1); - hash = hash.replace(/[^0-9a-z\-_]/gi, ''); - // If the hash is inside a tab panel - var tab_with_reference = $(".sphinx-tabs-panel #" + hash).parents(".sphinx-tabs-panel"); + if (hash) { + hash = hash.replace(/[^0-9a-z\-_]/gi, ''); + // If the hash is inside a tab panel + var tab_with_reference = $(".sphinx-tabs-panel #" + hash).parents(".sphinx-tabs-panel"); - if (tab_with_reference.length > 0) { - // Use the panel's ID to guess the tab's ID - var panel_id = tab_with_reference.first().attr("id"); - var tab_id = panel_id.replace("panel-", "tab-"); - // Invoke the tab buttons click() method to display it - $("button#" + tab_id).click(); - // Scroll the tab widget into view - $('html, body').animate({ scrollTop: tab_with_reference.parents(".sphinx-tabs").first().offset().top}, 1000); + if (tab_with_reference.length > 0) { + // Use the panel's ID to guess the tab's ID + var panel_id = tab_with_reference.first().attr("id"); + var tab_id = panel_id.replace("panel-", "tab-"); + // Invoke the tab buttons click() method to display it + $("button#" + tab_id).click(); + // Scroll the tab widget into view + $('html, body').animate({ scrollTop: tab_with_reference.parents(".sphinx-tabs").first().offset().top}, 1000); + } } }); diff --git a/docs/user/index.rst b/docs/user/index.rst index 385d3059aee..833d53b2b54 100644 --- a/docs/user/index.rst +++ b/docs/user/index.rst @@ -4,7 +4,7 @@ Read the Docs: Documentation Simplified .. toctree:: :maxdepth: 2 :hidden: - :caption: Tutorials 🚀 + :caption: 🚀 Tutorials /tutorial/index /intro/getting-started-with-sphinx @@ -15,7 +15,7 @@ Read the Docs: Documentation Simplified .. toctree:: :maxdepth: 2 :hidden: - :caption: Explanation 💡 + :caption: 💡 Explanation /choosing-a-site /integrations @@ -27,7 +27,7 @@ Read the Docs: Documentation Simplified .. toctree:: :maxdepth: 2 :hidden: - :caption: How-to guides 🪄 + :caption: 🪄 How-to guides /guides/authors /guides/administrators @@ -37,7 +37,7 @@ Read the Docs: Documentation Simplified .. toctree:: :maxdepth: 2 :hidden: - :caption: Reference 📚 + :caption: 📚 Reference /reference/features /config-file/index @@ -48,7 +48,7 @@ Read the Docs: Documentation Simplified /api/index /changelog /about/index - Developer Documentation 🔗 + Developer Documentation .. meta:: :description lang=en: Automate building, versioning, and hosting of your technical documentation continuously on Read the Docs.