File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 9
9
import html2sgml_map
10
10
11
11
patternInsertPos = re .compile (r'.*<body>' ,re .S )
12
- InsertHTML = """<div style="text-align:right">
12
+ InsertHTML = """<div class="preheader"><div style="position: relative; overflow: hidden; margin: 10px 0;">
13
+ <form method="GET" action="/v2/doc_search" style="float: right; width: 400px; max-width: 100%;">
14
+ <input type="hidden" name="u" value="/docs/11" />
15
+ <input style="width: 80%; height: 40px; font-size: 1.0em; padding: 0 10px; margin: 0; border: 1px solid #ccc; box-sizing: border-box;" type="text" placeholder="在文档中查找..." name="q"
16
+ /><button style="width: 20%; height: 40px; font-size: 1.0em; padding: 0; margin: 0; border: 1px solid #ccc; box-sizing: border-box; border-left: 0; cursor: pointer;" type="submit" id="#submit">搜索</button>
17
+ </form></div>
18
+ <div style="text-align:right">
13
19
<a style="margin : 0px 0px 0px 10px;" href="https://github.com/postgres-cn/pgdoc-cn/issues/new" target="_blank" title="在Github上报告问题(请注明问题内容及所在章节)">问题报告</a>
14
20
<a style="margin : 0px 0px 0px 10px;" href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/{0}" target="_blank" title="直接在Github上纠错本页面">纠错本页面</a>
15
- </div>"""
21
+ </div></div> """
16
22
17
23
sgmlDir = "../build/doc/src/sgml"
18
24
htmlDir = os .path .join (sgmlDir ,"html" )
You can’t perform that action at this time.
0 commit comments