Enable doc in Spanish (#16518)

* Reorganize doc for multilingual support

* Fix style

* Style

* Toc trees

* Adapt templates
This commit is contained in:
Sylvain Gugger
2022-04-04 10:25:46 -04:00
committed by GitHub
parent 3951b9f390
commit b9a768b3ff
206 changed files with 71 additions and 30 deletions

View File

@@ -25,7 +25,7 @@ from doc_builder.style_doc import style_docstrings_in_code
# All paths are set with the intent you should run this script from the root of the repo with the command
# python utils/check_copies.py
TRANSFORMERS_PATH = "src/transformers"
PATH_TO_DOCS = "docs/source"
PATH_TO_DOCS = "docs/source/en"
REPO_PATH = "."
# Mapping for files that are full copies of others (keys are copies, values the file to keep them up to data with)

View File

@@ -31,7 +31,7 @@ from transformers.utils import ENV_VARS_TRUE_VALUES
# python utils/check_repo.py
PATH_TO_TRANSFORMERS = "src/transformers"
PATH_TO_TESTS = "tests"
PATH_TO_DOC = "docs/source"
PATH_TO_DOC = "docs/source/en"
# Update this list with models that are supposed to be private.
PRIVATE_MODELS = [

View File

@@ -23,7 +23,7 @@ import re
# All paths are set with the intent you should run this script from the root of the repo with the command
# python utils/check_table.py
TRANSFORMERS_PATH = "src/transformers"
PATH_TO_DOCS = "docs/source"
PATH_TO_DOCS = "docs/source/en"
REPO_PATH = "."