docs: API reference remove Prev/Up/Next buttons (#23225)

These do not work anyway. Let's remove them for now for simplicity.
pull/23226/head
Eugene Yurtsev 3 months ago committed by GitHub
parent 61daa16e5d
commit 3ab49c0036
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2,132 +2,129 @@
{%- set url_root = pathto('', 1) %} {%- set url_root = pathto('', 1) %}
{%- if url_root == '#' %}{% set url_root = '' %}{% endif %} {%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
{%- if not embedded and docstitle %} {%- if not embedded and docstitle %}
{%- set titlesuffix = " — "|safe + docstitle|e %} {%- set titlesuffix = " — "|safe + docstitle|e %}
{%- else %} {%- else %}
{%- set titlesuffix = "" %} {%- set titlesuffix = "" %}
{%- endif %} {%- endif %}
{%- set lang_attr = 'en' %} {%- set lang_attr = 'en' %}
<!DOCTYPE html> <!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="{{ lang_attr }}" > <![endif]--> <!--[if IE 8]><html class="no-js lt-ie9" lang="{{ lang_attr }}" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="{{ lang_attr }}" > <!--<![endif]--> <!--[if gt IE 8]><!-->
<html class="no-js" lang="{{ lang_attr }}"> <!--<![endif]-->
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
{{ metatags }} {{ metatags }}
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% block htmltitle %} {% block htmltitle %}
<title>{{ title|striptags|e }}{{ titlesuffix }}</title> <title>{{ title|striptags|e }}{{ titlesuffix }}</title>
{% endblock %} {% endblock %}
<link rel="canonical" href="https://api.python.langchain.com/en/latest/{{pagename}}.html" /> <link rel="canonical"
href="https://api.python.langchain.com/en/latest/{{ pagename }}.html"/>
{% if favicon_url %} {% if favicon_url %}
<link rel="shortcut icon" href="{{ favicon_url|e }}"/> <link rel="shortcut icon" href="{{ favicon_url|e }}"/>
{% endif %} {% endif %}
<link rel="stylesheet" href="{{ pathto('_static/css/vendor/bootstrap.min.css', 1) }}" type="text/css" /> <link rel="stylesheet"
{%- for css in css_files %} href="{{ pathto('_static/css/vendor/bootstrap.min.css', 1) }}"
{%- if css|attr("rel") %} type="text/css"/>
<link rel="{{ css.rel }}" href="{{ pathto(css.filename, 1) }}" type="text/css"{% if css.title is not none %} title="{{ css.title }}"{% endif %} /> {%- for css in css_files %}
{%- else %} {%- if css|attr("rel") %}
<link rel="stylesheet" href="{{ pathto(css, 1) }}" type="text/css" /> <link rel="{{ css.rel }}" href="{{ pathto(css.filename, 1) }}"
{%- endif %} type="text/css"{% if css.title is not none %}
{%- endfor %} title="{{ css.title }}"{% endif %} />
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" /> {%- else %}
<script id="documentation_options" data-url_root="{{ pathto('', 1) }}" src="{{ pathto('_static/documentation_options.js', 1) }}"></script> <link rel="stylesheet" href="{{ pathto(css, 1) }}" type="text/css"/>
<script src="{{ pathto('_static/jquery.js', 1) }}"></script> {%- endif %}
{%- block extrahead %} {% endblock %} {%- endfor %}
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css"/>
<script id="documentation_options" data-url_root="{{ pathto('', 1) }}"
src="{{ pathto('_static/documentation_options.js', 1) }}"></script>
<script src="{{ pathto('_static/jquery.js', 1) }}"></script>
{%- block extrahead %} {% endblock %}
</head> </head>
<body> <body>
{% include "nav.html" %} {% include "nav.html" %}
{%- block content %} {%- block content %}
<div class="d-flex" id="sk-doc-wrapper"> <div class="d-flex" id="sk-doc-wrapper">
<input type="checkbox" name="sk-toggle-checkbox" id="sk-toggle-checkbox"> <input type="checkbox" name="sk-toggle-checkbox" id="sk-toggle-checkbox">
<label id="sk-sidemenu-toggle" class="sk-btn-toggle-toc btn sk-btn-primary" for="sk-toggle-checkbox">Toggle Menu</label> <label id="sk-sidemenu-toggle" class="sk-btn-toggle-toc btn sk-btn-primary"
<div id="sk-sidebar-wrapper" class="border-right"> for="sk-toggle-checkbox">Toggle Menu</label>
<div class="sk-sidebar-toc-wrapper"> <div id="sk-sidebar-wrapper" class="border-right">
<div class="btn-group w-100 mb-2" role="group" aria-label="rellinks"> <div class="sk-sidebar-toc-wrapper">
{%- if prev %} {%- if meta and meta['parenttoc']|tobool %}
<a href="{{ prev.link|e }}" role="button" class="btn sk-btn-rellink py-1" sk-rellink-tooltip="{{ prev.title|striptags }}">Prev</a> <div class="sk-sidebar-toc">
{%- else %} {% set nav = get_nav_object(maxdepth=3, collapse=True, numbered=True) %}
<a href="#" role="button" class="btn sk-btn-rellink py-1 disabled"">Prev</a> <ul>
{%- endif %} {% for main_nav_item in nav %}
{%- if parents -%} {% if main_nav_item.active %}
<a href="{{ parents[-1].link|e }}" role="button" class="btn sk-btn-rellink py-1" sk-rellink-tooltip="{{ parents[-1].title|striptags }}">Up</a> <li>
{%- else %} <a href="{{ main_nav_item.url }}"
<a href="#" role="button" class="btn sk-btn-rellink disabled py-1">Up</a> class="sk-toc-active">{{ main_nav_item.title }}</a>
{%- endif %} </li>
{%- if next %} <ul>
<a href="{{ next.link|e }}" role="button" class="btn sk-btn-rellink py-1" sk-rellink-tooltip="{{ next.title|striptags }}">Next</a> {% for nav_item in main_nav_item.children %}
{%- else %} <li>
<a href="#" role="button" class="btn sk-btn-rellink py-1 disabled"">Next</a> <a href="{{ nav_item.url }}"
{%- endif %} class="{% if nav_item.active %}sk-toc-active{% endif %}">{{ nav_item.title }}</a>
</div> {% if nav_item.children %}
{%- if meta and meta['parenttoc']|tobool %} <ul>
<div class="sk-sidebar-toc"> {% for inner_child in nav_item.children %}
{% set nav = get_nav_object(maxdepth=3, collapse=True, numbered=True) %} <li class="sk-toctree-l3">
<ul> <a href="{{ inner_child.url }}">{{ inner_child.title }}</a>
{% for main_nav_item in nav %} </li>
{% if main_nav_item.active %} {% endfor %}
<li> </ul>
<a href="{{ main_nav_item.url }}" class="sk-toc-active">{{ main_nav_item.title }}</a> {% endif %}
</li> </li>
<ul> {% endfor %}
{% for nav_item in main_nav_item.children %} </ul>
<li> {% endif %}
<a href="{{ nav_item.url }}" class="{% if nav_item.active %}sk-toc-active{% endif %}">{{ nav_item.title }}</a> {% endfor %}
{% if nav_item.children %} </ul>
<ul> </div>
{% for inner_child in nav_item.children %} {%- elif meta and meta['globalsidebartoc']|tobool %}
<li class="sk-toctree-l3"> <div class="sk-sidebar-toc sk-sidebar-global-toc">
<a href="{{ inner_child.url }}">{{ inner_child.title }}</a> {{ toctree(maxdepth=2, titles_only=True) }}
</li> </div>
{% endfor %} {%- else %}
</ul> <div class="sk-sidebar-toc">
{% endif %} {{ toc }}
</li> </div>
{% endfor %} {%- endif %}
</ul>
{% endif %}
{% endfor %}
</ul>
</div> </div>
{%- elif meta and meta['globalsidebartoc']|tobool %} </div>
<div class="sk-sidebar-toc sk-sidebar-global-toc"> <div id="sk-page-content-wrapper">
{{ toctree(maxdepth=2, titles_only=True) }} <div class="sk-page-content container-fluid body px-md-3" role="main">
{% block body %}{% endblock %}
</div> </div>
{%- else %} <div class="container">
<div class="sk-sidebar-toc"> <footer class="sk-content-footer">
{{ toc }} {%- if pagename != 'index' %}
{%- if show_copyright %}
{%- if hasdoc('copyright') %}
{% trans path=pathto('copyright'), copyright=copyright|e %}
&copy; {{ copyright }}.{% endtrans %}
{%- else %}
{% trans copyright=copyright|e %}&copy; {{ 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 %}
<a href="{{ pathto('_sources/' + sourcename, true)|e }}"
rel="nofollow">{{ _('Show this page source') }}</a>
{%- endif %}
{%- endif %}
</footer>
</div> </div>
{%- endif %} </div>
</div>
</div>
<div id="sk-page-content-wrapper">
<div class="sk-page-content container-fluid body px-md-3" role="main">
{% block body %}{% endblock %}
</div>
<div class="container">
<footer class="sk-content-footer">
{%- if pagename != 'index' %}
{%- if show_copyright %}
{%- if hasdoc('copyright') %}
{% trans path=pathto('copyright'), copyright=copyright|e %}&copy; {{ copyright }}.{% endtrans %}
{%- else %}
{% trans copyright=copyright|e %}&copy; {{ 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 %}
<a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow">{{ _('Show this page source') }}</a>
{%- endif %}
{%- endif %}
</footer>
</div> </div>
</div>
</div>
{%- endblock %} {%- endblock %}
<script src="{{ pathto('_static/js/vendor/bootstrap.min.js', 1) }}"></script> <script src="{{ pathto('_static/js/vendor/bootstrap.min.js', 1) }}"></script>
{% include "javascript.html" %} {% include "javascript.html" %}

Loading…
Cancel
Save