Unverified Commit 8ff619d9 authored by Kevin Canwen Xu's avatar Kevin Canwen Xu Committed by GitHub
Browse files

Add multilingual documentation support (#12952)

* Add multilingual documentation support

* Add multilingual documentation support

* make style

* make style

* revert
parent fe6ff4a9
...@@ -208,6 +208,9 @@ epub_title = project ...@@ -208,6 +208,9 @@ epub_title = project
# A list of files that should not be packed into the epub file. # A list of files that should not be packed into the epub file.
epub_exclude_files = ["search.html"] epub_exclude_files = ["search.html"]
# Localization
locale_dirs = ['locale/']
gettext_compact = False
def setup(app): def setup(app):
app.add_css_file("css/huggingface.css") app.add_css_file("css/huggingface.css")
......
...@@ -142,6 +142,7 @@ _deps = [ ...@@ -142,6 +142,7 @@ _deps = [
"sphinx-rtd-theme==0.4.3", # sphinx-rtd-theme==0.5.0 introduced big changes in the style. "sphinx-rtd-theme==0.4.3", # sphinx-rtd-theme==0.5.0 introduced big changes in the style.
"sphinx==3.2.1", "sphinx==3.2.1",
"sphinxext-opengraph==0.4.1", "sphinxext-opengraph==0.4.1",
"sphinx-intl",
"starlette", "starlette",
"tensorflow-cpu>=2.3", "tensorflow-cpu>=2.3",
"tensorflow>=2.3", "tensorflow>=2.3",
...@@ -289,6 +290,7 @@ extras["docs_specific"] = deps_list( ...@@ -289,6 +290,7 @@ extras["docs_specific"] = deps_list(
"sphinx-rtd-theme", "sphinx-rtd-theme",
"sphinx-copybutton", "sphinx-copybutton",
"sphinxext-opengraph", "sphinxext-opengraph",
"sphinx-intl",
) )
# "docs" needs "all" to resolve all the references # "docs" needs "all" to resolve all the references
extras["docs"] = extras["all"] + extras["docs_specific"] extras["docs"] = extras["all"] + extras["docs_specific"]
......
...@@ -59,6 +59,7 @@ deps = { ...@@ -59,6 +59,7 @@ deps = {
"sphinx-rtd-theme": "sphinx-rtd-theme==0.4.3", "sphinx-rtd-theme": "sphinx-rtd-theme==0.4.3",
"sphinx": "sphinx==3.2.1", "sphinx": "sphinx==3.2.1",
"sphinxext-opengraph": "sphinxext-opengraph==0.4.1", "sphinxext-opengraph": "sphinxext-opengraph==0.4.1",
"sphinx-intl": "sphinx-intl",
"starlette": "starlette", "starlette": "starlette",
"tensorflow-cpu": "tensorflow-cpu>=2.3", "tensorflow-cpu": "tensorflow-cpu>=2.3",
"tensorflow": "tensorflow>=2.3", "tensorflow": "tensorflow>=2.3",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment