Enable doc in Spanish (#16518)
* Reorganize doc for multilingual support * Fix style * Style * Toc trees * Adapt templates
This commit is contained in:
1
.github/workflows/build_documentation.yml
vendored
1
.github/workflows/build_documentation.yml
vendored
@@ -15,5 +15,6 @@ jobs:
|
|||||||
commit_sha: ${{ github.sha }}
|
commit_sha: ${{ github.sha }}
|
||||||
package: transformers
|
package: transformers
|
||||||
notebook_folder: transformers_doc
|
notebook_folder: transformers_doc
|
||||||
|
languages: en es
|
||||||
secrets:
|
secrets:
|
||||||
token: ${{ secrets.HUGGINGFACE_PUSH }}
|
token: ${{ secrets.HUGGINGFACE_PUSH }}
|
||||||
|
|||||||
1
.github/workflows/build_pr_documentation.yml
vendored
1
.github/workflows/build_pr_documentation.yml
vendored
@@ -14,3 +14,4 @@ jobs:
|
|||||||
commit_sha: ${{ github.event.pull_request.head.sha }}
|
commit_sha: ${{ github.event.pull_request.head.sha }}
|
||||||
pr_number: ${{ github.event.number }}
|
pr_number: ${{ github.event.number }}
|
||||||
package: transformers
|
package: transformers
|
||||||
|
languages: en es
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
../../CONTRIBUTING.md
|
|
||||||
14
docs/source/en/_config.py
Normal file
14
docs/source/en/_config.py
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# docstyle-ignore
|
||||||
|
INSTALL_CONTENT = """
|
||||||
|
# Transformers installation
|
||||||
|
! pip install transformers datasets
|
||||||
|
# To install from source instead of the last release, comment the command above and uncomment the following one.
|
||||||
|
# ! pip install git+https://github.com/huggingface/transformers.git
|
||||||
|
"""
|
||||||
|
|
||||||
|
notebook_first_cells = [{"type": "code", "content": INSTALL_CONTENT}]
|
||||||
|
black_avoid_patterns = {
|
||||||
|
"{processor_class}": "FakeProcessorClass",
|
||||||
|
"{model_class}": "FakeModelClass",
|
||||||
|
"{object_class}": "FakeObjectClass",
|
||||||
|
}
|
||||||
1
docs/source/en/contributing.md
Symbolic link
1
docs/source/en/contributing.md
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../../CONTRIBUTING.md
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user