Sort doc toc (#18034)

* Add script to sort doc ToC

* Style and fixes

* Add check to quality job
This commit is contained in:
Sylvain Gugger
2022-07-07 08:17:58 -04:00
committed by GitHub
parent 1b5ea74783
commit 1b749a7f8d
4 changed files with 99 additions and 8 deletions

View File

@@ -862,6 +862,7 @@ jobs:
- run: python utils/sort_auto_mappings.py --check_only
- run: flake8 examples tests src utils
- run: doc-builder style src/transformers docs/source --max_len 119 --check_only --path_to_docs docs/source
- run: python utils/check_doc_toc.py
check_repository_consistency:
working_directory: ~/transformers