Commit Graph

176 Commits

Author SHA1 Message Date
Yurii Motov badefaba9f Refactor `replace_html_links`, improve error message 2026-01-06 05:57:26 +01:00
Yurii Motov 5b812d4754 Improve error message in `replace_header_permalinks` 2026-01-05 20:17:24 +01:00
Yurii Motov 44b530168e Simplify `replace_markdown_links`, improve error message 2026-01-05 20:16:59 +01:00
Yurii Motov 6c50c68761 Fix formatting 2026-01-05 20:00:08 +01:00
Yurii Motov c42dd05cb8 Simplify `replace_placeholders_with_code_includes` and improve error message 2026-01-05 20:00:08 +01:00
Yurii Motov aba58fc19d Fix bug with `all_good` flag 2026-01-05 20:00:08 +01:00
Yurii Motov c70d79afe9 Add test 2026-01-05 20:00:08 +01:00
Yurii Motov 44f25ad0ac Fix constructing URL for static assets 2026-01-05 16:35:52 +01:00
Yurii Motov 51df013955 Remove debug printing 2026-01-05 14:50:22 +01:00
Yurii Motov 7ff3dfb4fc Add `hash-style-comments` and `slash-style-comments` code block languages 2026-01-05 12:10:06 +01:00
Yurii Motov 9aa406d624 Add `fix-all`command. Handle errors (skip document, exit with status code 1 later) 2026-01-05 12:10:06 +01:00
Yurii Motov b3ad074153 Fix comment regexes (require leading whitespace if comment starts not at the line start) 2026-01-05 12:10:06 +01:00
Yurii Motov e7fb2453ea Fix header permalinks replacement 2026-01-05 11:17:51 +01:00
Yurii Motov beff498743 Handle code blocks, fix some bugs, add `fix-all` command 2025-12-30 17:44:57 +01:00
Yurii Motov 0339277673 Fix links, permalinks, code includes 2025-12-30 10:13:01 +01:00
Yurii Motov 2c56706505 Add more supported languages 2025-12-29 19:32:13 +01:00
Yurii Motov e15cff7376 Print pure text in non-interactive mode 2025-12-24 16:19:18 +01:00
Yurii Motov 844ded6b43 Add script to compare fixed elements in translated page with En page 2025-12-23 22:46:48 +01:00
Sebastián Ramírez b9b2793bda
🔨 Update scripts and pre-commit to autofix files (#14585) 2025-12-21 17:40:17 +00:00
Sebastián Ramírez 1d93d531bc
⬆️ Upgrade OpenAI model for translations to gpt-5.2 (#14579) 2025-12-21 08:06:22 +00:00
Sebastián Ramírez 1c4fc96c91
♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 2025-12-17 21:25:59 +00:00
Motov Yurii ed5c5bef5e
🔧 Temporarily disable translations still in progress, being migrated to the new LLM setup (#14555)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-17 11:44:55 +01:00
Sebastián Ramírez 58bc4a15ac
🔥 Remove inactive/scarce translations to Persian (#14542) 2025-12-16 20:58:53 +00:00
Sebastián Ramírez 5da1cb0792
👷 Fix Typer command for CI LLM translations (#14530) 2025-12-16 12:53:28 +00:00
Sebastián Ramírez 2e7aaea524
👷 Update LLM translation CI, add language matrix and extra commands, prepare for scheduled run (#14529) 2025-12-16 12:40:50 +00:00
Sebastián Ramírez c548348386
👷 Update github-actions user for GitHub Actions workflows (#14528) 2025-12-16 12:34:01 +00:00
Yuji Teshima 5b6245666b
✏️ Fix typo in `scripts/mkdocs_hooks.py` (#14457) 2025-12-06 13:23:01 +01:00
Sebastián Ramírez 4f3ff79736
👷 Add pre-commit config with local script for permalinks (#14398)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-11-23 18:41:43 +01:00
Motov Yurii 32b375c5e4
🛠️ Add `add-permalinks` and `add-permalinks-page` to `scripts/docs.py` (#14033)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2025-11-21 13:49:11 +01:00
Sebastián Ramírez be5a6311f5
🔧 Upgrade Material for MkDocs and remove insiders (#14375) 2025-11-20 11:45:16 +01:00
Sebastián Ramírez 994d6cc912
📝 Add docs for using FastAPI Cloud (#14359) 2025-11-17 20:33:53 +01:00
Sebastián Ramírez 485bfedf5d
🔨 Move local coverage logic to its own script (#14166) 2025-10-08 09:03:21 +00:00
Sebastián Ramírez 2f6fb12258
👷 Update docs previews comment, single comment, add failure status (#14129)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-09-30 07:56:53 +02:00
Motov Yurii 06367347e6
🔨 Modify `mkdocs_hooks.py` to add `title` to page's metadata (remove permalinks in social cards) (#14125) 2025-09-30 06:06:57 +02:00
Motov Yurii 4c9c3b5942
🔨 Update translations script (#13968)
Co-authored-by: Nils Lindemann <nilsherolindemann@proton.me>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-09-20 14:22:04 +02:00
Motov Yurii 47acc62e54
🛠️ Update `docs.py generate-readme` command to remove permalinks from headers (#14055) 2025-09-20 13:43:51 +02:00
Sebastián Ramírez 784f068aba
🛠️ Update `mkdocs_hooks` to handle headers with permalinks when building docs (#14025)
Co-authored-by: Yurii Motov <yurii.motov.monte@gmail.com>
2025-08-31 11:11:15 +02:00
Motov Yurii b40acb83c9
⚒️ Update translate script, update prompt to minimize generated diff (#13947) 2025-07-30 18:37:49 +02:00
Sebastián Ramírez 9aab3d9e22
⚒️ Tweak translate script and CI (#13939) 2025-07-28 01:51:53 +02:00
Sebastián Ramírez 6516a6c4a6
👷 Add CI to translate with LLMs (#13937)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-27 21:12:19 +02:00
Sebastián Ramírez 273b06adab
⚒️ Update translate script, show and update outdated translations (#13933)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-26 21:27:35 +00:00
Sebastián Ramírez adc328e258
🔨 Refactor translate script with extra feedback (prints) (#13932) 2025-07-26 23:19:05 +02:00
Sebastián Ramírez ae02be90b6
🔨 Update translations script to remove old (removed) files (#13928)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-26 20:57:50 +02:00
Sebastián Ramírez ce26b8e1ca
🔨 Update FastAPI People sleep interval, use external settings (#13888) 2025-07-12 19:09:49 +00:00
Emmanuel Ferdman 7c04182724
🔨 Resolve Pydantic deprecation warnings in internal script (#13696)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2025-06-17 09:50:19 +02:00
dependabot[bot] 8c94e97c89
⬆ Bump ruff to 0.9.4 (#13299)
* ⬆ Bump ruff from 0.6.4 to 0.9.4

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.6.4 to 0.9.4.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.6.4...0.9.4)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* update pre-commit accordingly and make formatting changes

* 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alejandra <90076947+alejsdev@users.noreply.github.com>
Co-authored-by: svlandeg <sofie.vanlandeghem@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-03-06 13:18:57 +01:00
Sebastián Ramírez 0a2b24653b
♻️ Fix `notify_translations.py` empty env var handling for PR label events vs workflow_dispatch (#13272) 2025-01-28 22:30:15 +00:00
Sebastián Ramírez 326fec16b9
♻️ Refactor and move `scripts/notify_translations.py`, no need for a custom GitHub Action (#13270)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-28 21:47:33 +00:00
Sebastián Ramírez ff68d0894a
🔨 Update FastAPI People Experts script, refactor and optimize data fetching to handle rate limits (#13267) 2025-01-28 20:34:56 +00:00
Sebastián Ramírez 2ee101fb81
👷 Refactor FastAPI People Sponsors to use 2 tokens (#13228) 2025-01-18 12:58:36 +00:00