Skip to content

Commit 876ab96

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents eaedef8 + 98d9b34 commit 876ab96

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

doc/conf.py.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ AutoStructify = transform.AutoStructify
2323
# documentation root, use os.path.abspath to make it absolute, like shown here.
2424
sys.path.insert(0, '@PROJ_ROOT@/python')
2525

26+
templates_path = ["@PROJ_ROOT@/doc/templates"]
27+
2628
# -- Doxygen Settings
2729
breathe_projects = {
2830
'paddle': '@PADDLE_DOXYGEN_OUTPUT@/xml'
@@ -66,8 +68,6 @@ extensions = [
6668

6769
autodoc_member_order = 'bysource'
6870

69-
# Add any paths that contain templates here, relative to this directory.
70-
templates_path = ['_templates']
7171

7272
# The suffix(es) of source filenames.
7373
# You can specify multiple suffix as a list of string:

doc/templates/layout.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{# layout.html #}
2+
{# Import the theme's layout. #}
3+
{% extends "!layout.html" %}
4+
5+
6+
{%- block extrahead %}
7+
<script>
8+
var _hmt = _hmt || [];
9+
(function() {
10+
var hm = document.createElement("script");
11+
hm.src = "//hm.baidu.com/hm.js?b9a314ab40d04d805655aab1deee08ba";
12+
var s = document.getElementsByTagName("script")[0];
13+
s.parentNode.insertBefore(hm, s);
14+
})();
15+
</script>
16+
{% endblock %}

doc_cn/conf.py.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ AutoStructify = transform.AutoStructify
2222
# add these directories to sys.path here. If the directory is relative to the
2323
# documentation root, use os.path.abspath to make it absolute, like shown here.
2424
sys.path.insert(0, '@PROJ_ROOT@/python')
25+
templates_path = ["@PROJ_ROOT@/doc/templates"]
2526

2627
# -- General configuration ------------------------------------------------
2728

@@ -51,9 +52,6 @@ table_styling_embed_css = True
5152

5253
autodoc_member_order = 'bysource'
5354

54-
# Add any paths that contain templates here, relative to this directory.
55-
templates_path = ['_templates']
56-
5755
# The suffix(es) of source filenames.
5856
# You can specify multiple suffix as a list of string:
5957
# source_suffix = ['.rst', '.md']

0 commit comments

Comments
 (0)