Sync fastapi docs from 50113da1 on 2026-09-11
This commit is contained in:
@@ -1,5 +1,57 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block site_nav %}
|
||||
{% if nav %}
|
||||
{% if page.meta and page.meta.hide %}
|
||||
{% set hidden = "hidden" if "navigation" in page.meta.hide %}
|
||||
{% endif %}
|
||||
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" {{ hidden }}>
|
||||
<div class="md-sidebar__scrollwrap">
|
||||
<div class="md-sidebar__inner">
|
||||
{% include "partials/nav.html" %}
|
||||
{# Zensical has no page.is_homepage; page.url is empty on the landing page. #}
|
||||
{% if not page.url %}
|
||||
{% include "partials/conf-rail.html" %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if "toc.integrate" not in features %}
|
||||
{% if page.meta and page.meta.hide %}
|
||||
{% set hidden = "hidden" if "toc" in page.meta.hide %}
|
||||
{% endif %}
|
||||
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" {{ hidden }}>
|
||||
<div class="md-sidebar__scrollwrap">
|
||||
{% if config.theme.variant != "classic" %}
|
||||
{% set toc = page.toc %}
|
||||
{% set first = toc | first %}
|
||||
{% if first and first.level == 1 %}
|
||||
{% set toc = first.children %}
|
||||
{% endif %}
|
||||
{% if toc %}
|
||||
<input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
|
||||
<div class="md-sidebar-button__wrapper">
|
||||
<label class="md-sidebar-button" for="__toc"></label>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<div class="md-sidebar__inner">
|
||||
{% include "partials/toc.html" %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if not page.url %}
|
||||
{% set conf_rail_mobile = true %}
|
||||
{% include "partials/conf-rail.html" %}
|
||||
{% endif %}
|
||||
{% include "partials/content.html" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block announce %}
|
||||
<div class="announce-wrapper">
|
||||
<div id="announce-left">
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<a class="fastapi-conf-rail{% if conf_rail_mobile | default(false) %} fastapi-conf-rail--mobile{% endif %} no-link-icon" href="https://fastapiconf.com" target="_blank" rel="noopener">
|
||||
<span class="fastapi-conf-rail__eyebrow">FastAPI Conf '26</span>
|
||||
<span class="fastapi-conf-rail__date">October 28, 2026</span>
|
||||
<span class="fastapi-conf-rail__place">Amsterdam, NL</span>
|
||||
<span class="fastapi-conf-rail__summary">All about FastAPI, right from the source.</span>
|
||||
<span class="fastapi-conf-rail__cta">Learn more <span aria-hidden="true">→</span></span>
|
||||
</a>
|
||||
Reference in New Issue
Block a user