MCPcopy Index your code
hub / github.com/fastapi/fastapi / update_languages

Function update_languages

scripts/docs.py:421–435  ·  view source on GitHub ↗

Update the docs config Languages section including all the available languages.

()

Source from the content-addressed store, hash-verified

419
420@app.command()
421def update_languages() -> None:
422 """
423 Update the docs config Languages section including all the available languages.
424 """
425 old_config = get_en_config()
426 updated_config = get_updated_config_content()
427 if old_config != updated_config:
428 print("docs/en/mkdocs.yml outdated")
429 print("Updating docs/en/mkdocs.yml")
430 en_config_path.write_text(
431 yaml.dump(updated_config, sort_keys=False, width=200, allow_unicode=True),
432 encoding="utf-8",
433 )
434 raise typer.Exit(1)
435 print("docs/en/mkdocs.yml is up to date ✅")
436
437
438@app.command()

Callers 2

new_langFunction · 0.85
build_allFunction · 0.85

Calls 2

get_en_configFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…