Commit Graph

185 Commits

Author SHA1 Message Date
Yurii Motov
ce8a5ab91c Fix CODE_BLOCK_LANG_RE to handle 4 backticks 2026-01-06 10:38:21 +01:00
Yurii Motov
f5112778d0 Add tests for html links 2026-01-06 09:54:29 +01:00
Yurii Motov
a8bf5871d7 Add tests for markdown links 2026-01-06 08:43:19 +01:00
Yurii Motov
5ca9472d8a Fix check for markdown links number mismatch 2026-01-06 08:26:08 +01:00
Yurii Motov
5c50b3dd15 Add tests for header and permalinks 2026-01-06 07:23:01 +01:00
Yurii Motov
8c5f21c83c Fix error message on header level mismatch 2026-01-06 07:20:38 +01:00
Yurii Motov
6b987b7262 Add more tests for code includes 2026-01-06 06:44:31 +01:00
Yurii Motov
50dd09a7b2 Remove commented code 2026-01-06 06:18:53 +01:00
Yurii Motov
e076f651e7 Increase verbosity of replace_multiline_code_block and replace_multiline_code_blocks_in_text 2026-01-06 06:03:38 +01:00
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-allcommand. 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