diff --git a/doc/templates/conf.py.cn.in b/doc/templates/conf.py.cn.in index 3ad6137c419bf..32b2071385d9a 100644 --- a/doc/templates/conf.py.cn.in +++ b/doc/templates/conf.py.cn.in @@ -22,6 +22,11 @@ import paddle.v2 MarkdownParser = parser.CommonMarkParser AutoStructify = transform.AutoStructify +# 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. +templates_path = ["@PADDLE_SOURCE_DIR@/doc/templates"] + # -- General configuration ------------------------------------------------ # General information about the project. diff --git a/doc/templates/conf.py.en.in b/doc/templates/conf.py.en.in index aa021320a95ba..a454e80c61cdf 100644 --- a/doc/templates/conf.py.en.in +++ b/doc/templates/conf.py.en.in @@ -23,6 +23,11 @@ import paddle.v2 MarkdownParser = parser.CommonMarkParser AutoStructify = transform.AutoStructify +# 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. +templates_path = ["@PADDLE_SOURCE_DIR@/doc/templates"] + # -- General configuration ------------------------------------------------ # General information about the project. diff --git a/doc/templates/layout.html b/doc/templates/layout.html index 47329c2a928d0..5091eb32eaeff 100644 --- a/doc/templates/layout.html +++ b/doc/templates/layout.html @@ -2,6 +2,13 @@ {# Import the theme's layout. #} {% extends "!layout.html" %} +{# SIDE NAV, TOGGLES ON MOBILE #} +{% block menu %} + +{% endblock %} {%- block extrahead %}