Skip to content

Commit

Permalink
🔨 Add MkDocs hook that renames sections based on the first index file (
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored Jun 24, 2023
1 parent 3aea9ac commit 51d3a8f
Show file tree
Hide file tree
Showing 58 changed files with 145 additions and 32 deletions.
3 changes: 3 additions & 0 deletions docs/az/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -158,3 +159,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
3 changes: 3 additions & 0 deletions docs/cs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -158,3 +159,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
3 changes: 3 additions & 0 deletions docs/de/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -159,3 +160,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
2 changes: 1 addition & 1 deletion docs/em/docs/advanced/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🏧 👩‍💻 🦮 - 🎶
# 🏧 👩‍💻 🦮

## 🌖 ⚒

Expand Down
2 changes: 1 addition & 1 deletion docs/em/docs/advanced/security/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🏧 💂‍♂ - 🎶
# 🏧 💂‍♂

## 🌖 ⚒

Expand Down
2 changes: 1 addition & 1 deletion docs/em/docs/deployment/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🛠️ - 🎶
# 🛠️

🛠️ **FastAPI** 🈸 📶 ⏩.

Expand Down
2 changes: 1 addition & 1 deletion docs/em/docs/tutorial/dependencies/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🔗 - 🥇 🔁
# 🔗

**FastAPI** ✔️ 📶 🏋️ ✋️ 🏋️ **<abbr title="also known as components, resources, providers, services, injectables">🔗 💉</abbr>** ⚙️.

Expand Down
2 changes: 1 addition & 1 deletion docs/em/docs/tutorial/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🔰 - 👩‍💻 🦮 - 🎶
# 🔰 - 👩‍💻 🦮

👉 🔰 🎦 👆 ❔ ⚙️ **FastAPI** ⏮️ 🌅 🚮 ⚒, 🔁 🔁.

Expand Down
2 changes: 1 addition & 1 deletion docs/em/docs/tutorial/security/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 💂‍♂ 🎶
# 💂‍♂

📤 📚 🌌 🍵 💂‍♂, 🤝 &amp; ✔.

Expand Down
3 changes: 3 additions & 0 deletions docs/em/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -265,3 +266,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
2 changes: 1 addition & 1 deletion docs/en/docs/advanced/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Advanced User Guide - Intro
# Advanced User Guide

## Additional Features

Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/advanced/security/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Advanced Security - Intro
# Advanced Security

## Additional Features

Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/deployment/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Deployment - Intro
# Deployment

Deploying a **FastAPI** application is relatively easy.

Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/tutorial/dependencies/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Dependencies - First Steps
# Dependencies

**FastAPI** has a very powerful but intuitive **<abbr title="also known as components, resources, providers, services, injectables">Dependency Injection</abbr>** system.

Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/tutorial/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Tutorial - User Guide - Intro
# Tutorial - User Guide

This tutorial shows you how to use **FastAPI** with most of its features, step by step.

Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/tutorial/security/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Security Intro
# Security

There are many ways to handle security, authentication and authorization.

Expand Down
3 changes: 3 additions & 0 deletions docs/en/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: img/icon-white.svg
Expand Down Expand Up @@ -265,3 +266,5 @@ extra_css:
extra_javascript:
- js/termynal.js
- js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
2 changes: 1 addition & 1 deletion docs/es/docs/advanced/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Guía de Usuario Avanzada - Introducción
# Guía de Usuario Avanzada

## Características Adicionales

Expand Down
2 changes: 1 addition & 1 deletion docs/es/docs/tutorial/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Tutorial - Guía de Usuario - Introducción
# Tutorial - Guía de Usuario

Este tutorial te muestra cómo usar **FastAPI** con la mayoría de sus características paso a paso.

Expand Down
3 changes: 3 additions & 0 deletions docs/es/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -168,3 +169,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
3 changes: 3 additions & 0 deletions docs/fa/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -158,3 +159,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
2 changes: 1 addition & 1 deletion docs/fr/docs/advanced/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Guide de l'utilisateur avancé - Introduction
# Guide de l'utilisateur avancé

## Caractéristiques supplémentaires

Expand Down
2 changes: 1 addition & 1 deletion docs/fr/docs/deployment/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Déploiement - Intro
# Déploiement

Le déploiement d'une application **FastAPI** est relativement simple.

Expand Down
3 changes: 3 additions & 0 deletions docs/fr/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -187,3 +188,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
3 changes: 3 additions & 0 deletions docs/he/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -158,3 +159,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
3 changes: 3 additions & 0 deletions docs/hy/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -158,3 +159,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
3 changes: 3 additions & 0 deletions docs/id/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -158,3 +159,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
3 changes: 3 additions & 0 deletions docs/it/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -158,3 +159,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
2 changes: 1 addition & 1 deletion docs/ja/docs/advanced/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ユーザーガイド 応用編
# 高度なユーザーガイド

## さらなる機能

Expand Down
2 changes: 1 addition & 1 deletion docs/ja/docs/deployment/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# デプロイ - イントロ
# デプロイ

**FastAPI** 製のアプリケーションは比較的容易にデプロイできます。

Expand Down
2 changes: 1 addition & 1 deletion docs/ja/docs/tutorial/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# チュートリアル - ユーザーガイド - はじめに
# チュートリアル - ユーザーガイド

このチュートリアルは**FastAPI**のほぼすべての機能の使い方を段階的に紹介します。

Expand Down
3 changes: 3 additions & 0 deletions docs/ja/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -202,3 +203,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
2 changes: 1 addition & 1 deletion docs/ko/docs/tutorial/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 자습서 - 사용자 안내서 - 도입부
# 자습서 - 사용자 안내서

이 자습서는 **FastAPI**의 대부분의 기능을 단계별로 사용하는 방법을 보여줍니다.

Expand Down
3 changes: 3 additions & 0 deletions docs/ko/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -172,3 +173,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
3 changes: 3 additions & 0 deletions docs/lo/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -158,3 +159,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
3 changes: 3 additions & 0 deletions docs/nl/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -158,3 +159,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
2 changes: 1 addition & 1 deletion docs/pl/docs/tutorial/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Samouczek - Wprowadzenie
# Samouczek

Ten samouczek pokaże Ci, krok po kroku, jak używać większości funkcji **FastAPI**.

Expand Down
3 changes: 3 additions & 0 deletions docs/pl/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
icon:
repo: fontawesome/brands/github-alt
logo: https://fastapi.tiangolo.com/img/icon-white.svg
Expand Down Expand Up @@ -162,3 +163,5 @@ extra_css:
extra_javascript:
- https://fastapi.tiangolo.com/js/termynal.js
- https://fastapi.tiangolo.com/js/custom.js
hooks:
- ../../scripts/mkdocs_hooks.py
2 changes: 1 addition & 1 deletion docs/pt/docs/advanced/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Guia de Usuário Avançado - Introdução
# Guia de Usuário Avançado

## Recursos Adicionais

Expand Down
2 changes: 1 addition & 1 deletion docs/pt/docs/deployment/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Implantação - Introdução
# Implantação

A implantação de uma aplicação **FastAPI** é relativamente simples.

Expand Down
2 changes: 1 addition & 1 deletion docs/pt/docs/tutorial/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Tutorial - Guia de Usuário - Introdução
# Tutorial - Guia de Usuário

Esse tutorial mostra como usar o **FastAPI** com a maior parte de seus recursos, passo a passo.

Expand Down
2 changes: 1 addition & 1 deletion docs/pt/docs/tutorial/security/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Introdução à segurança
# Segurança

Há várias formas de lidar segurança, autenticação e autorização.

Expand Down
Loading

0 comments on commit 51d3a8f

Please sign in to comment.