From 3ab49c0036ae939686f989a8db5391e18ac6d1d4 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Thu, 20 Jun 2024 12:15:45 -0400 Subject: [PATCH] docs: API reference remove Prev/Up/Next buttons (#23225) These do not work anyway. Let's remove them for now for simplicity. --- .../themes/scikit-learn-modern/layout.html | 213 +++++++++--------- 1 file changed, 105 insertions(+), 108 deletions(-) diff --git a/docs/api_reference/themes/scikit-learn-modern/layout.html b/docs/api_reference/themes/scikit-learn-modern/layout.html index 71dbd0ada7..e0214642d3 100644 --- a/docs/api_reference/themes/scikit-learn-modern/layout.html +++ b/docs/api_reference/themes/scikit-learn-modern/layout.html @@ -2,132 +2,129 @@ {%- set url_root = pathto('', 1) %} {%- if url_root == '#' %}{% set url_root = '' %}{% endif %} {%- if not embedded and docstitle %} - {%- set titlesuffix = " — "|safe + docstitle|e %} + {%- set titlesuffix = " — "|safe + docstitle|e %} {%- else %} - {%- set titlesuffix = "" %} + {%- set titlesuffix = "" %} {%- endif %} {%- set lang_attr = 'en' %} - + + - - {{ metatags }} - + + {{ metatags }} + - {% block htmltitle %} - {{ title|striptags|e }}{{ titlesuffix }} - {% endblock %} - + {% block htmltitle %} + {{ title|striptags|e }}{{ titlesuffix }} + {% endblock %} + - {% if favicon_url %} - - {% endif %} + {% if favicon_url %} + + {% endif %} - - {%- for css in css_files %} - {%- if css|attr("rel") %} - - {%- else %} - - {%- endif %} - {%- endfor %} - - - -{%- block extrahead %} {% endblock %} + + {%- for css in css_files %} + {%- if css|attr("rel") %} + + {%- else %} + + {%- endif %} + {%- endfor %} + + + + {%- block extrahead %} {% endblock %} {% include "nav.html" %} {%- block content %} -
- - -
-
-
- {%- if prev %} - Prev - {%- else %} - Prev - {%- endif %} - {%- if parents -%} - Up - {%- else %} - Up - {%- endif %} - {%- if next %} - Next - {%- else %} - Next - {%- endif %} -
- {%- if meta and meta['parenttoc']|tobool %} -
- {% set nav = get_nav_object(maxdepth=3, collapse=True, numbered=True) %} -
    - {% for main_nav_item in nav %} - {% if main_nav_item.active %} -
  • - {{ main_nav_item.title }} -
  • -
      - {% for nav_item in main_nav_item.children %} -
    • - {{ nav_item.title }} - {% if nav_item.children %} - - {% endif %} -
    • - {% endfor %} -
    - {% endif %} - {% endfor %} -
+
+ + +
+
+ {%- if meta and meta['parenttoc']|tobool %} +
+ {% set nav = get_nav_object(maxdepth=3, collapse=True, numbered=True) %} +
    + {% for main_nav_item in nav %} + {% if main_nav_item.active %} +
  • + {{ main_nav_item.title }} +
  • +
      + {% for nav_item in main_nav_item.children %} +
    • + {{ nav_item.title }} + {% if nav_item.children %} + + {% endif %} +
    • + {% endfor %} +
    + {% endif %} + {% endfor %} +
+
+ {%- elif meta and meta['globalsidebartoc']|tobool %} +
+ {{ toctree(maxdepth=2, titles_only=True) }} +
+ {%- else %} +
+ {{ toc }} +
+ {%- endif %}
- {%- elif meta and meta['globalsidebartoc']|tobool %} -
- {{ toctree(maxdepth=2, titles_only=True) }} +
+
+
+ {% block body %}{% endblock %}
- {%- else %} -
- {{ toc }} +
+
+ {%- if pagename != 'index' %} + {%- if show_copyright %} + {%- if hasdoc('copyright') %} + {% trans path=pathto('copyright'), copyright=copyright|e %} + © {{ copyright }}.{% endtrans %} + {%- else %} + {% trans copyright=copyright|e %}© {{ copyright }} + .{% endtrans %} + {%- endif %} + {%- endif %} + {%- if last_updated %} + {% trans last_updated=last_updated|e %}Last updated + on {{ last_updated }}.{% endtrans %} + {%- endif %} + {%- if show_source and has_source and sourcename %} + {{ _('Show this page source') }} + {%- endif %} + {%- endif %} +
- {%- endif %} -
-
-
-
- {% block body %}{% endblock %} -
-
-
- {%- if pagename != 'index' %} - {%- if show_copyright %} - {%- if hasdoc('copyright') %} - {% trans path=pathto('copyright'), copyright=copyright|e %}© {{ copyright }}.{% endtrans %} - {%- else %} - {% trans copyright=copyright|e %}© {{ copyright }}.{% endtrans %} - {%- endif %} - {%- endif %} - {%- if last_updated %} - {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %} - {%- endif %} - {%- if show_source and has_source and sourcename %} - {{ _('Show this page source') }} - {%- endif %} - {%- endif %} -
+
-
-
{%- endblock %} {% include "javascript.html" %}