From db9a427551a7a49288c8f584bd50d8f2381f0d94 Mon Sep 17 00:00:00 2001 From: whs Date: Fri, 15 May 2020 16:05:37 +0800 Subject: [PATCH] Fix en docs (#283) --- docs/en/Makefile | 1 - docs/en/conf.py | 4 ++-- docs/en/{index_en.rst => index.rst} | 2 -- docs/zh_cn/Makefile | 1 - docs/zh_cn/conf.py | 2 +- 5 files changed, 3 insertions(+), 7 deletions(-) rename docs/en/{index_en.rst => index.rst} (93%) diff --git a/docs/en/Makefile b/docs/en/Makefile index cba75daa..141d0b25 100644 --- a/docs/en/Makefile +++ b/docs/en/Makefile @@ -17,4 +17,3 @@ help: # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) - rm -rf $(BUILDDIR)/html/index.html diff --git a/docs/en/conf.py b/docs/en/conf.py index 68baa73f..30d2fd07 100644 --- a/docs/en/conf.py +++ b/docs/en/conf.py @@ -25,7 +25,7 @@ author = u'paddleslim' # The short X.Y version version = u'' # The full version, including alpha/beta/rc tags -release = u'1.0' +release = u'' # -- General configuration --------------------------------------------------- @@ -58,7 +58,7 @@ source_suffix = ['.rst', '.md'] #source_suffix = '.rst' # The master toctree document. -master_doc = 'index_en' +master_doc = 'index' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/en/index_en.rst b/docs/en/index.rst similarity index 93% rename from docs/en/index_en.rst rename to docs/en/index.rst index eae4cda4..21bdecb6 100644 --- a/docs/en/index_en.rst +++ b/docs/en/index.rst @@ -15,5 +15,3 @@ Index tutorials/index_en api_en/index_en model_zoo_en.md - -.. mdinclude:: intro_en.md diff --git a/docs/zh_cn/Makefile b/docs/zh_cn/Makefile index d7625935..141d0b25 100644 --- a/docs/zh_cn/Makefile +++ b/docs/zh_cn/Makefile @@ -17,4 +17,3 @@ help: # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) - rm -rf $(BUILDDIR)/$@/index_en.html diff --git a/docs/zh_cn/conf.py b/docs/zh_cn/conf.py index 7d60b8fe..e9425e93 100644 --- a/docs/zh_cn/conf.py +++ b/docs/zh_cn/conf.py @@ -25,7 +25,7 @@ author = u'paddleslim' # The short X.Y version version = u'' # The full version, including alpha/beta/rc tags -release = u'1.0' +release = u'' # -- General configuration --------------------------------------------------- -- GitLab