From b0e85e4c800952a1a667f0a3c3f680c4acd710f8 Mon Sep 17 00:00:00 2001 From: leiyuning Date: Tue, 15 Sep 2020 22:19:39 +0800 Subject: [PATCH] update conf.py --- docs/api_cpp/source_en/apicc.rst | 12 --- docs/api_cpp/source_en/conf.py | 78 +++++++++++++++++++ docs/api_cpp/source_en/index.rst | 18 +++++ docs/api_cpp/source_zh_cn/apicc.rst | 12 --- docs/api_cpp/source_zh_cn/conf.py | 81 ++++++++++++++++++++ docs/api_cpp/source_zh_cn/index.rst | 18 +++++ docs/api_java/source_en/conf.py | 80 ++++++++++++++++++++ docs/api_java/source_zh_cn/conf.py | 83 +++++++++++++++++++++ docs/api_python/source_zh_cn/conf.py | 2 +- docs/faq/source_en/conf.py | 78 +++++++++++++++++++ docs/faq/source_zh_cn/conf.py | 83 +++++++++++++++++++++ docs/note/source_zh_cn/conf.py | 2 +- docs/programming_guide/source_en/conf.py | 60 +++++++++++++++ docs/programming_guide/source_zh_cn/conf.py | 64 ++++++++++++++++ tutorials/inference/source_zh_cn/conf.py | 2 +- tutorials/lite/source_zh_cn/conf.py | 8 +- tutorials/training/source_zh_cn/conf.py | 2 +- 17 files changed, 652 insertions(+), 31 deletions(-) delete mode 100644 docs/api_cpp/source_en/apicc.rst create mode 100644 docs/api_cpp/source_en/conf.py create mode 100644 docs/api_cpp/source_en/index.rst delete mode 100644 docs/api_cpp/source_zh_cn/apicc.rst create mode 100644 docs/api_cpp/source_zh_cn/conf.py create mode 100644 docs/api_cpp/source_zh_cn/index.rst create mode 100644 docs/api_java/source_en/conf.py create mode 100644 docs/api_java/source_zh_cn/conf.py create mode 100644 docs/faq/source_en/conf.py create mode 100644 docs/faq/source_zh_cn/conf.py create mode 100644 docs/programming_guide/source_en/conf.py create mode 100644 docs/programming_guide/source_zh_cn/conf.py diff --git a/docs/api_cpp/source_en/apicc.rst b/docs/api_cpp/source_en/apicc.rst deleted file mode 100644 index 82bbf145ca..0000000000 --- a/docs/api_cpp/source_en/apicc.rst +++ /dev/null @@ -1,12 +0,0 @@ -C++ API -======= - -.. toctree:: - :maxdepth: 1 - - class_list - lite - session - tensor - dataset - errorcode_and_metatype \ No newline at end of file diff --git a/docs/api_cpp/source_en/conf.py b/docs/api_cpp/source_en/conf.py new file mode 100644 index 0000000000..fd6e7a496a --- /dev/null +++ b/docs/api_cpp/source_en/conf.py @@ -0,0 +1,78 @@ +# Configuration file for the Sphinx documentation builder. +# +# This file only contains a selection of the most common options. For a full +# list see the documentation: +# https://www.sphinx-doc.org/en/master/usage/configuration.html + +# -- Path setup -------------------------------------------------------------- + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +# import sys +# sys.path.append('..') +# sys.path.insert(0, os.path.abspath('.')) + +import mindspore +# If you don't want to generate MindArmour APIs, comment this line. +import mindarmour +# If you don't want to generate MindSpore_Hub APIs, comment this line. +import mindspore_hub + + +# -- Project information ----------------------------------------------------- + +project = 'MindSpore' +copyright = '2020, MindSpore' +author = 'MindSpore' + +# The full version, including alpha/beta/rc tags +release = 'master' + + +# -- General configuration --------------------------------------------------- + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + 'sphinx.ext.autodoc', + 'sphinx.ext.autosummary', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.napoleon', + 'sphinx.ext.viewcode', + 'sphinx_markdown_tables', + 'recommonmark', +] + +source_suffix = { + '.rst': 'restructuredtext', + '.md': 'markdown', +} + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This pattern also affects html_static_path and html_extra_path. +exclude_patterns = [] + +pygments_style = 'sphinx' + +autodoc_inherit_docstrings = False + +# -- Options for HTML output ------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +html_static_path = ['_static'] + diff --git a/docs/api_cpp/source_en/index.rst b/docs/api_cpp/source_en/index.rst new file mode 100644 index 0000000000..6b3fb87da0 --- /dev/null +++ b/docs/api_cpp/source_en/index.rst @@ -0,0 +1,18 @@ +.. MindSpore documentation master file, created by + sphinx-quickstart on Thu Mar 24 10:00:00 2020. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +MindSpore C++ API +================= + +.. toctree:: + :glob: + :maxdepth: 1 + + class_list + lite + session + tensor + dataset + errorcode_and_metatype \ No newline at end of file diff --git a/docs/api_cpp/source_zh_cn/apicc.rst b/docs/api_cpp/source_zh_cn/apicc.rst deleted file mode 100644 index 82bbf145ca..0000000000 --- a/docs/api_cpp/source_zh_cn/apicc.rst +++ /dev/null @@ -1,12 +0,0 @@ -C++ API -======= - -.. toctree:: - :maxdepth: 1 - - class_list - lite - session - tensor - dataset - errorcode_and_metatype \ No newline at end of file diff --git a/docs/api_cpp/source_zh_cn/conf.py b/docs/api_cpp/source_zh_cn/conf.py new file mode 100644 index 0000000000..6e3fdd5141 --- /dev/null +++ b/docs/api_cpp/source_zh_cn/conf.py @@ -0,0 +1,81 @@ +# Configuration file for the Sphinx documentation builder. +# +# This file only contains a selection of the most common options. For a full +# list see the documentation: +# https://www.sphinx-doc.org/en/master/usage/configuration.html + +# -- Path setup -------------------------------------------------------------- + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +# import sys +# sys.path.append('..') +# sys.path.insert(0, os.path.abspath('.')) + +import mindspore +# If you don't want to generate MindArmour APIs, comment this line. +import mindarmour +# If you don't want to generate MindSpore_Hub APIs, comment this line. +import mindspore_hub + + +# -- Project information ----------------------------------------------------- + +project = 'MindSpore' +copyright = '2020, MindSpore' +author = 'MindSpore' + +# The full version, including alpha/beta/rc tags +release = 'master' + + +# -- General configuration --------------------------------------------------- + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + 'sphinx.ext.autodoc', + 'sphinx.ext.autosummary', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.napoleon', + 'sphinx.ext.viewcode', + 'sphinx_markdown_tables', + 'recommonmark', +] + +source_suffix = { + '.rst': 'restructuredtext', + '.md': 'markdown', +} + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This pattern also affects html_static_path and html_extra_path. +exclude_patterns = [] + +pygments_style = 'sphinx' + +autodoc_inherit_docstrings = False + +# -- Options for HTML output ------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +html_search_language = 'zh' + +html_search_options = {'dict': '../../resource/jieba.txt'} + +html_static_path = ['_static'] diff --git a/docs/api_cpp/source_zh_cn/index.rst b/docs/api_cpp/source_zh_cn/index.rst new file mode 100644 index 0000000000..6b3fb87da0 --- /dev/null +++ b/docs/api_cpp/source_zh_cn/index.rst @@ -0,0 +1,18 @@ +.. MindSpore documentation master file, created by + sphinx-quickstart on Thu Mar 24 10:00:00 2020. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +MindSpore C++ API +================= + +.. toctree:: + :glob: + :maxdepth: 1 + + class_list + lite + session + tensor + dataset + errorcode_and_metatype \ No newline at end of file diff --git a/docs/api_java/source_en/conf.py b/docs/api_java/source_en/conf.py new file mode 100644 index 0000000000..ba48bdb76b --- /dev/null +++ b/docs/api_java/source_en/conf.py @@ -0,0 +1,80 @@ +# Configuration file for the Sphinx documentation builder. +# +# This file only contains a selection of the most common options. For a full +# list see the documentation: +# https://www.sphinx-doc.org/en/master/usage/configuration.html + +# -- Path setup -------------------------------------------------------------- + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +# import sys +# sys.path.append('..') +# sys.path.insert(0, os.path.abspath('.')) + +import mindspore +# If you don't want to generate MindArmour APIs, comment this line. +import mindarmour +# If you don't want to generate MindSpore_Hub APIs, comment this line. +import mindspore_hub + + +# -- Project information ----------------------------------------------------- + +project = 'MindSpore' +copyright = '2020, MindSpore' +author = 'MindSpore' + +# The full version, including alpha/beta/rc tags +release = 'master' + + +# -- General configuration --------------------------------------------------- + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + 'sphinx.ext.autodoc', + 'sphinx.ext.autosummary', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.napoleon', + 'sphinx.ext.viewcode', + 'sphinx_markdown_tables', + 'recommonmark', +] + +source_suffix = { + '.rst': 'restructuredtext', + '.md': 'markdown', +} + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This pattern also affects html_static_path and html_extra_path. +exclude_patterns = [] + +pygments_style = 'sphinx' + +autodoc_inherit_docstrings = False + +# -- Options for HTML output ------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + + +html_static_path = ['_static'] + + diff --git a/docs/api_java/source_zh_cn/conf.py b/docs/api_java/source_zh_cn/conf.py new file mode 100644 index 0000000000..ef1fea6845 --- /dev/null +++ b/docs/api_java/source_zh_cn/conf.py @@ -0,0 +1,83 @@ +# Configuration file for the Sphinx documentation builder. +# +# This file only contains a selection of the most common options. For a full +# list see the documentation: +# https://www.sphinx-doc.org/en/master/usage/configuration.html + +# -- Path setup -------------------------------------------------------------- + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +# import sys +# sys.path.append('..') +# sys.path.insert(0, os.path.abspath('.')) + +import mindspore +# If you don't want to generate MindArmour APIs, comment this line. +import mindarmour +# If you don't want to generate MindSpore_Hub APIs, comment this line. +import mindspore_hub + + +# -- Project information ----------------------------------------------------- + +project = 'MindSpore' +copyright = '2020, MindSpore' +author = 'MindSpore' + +# The full version, including alpha/beta/rc tags +release = 'master' + + +# -- General configuration --------------------------------------------------- + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + 'sphinx.ext.autodoc', + 'sphinx.ext.autosummary', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.napoleon', + 'sphinx.ext.viewcode', + 'sphinx_markdown_tables', + 'recommonmark', +] + +source_suffix = { + '.rst': 'restructuredtext', + '.md': 'markdown', +} + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This pattern also affects html_static_path and html_extra_path. +exclude_patterns = [] + +pygments_style = 'sphinx' + +autodoc_inherit_docstrings = False + +# -- Options for HTML output ------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +html_search_language = 'zh' + +html_search_options = {'dict': '../../resource/jieba.txt'} + +html_static_path = ['_static'] + + diff --git a/docs/api_python/source_zh_cn/conf.py b/docs/api_python/source_zh_cn/conf.py index 2e2c89c42b..e10907fd01 100644 --- a/docs/api_python/source_zh_cn/conf.py +++ b/docs/api_python/source_zh_cn/conf.py @@ -76,7 +76,7 @@ html_theme = 'sphinx_rtd_theme' html_search_language = 'zh' -html_search_options = {'dict': '../resource/jieba.txt'} +html_search_options = {'dict': '../../resource/jieba.txt'} html_static_path = ['_static'] diff --git a/docs/faq/source_en/conf.py b/docs/faq/source_en/conf.py new file mode 100644 index 0000000000..fd6e7a496a --- /dev/null +++ b/docs/faq/source_en/conf.py @@ -0,0 +1,78 @@ +# Configuration file for the Sphinx documentation builder. +# +# This file only contains a selection of the most common options. For a full +# list see the documentation: +# https://www.sphinx-doc.org/en/master/usage/configuration.html + +# -- Path setup -------------------------------------------------------------- + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +# import sys +# sys.path.append('..') +# sys.path.insert(0, os.path.abspath('.')) + +import mindspore +# If you don't want to generate MindArmour APIs, comment this line. +import mindarmour +# If you don't want to generate MindSpore_Hub APIs, comment this line. +import mindspore_hub + + +# -- Project information ----------------------------------------------------- + +project = 'MindSpore' +copyright = '2020, MindSpore' +author = 'MindSpore' + +# The full version, including alpha/beta/rc tags +release = 'master' + + +# -- General configuration --------------------------------------------------- + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + 'sphinx.ext.autodoc', + 'sphinx.ext.autosummary', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.napoleon', + 'sphinx.ext.viewcode', + 'sphinx_markdown_tables', + 'recommonmark', +] + +source_suffix = { + '.rst': 'restructuredtext', + '.md': 'markdown', +} + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This pattern also affects html_static_path and html_extra_path. +exclude_patterns = [] + +pygments_style = 'sphinx' + +autodoc_inherit_docstrings = False + +# -- Options for HTML output ------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +html_static_path = ['_static'] + diff --git a/docs/faq/source_zh_cn/conf.py b/docs/faq/source_zh_cn/conf.py new file mode 100644 index 0000000000..ef1fea6845 --- /dev/null +++ b/docs/faq/source_zh_cn/conf.py @@ -0,0 +1,83 @@ +# Configuration file for the Sphinx documentation builder. +# +# This file only contains a selection of the most common options. For a full +# list see the documentation: +# https://www.sphinx-doc.org/en/master/usage/configuration.html + +# -- Path setup -------------------------------------------------------------- + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +# import sys +# sys.path.append('..') +# sys.path.insert(0, os.path.abspath('.')) + +import mindspore +# If you don't want to generate MindArmour APIs, comment this line. +import mindarmour +# If you don't want to generate MindSpore_Hub APIs, comment this line. +import mindspore_hub + + +# -- Project information ----------------------------------------------------- + +project = 'MindSpore' +copyright = '2020, MindSpore' +author = 'MindSpore' + +# The full version, including alpha/beta/rc tags +release = 'master' + + +# -- General configuration --------------------------------------------------- + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + 'sphinx.ext.autodoc', + 'sphinx.ext.autosummary', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.napoleon', + 'sphinx.ext.viewcode', + 'sphinx_markdown_tables', + 'recommonmark', +] + +source_suffix = { + '.rst': 'restructuredtext', + '.md': 'markdown', +} + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This pattern also affects html_static_path and html_extra_path. +exclude_patterns = [] + +pygments_style = 'sphinx' + +autodoc_inherit_docstrings = False + +# -- Options for HTML output ------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +html_search_language = 'zh' + +html_search_options = {'dict': '../../resource/jieba.txt'} + +html_static_path = ['_static'] + + diff --git a/docs/note/source_zh_cn/conf.py b/docs/note/source_zh_cn/conf.py index f58451f3fa..93e4a946fb 100644 --- a/docs/note/source_zh_cn/conf.py +++ b/docs/note/source_zh_cn/conf.py @@ -59,6 +59,6 @@ html_theme = 'sphinx_rtd_theme' html_search_language = 'zh' -html_search_options = {'dict': '../resource/jieba.txt'} +html_search_options = {'dict': '../../resource/jieba.txt'} html_static_path = ['_static'] \ No newline at end of file diff --git a/docs/programming_guide/source_en/conf.py b/docs/programming_guide/source_en/conf.py new file mode 100644 index 0000000000..6db42071de --- /dev/null +++ b/docs/programming_guide/source_en/conf.py @@ -0,0 +1,60 @@ +# Configuration file for the Sphinx documentation builder. +# +# This file only contains a selection of the most common options. For a full +# list see the documentation: +# https://www.sphinx-doc.org/en/master/usage/configuration.html + +# -- Path setup -------------------------------------------------------------- + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os + + +# -- Project information ----------------------------------------------------- + +project = 'MindSpore' +copyright = '2020, MindSpore' +author = 'MindSpore' + +# The full version, including alpha/beta/rc tags +release = 'master' + + +# -- General configuration --------------------------------------------------- + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + 'sphinx_markdown_tables', + 'recommonmark', +] + +source_suffix = { + '.rst': 'restructuredtext', + '.md': 'markdown', +} + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This pattern also affects html_static_path and html_extra_path. +exclude_patterns = [] + +pygments_style = 'sphinx' + +autodoc_inherit_docstrings = False + +# -- Options for HTML output ------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +html_static_path = ['_static'] \ No newline at end of file diff --git a/docs/programming_guide/source_zh_cn/conf.py b/docs/programming_guide/source_zh_cn/conf.py new file mode 100644 index 0000000000..93e4a946fb --- /dev/null +++ b/docs/programming_guide/source_zh_cn/conf.py @@ -0,0 +1,64 @@ +# Configuration file for the Sphinx documentation builder. +# +# This file only contains a selection of the most common options. For a full +# list see the documentation: +# https://www.sphinx-doc.org/en/master/usage/configuration.html + +# -- Path setup -------------------------------------------------------------- + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os + + +# -- Project information ----------------------------------------------------- + +project = 'MindSpore' +copyright = '2020, MindSpore' +author = 'MindSpore' + +# The full version, including alpha/beta/rc tags +release = 'master' + + +# -- General configuration --------------------------------------------------- + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + 'sphinx_markdown_tables', + 'recommonmark', +] + +source_suffix = { + '.rst': 'restructuredtext', + '.md': 'markdown', +} + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This pattern also affects html_static_path and html_extra_path. +exclude_patterns = [] + +pygments_style = 'sphinx' + +autodoc_inherit_docstrings = False + +# -- Options for HTML output ------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +html_search_language = 'zh' + +html_search_options = {'dict': '../../resource/jieba.txt'} + +html_static_path = ['_static'] \ No newline at end of file diff --git a/tutorials/inference/source_zh_cn/conf.py b/tutorials/inference/source_zh_cn/conf.py index c2d1fb8282..0c819a8b06 100644 --- a/tutorials/inference/source_zh_cn/conf.py +++ b/tutorials/inference/source_zh_cn/conf.py @@ -58,6 +58,6 @@ html_theme = 'sphinx_rtd_theme' html_search_language = 'zh' -html_search_options = {'dict': '../resource/jieba.txt'} +html_search_options = {'dict': '../../resource/jieba.txt'} html_static_path = ['_static'] \ No newline at end of file diff --git a/tutorials/lite/source_zh_cn/conf.py b/tutorials/lite/source_zh_cn/conf.py index c2ba20320a..0c819a8b06 100644 --- a/tutorials/lite/source_zh_cn/conf.py +++ b/tutorials/lite/source_zh_cn/conf.py @@ -16,9 +16,9 @@ import sys # -- Project information ----------------------------------------------------- -project = 'MindSpore Lite' -copyright = '2020, MindSpore Lite' -author = 'MindSpore Lite' +project = 'MindSpore' +copyright = '2020, MindSpore' +author = 'MindSpore' # The full version, including alpha/beta/rc tags release = 'master' @@ -58,4 +58,6 @@ html_theme = 'sphinx_rtd_theme' html_search_language = 'zh' +html_search_options = {'dict': '../../resource/jieba.txt'} + html_static_path = ['_static'] \ No newline at end of file diff --git a/tutorials/training/source_zh_cn/conf.py b/tutorials/training/source_zh_cn/conf.py index c2d1fb8282..0c819a8b06 100644 --- a/tutorials/training/source_zh_cn/conf.py +++ b/tutorials/training/source_zh_cn/conf.py @@ -58,6 +58,6 @@ html_theme = 'sphinx_rtd_theme' html_search_language = 'zh' -html_search_options = {'dict': '../resource/jieba.txt'} +html_search_options = {'dict': '../../resource/jieba.txt'} html_static_path = ['_static'] \ No newline at end of file -- Gitee