forked from docs/doc-exports
update confpy template for PDF
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Gode, Sebastian <sebastian.gode@t-systems.com> Co-committed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
This commit is contained in:
parent
7d71165909
commit
295b89bd31
@ -1760,31 +1760,6 @@ categories:
|
|||||||
- name: docs-database-rw
|
- name: docs-database-rw
|
||||||
permission: write
|
permission: write
|
||||||
repository: docs/gaussdb-mysql
|
repository: docs/gaussdb-mysql
|
||||||
- service_title: GaussDB NoSQL
|
|
||||||
service_type: gaussdb_nosql
|
|
||||||
service_category: database
|
|
||||||
service_environment: internal
|
|
||||||
docs:
|
|
||||||
- html_location: docs/gaussdb_nosql/api-ref
|
|
||||||
rst_location: api-ref/source
|
|
||||||
title: API Reference
|
|
||||||
type: api-ref
|
|
||||||
link: /gaussdb-nosql/api-ref/
|
|
||||||
pdf_name: gaussdb_nosql-api-ref
|
|
||||||
hc_location: api/nosql
|
|
||||||
disable_import: false
|
|
||||||
- html_location: docs/gaussdb_nosql/umn
|
|
||||||
rst_location: umn/source
|
|
||||||
title: User Guide
|
|
||||||
type: umn
|
|
||||||
link: /gaussdb-nosql/umn/
|
|
||||||
pdf_name: gauss_nosql
|
|
||||||
hc_location: usermanual/nosql
|
|
||||||
disable_import: false
|
|
||||||
teams:
|
|
||||||
- name: docs-database-rw
|
|
||||||
permission: write
|
|
||||||
repository: docs/gaussdb-nosql
|
|
||||||
- service_title: GeminiDB
|
- service_title: GeminiDB
|
||||||
service_type: geminidb
|
service_type: geminidb
|
||||||
service_category: database
|
service_category: database
|
||||||
|
@ -106,6 +106,7 @@ html_title = "{{ title }}"
|
|||||||
# relative to this directory. They are copied after the builtin static files,
|
# relative to this directory. They are copied after the builtin static files,
|
||||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||||
html_static_path = ['_static']
|
html_static_path = ['_static']
|
||||||
|
templates_path = ['_templates']
|
||||||
|
|
||||||
# Do not include sources into the rendered results
|
# Do not include sources into the rendered results
|
||||||
html_copy_source = False
|
html_copy_source = False
|
||||||
@ -125,3 +126,11 @@ repo = Repo(search_parent_directories=True)
|
|||||||
commit = repo.head.commit
|
commit = repo.head.commit
|
||||||
current_commit_hash = commit.hexsha
|
current_commit_hash = commit.hexsha
|
||||||
current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')
|
current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')
|
||||||
|
|
||||||
|
latex_elements = {
|
||||||
|
'papersize': 'a4paper',
|
||||||
|
'pointsize': '12pt',
|
||||||
|
'figure_align': 'H',
|
||||||
|
'preamble': r'\newcommand{\githash}{' + current_commit_hash + '}',
|
||||||
|
'sphinxsetup': 'hmargin={15mm,15mm}, vmargin={20mm,30mm}, marginpar=10mm'
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user