From ad24bc870f9c39b0041808b6731f5f79154ddd32 Mon Sep 17 00:00:00 2001 From: Alejandra <90076947+alejsdev@users.noreply.github.com> Date: Fri, 14 Aug 2026 14:26:39 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Remove=20conf=20section=20?= =?UTF-8?q?and=20add=20event=20banner=20(#16193)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 -- docs/en/docs/css/custom.css | 72 +++++++++++++++++++++++ docs/en/docs/index.md | 6 -- docs/en/overrides/main.html | 44 ++++++++++++++ docs/en/overrides/partials/conf-rail.html | 7 +++ 5 files changed, 123 insertions(+), 12 deletions(-) create mode 100644 docs/en/overrides/partials/conf-rail.html diff --git a/README.md b/README.md index 6c3d17917f..bd7e9e96b0 100644 --- a/README.md +++ b/README.md @@ -105,12 +105,6 @@ The key features are: -## FastAPI Conf - -[**FastAPI Conf '26**](https://fastapiconf.com) is happening on **October 28, 2026** in **Amsterdam, NL**. All about FastAPI, right from the source. 🎤 - -FastAPI Conf '26 - October 28, 2026 - Amsterdam, NL - ## FastAPI mini documentary There's a [FastAPI mini documentary](https://www.youtube.com/watch?v=mpR8ngthqiE) released at the end of 2025, you can watch it online: diff --git a/docs/en/docs/css/custom.css b/docs/en/docs/css/custom.css index 147181c489..f9945e2303 100644 --- a/docs/en/docs/css/custom.css +++ b/docs/en/docs/css/custom.css @@ -437,6 +437,78 @@ Inspired by Termynal's CSS tricks with modifications .fastapi-sponsors__card--silver .fastapi-sponsors__banner { height: 50px; } } +.fastapi-conf-rail { + display: block; + margin: 1.25rem 0.5rem 0; + padding: 0.9rem 0.85rem 0.85rem; + border: 1px solid var(--md-default-fg-color--lightest); + border-left: 3px solid var(--md-primary-fg-color); + border-radius: 0.2rem; + background: color-mix(in srgb, var(--md-primary-fg-color) 6%, transparent); + color: var(--md-default-fg-color); + text-decoration: none; + transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease; +} + +.fastapi-conf-rail__eyebrow { + display: block; + font-size: 0.56rem; + font-weight: 700; + letter-spacing: 0.11em; + text-transform: uppercase; + color: var(--md-primary-fg-color); +} + +.fastapi-conf-rail__date { + display: block; + margin-top: 0.45rem; + font-size: 0.74rem; + font-weight: 700; + line-height: 1.25; +} + +.fastapi-conf-rail__place { + display: block; + margin-top: 0.1rem; + font-size: 0.68rem; + line-height: 1.3; + color: var(--md-default-fg-color--light); +} + +.fastapi-conf-rail__summary { + display: block; + margin-top: 0.55rem; + font-size: 0.67rem; + line-height: 1.5; + color: var(--md-default-fg-color--light); +} + +.fastapi-conf-rail__cta { + display: block; + margin-top: 0.65rem; + font-size: 0.68rem; + font-weight: 700; + color: var(--md-primary-fg-color); +} + +.fastapi-conf-rail:hover { + border-color: var(--md-primary-fg-color); + background: color-mix(in srgb, var(--md-primary-fg-color) 10%, transparent); +} + +.fastapi-conf-rail:hover .fastapi-conf-rail__cta, +.fastapi-conf-rail:focus-visible .fastapi-conf-rail__cta { + color: var(--md-accent-fg-color); + text-decoration: underline; +} + +.fastapi-conf-rail:focus-visible { + outline: 2px solid var(--md-accent-fg-color); + outline-offset: 2px; +} + +.md-sidebar--primary:has(.fastapi-conf-rail) { position: static; } + .fastapi-feature-banner { display: block; max-width: 680px; diff --git a/docs/en/docs/index.md b/docs/en/docs/index.md index b9086f4c29..d7b35a204a 100644 --- a/docs/en/docs/index.md +++ b/docs/en/docs/index.md @@ -151,12 +151,6 @@ The key features are: -## FastAPI Conf { #fastapi-conf } - -[**FastAPI Conf '26**](https://fastapiconf.com) is happening on **October 28, 2026** in **Amsterdam, NL**. All about FastAPI, right from the source. 🎤 - -FastAPI Conf '26 - October 28, 2026 - Amsterdam, NL - ## FastAPI mini documentary { #fastapi-mini-documentary } There's a [FastAPI mini documentary](https://www.youtube.com/watch?v=mpR8ngthqiE) released at the end of 2025, you can watch it online: diff --git a/docs/en/overrides/main.html b/docs/en/overrides/main.html index 1905a65738..42ecff0a80 100644 --- a/docs/en/overrides/main.html +++ b/docs/en/overrides/main.html @@ -1,5 +1,49 @@ {% 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 %} + + {% endif %} + {% if "toc.integrate" not in features %} + {% if page.meta and page.meta.hide %} + {% set hidden = "hidden" if "toc" in page.meta.hide %} + {% endif %} + + {% endif %} +{% endblock %} + {% block announce %}
diff --git a/docs/en/overrides/partials/conf-rail.html b/docs/en/overrides/partials/conf-rail.html new file mode 100644 index 0000000000..7ce71b1564 --- /dev/null +++ b/docs/en/overrides/partials/conf-rail.html @@ -0,0 +1,7 @@ + + FastAPI Conf '26 + October 28, 2026 + Amsterdam, NL + All about FastAPI, right from the source. + Learn more +