Update the docs config Languages section including all the available languages.
()
| 419 | |
| 420 | @app.command() |
| 421 | def 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() |
no test coverage detected
searching dependent graphs…