Skip to content

Commit 9a5f68d

Browse files
authored
Merge branch 'master' into translations/ja/learn/index.md
2 parents 3e01d08 + ae97785 commit 9a5f68d

826 files changed

Lines changed: 43850 additions & 24735 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ contact_links:
44
about: Please report security vulnerabilities to security@tiangolo.com
55
- name: Question or Problem
66
about: Ask a question or ask about a problem in GitHub Discussions.
7-
url: https://github.com/tiangolo/fastapi/discussions/categories/questions
7+
url: https://github.com/fastapi/fastapi/discussions/categories/questions
88
- name: Feature Request
99
about: To suggest an idea or ask about a feature, please start with a question saying what you would like to achieve. There might be a way to do it already.
10-
url: https://github.com/tiangolo/fastapi/discussions/categories/questions
10+
url: https://github.com/fastapi/fastapi/discussions/categories/questions
1111
- name: Show and tell
1212
about: Show what you built with FastAPI or to be used with FastAPI.
13-
url: https://github.com/tiangolo/fastapi/discussions/categories/show-and-tell
13+
url: https://github.com/fastapi/fastapi/discussions/categories/show-and-tell
1414
- name: Translations
1515
about: Coordinate translations in GitHub Discussions.
16-
url: https://github.com/tiangolo/fastapi/discussions/categories/translations
16+
url: https://github.com/fastapi/fastapi/discussions/categories/translations

.github/ISSUE_TEMPLATE/privileged.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ body:
66
value: |
77
Thanks for your interest in FastAPI! 🚀
88
9-
If you are not @tiangolo or he didn't ask you directly to create an issue here, please start the conversation in a [Question in GitHub Discussions](https://github.com/tiangolo/fastapi/discussions/categories/questions) instead.
9+
If you are not @tiangolo or he didn't ask you directly to create an issue here, please start the conversation in a [Question in GitHub Discussions](https://github.com/fastapi/fastapi/discussions/categories/questions) instead.
1010
- type: checkboxes
1111
id: privileged
1212
attributes:

.github/actions/comment-docs-preview-in-pr/Dockerfile

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/actions/comment-docs-preview-in-pr/action.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/actions/comment-docs-preview-in-pr/app/main.py

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/actions/notify-translations/app/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111

1212
awaiting_label = "awaiting-review"
1313
lang_all_label = "lang-all"
14-
approved_label = "approved-2"
14+
approved_label = "approved-1"
1515
translations_path = Path(__file__).parent / "translations.yml"
1616

1717
github_graphql_url = "https://api.github.com/graphql"
1818
questions_translations_category_id = "DIC_kwDOCZduT84CT5P9"
1919

2020
all_discussions_query = """
2121
query Q($category_id: ID) {
22-
repository(name: "fastapi", owner: "tiangolo") {
22+
repository(name: "fastapi", owner: "fastapi") {
2323
discussions(categoryId: $category_id, first: 100) {
2424
nodes {
2525
title
@@ -41,7 +41,7 @@
4141

4242
translation_discussion_query = """
4343
query Q($after: String, $discussion_number: Int!) {
44-
repository(name: "fastapi", owner: "tiangolo") {
44+
repository(name: "fastapi", owner: "fastapi") {
4545
discussion(number: $discussion_number) {
4646
comments(first: 100, after: $after) {
4747
edges {

.github/actions/people/app/main.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
discussions_query = """
1919
query Q($after: String, $category_id: ID) {
20-
repository(name: "fastapi", owner: "tiangolo") {
20+
repository(name: "fastapi", owner: "fastapi") {
2121
discussions(first: 100, after: $after, categoryId: $category_id) {
2222
edges {
2323
cursor
@@ -61,7 +61,7 @@
6161

6262
prs_query = """
6363
query Q($after: String) {
64-
repository(name: "fastapi", owner: "tiangolo") {
64+
repository(name: "fastapi", owner: "fastapi") {
6565
pullRequests(first: 100, after: $after) {
6666
edges {
6767
cursor
@@ -109,7 +109,7 @@
109109

110110
sponsors_query = """
111111
query Q($after: String) {
112-
user(login: "tiangolo") {
112+
user(login: "fastapi") {
113113
sponsorshipsAsMaintainer(first: 100, after: $after) {
114114
edges {
115115
cursor
@@ -515,9 +515,9 @@ def get_individual_sponsors(settings: Settings):
515515

516516
tiers: DefaultDict[float, Dict[str, SponsorEntity]] = defaultdict(dict)
517517
for node in nodes:
518-
tiers[node.tier.monthlyPriceInDollars][
519-
node.sponsorEntity.login
520-
] = node.sponsorEntity
518+
tiers[node.tier.monthlyPriceInDollars][node.sponsorEntity.login] = (
519+
node.sponsorEntity
520+
)
521521
return tiers
522522

523523

.github/labeler.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
docs:
2+
- all:
3+
- changed-files:
4+
- any-glob-to-any-file:
5+
- docs/en/docs/**
6+
- docs_src/**
7+
- all-globs-to-all-files:
8+
- '!fastapi/**'
9+
- '!pyproject.toml'
10+
11+
lang-all:
12+
- all:
13+
- changed-files:
14+
- any-glob-to-any-file:
15+
- docs/*/docs/**
16+
- all-globs-to-all-files:
17+
- '!docs/en/docs/**'
18+
- '!fastapi/**'
19+
- '!pyproject.toml'
20+
21+
internal:
22+
- all:
23+
- changed-files:
24+
- any-glob-to-any-file:
25+
- .github/**
26+
- scripts/**
27+
- .gitignore
28+
- .pre-commit-config.yaml
29+
- pdm_build.py
30+
- requirements*.txt
31+
- all-globs-to-all-files:
32+
- '!docs/*/docs/**'
33+
- '!fastapi/**'
34+
- '!pyproject.toml'
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Add to Project
2+
3+
on:
4+
pull_request_target:
5+
issues:
6+
types:
7+
- opened
8+
- reopened
9+
10+
jobs:
11+
add-to-project:
12+
name: Add to project
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/add-to-project@v1.0.2
16+
with:
17+
project-url: https://github.com/orgs/fastapi/projects/2
18+
github-token: ${{ secrets.PROJECTS_TOKEN }}

.github/workflows/build-docs.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
docs: ${{ steps.filter.outputs.docs }}
1919
steps:
2020
- uses: actions/checkout@v4
21-
# For pull requests it's not necessary to checkout the code but for master it is
21+
# For pull requests it's not necessary to checkout the code but for the main branch it is
2222
- uses: dorny/paths-filter@v3
2323
id: filter
2424
with:
@@ -28,9 +28,12 @@ jobs:
2828
- docs/**
2929
- docs_src/**
3030
- requirements-docs.txt
31+
- requirements-docs-insiders.txt
3132
- pyproject.toml
3233
- mkdocs.yml
3334
- mkdocs.insiders.yml
35+
- mkdocs.maybe-insiders.yml
36+
- mkdocs.no-insiders.yml
3437
- .github/workflows/build-docs.yml
3538
- .github/workflows/deploy-docs.yml
3639
langs:
@@ -49,17 +52,16 @@ jobs:
4952
id: cache
5053
with:
5154
path: ${{ env.pythonLocation }}
52-
key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-docs.txt', 'requirements-docs-tests.txt') }}-v07
55+
key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-docs.txt', 'requirements-docs-insiders.txt', 'requirements-docs-tests.txt') }}-v08
5356
- name: Install docs extras
5457
if: steps.cache.outputs.cache-hit != 'true'
5558
run: pip install -r requirements-docs.txt
5659
# Install MkDocs Material Insiders here just to put it in the cache for the rest of the steps
5760
- name: Install Material for MkDocs Insiders
5861
if: ( github.event_name != 'pull_request' || github.secret_source == 'Actions' ) && steps.cache.outputs.cache-hit != 'true'
59-
run: |
60-
pip install git+https://${{ secrets.FASTAPI_MKDOCS_MATERIAL_INSIDERS }}@github.com/squidfunk/mkdocs-material-insiders.git
61-
pip install git+https://${{ secrets.FASTAPI_MKDOCS_MATERIAL_INSIDERS }}@github.com/pawamoy-insiders/griffe-typing-deprecated.git
62-
pip install git+https://${{ secrets.FASTAPI_MKDOCS_MATERIAL_INSIDERS }}@github.com/pawamoy-insiders/mkdocstrings-python.git
62+
run: pip install -r requirements-docs-insiders.txt
63+
env:
64+
TOKEN: ${{ secrets.FASTAPI_MKDOCS_MATERIAL_INSIDERS }}
6365
- name: Verify Docs
6466
run: python ./scripts/docs.py verify-docs
6567
- name: Export Language Codes
@@ -90,16 +92,15 @@ jobs:
9092
id: cache
9193
with:
9294
path: ${{ env.pythonLocation }}
93-
key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-docs.txt', 'requirements-docs-tests.txt') }}-v08
95+
key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-docs.txt', 'requirements-docs-insiders.txt', 'requirements-docs-tests.txt') }}-v08
9496
- name: Install docs extras
9597
if: steps.cache.outputs.cache-hit != 'true'
9698
run: pip install -r requirements-docs.txt
9799
- name: Install Material for MkDocs Insiders
98100
if: ( github.event_name != 'pull_request' || github.secret_source == 'Actions' ) && steps.cache.outputs.cache-hit != 'true'
99-
run: |
100-
pip install git+https://${{ secrets.FASTAPI_MKDOCS_MATERIAL_INSIDERS }}@github.com/squidfunk/mkdocs-material-insiders.git
101-
pip install git+https://${{ secrets.FASTAPI_MKDOCS_MATERIAL_INSIDERS }}@github.com/pawamoy-insiders/griffe-typing-deprecated.git
102-
pip install git+https://${{ secrets.FASTAPI_MKDOCS_MATERIAL_INSIDERS }}@github.com/pawamoy-insiders/mkdocstrings-python.git
101+
run: pip install -r requirements-docs-insiders.txt
102+
env:
103+
TOKEN: ${{ secrets.FASTAPI_MKDOCS_MATERIAL_INSIDERS }}
103104
- name: Update Languages
104105
run: python ./scripts/docs.py update-languages
105106
- uses: actions/cache@v4

0 commit comments

Comments
 (0)