mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-16 16:23:30 +00:00
Pt 2091 doc migration render (#552)
PT-2091 Docs configuration for Render builds * Added Sphinx-material theme and customizations * Changed Makefile to use Material theme * Customized the theme * Added a separate config for render builds
This commit is contained in:

committed by
GitHub

parent
210aafa85a
commit
cc5bfbe39f
34
config/sphinx-build/conf-material/conf.py
Normal file
34
config/sphinx-build/conf-material/conf.py
Normal file
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
import sys
|
||||
import os
|
||||
sys.path.append(os.path.abspath("../"))
|
||||
from conf import *
|
||||
extensions.append('sphinx_gitstamp')
|
||||
extensions.append('sphinx_copybutton')
|
||||
html_sidebars['**']=['globaltoc.html', 'searchbox.html', 'localtoc.html', 'logo-text.html']
|
||||
html_theme = 'sphinx_material'
|
||||
html_theme_options = {
|
||||
'base_url': 'http://bashtage.github.io/sphinx-material/',
|
||||
'repo_url': 'https://github.com/percona/percona-server',
|
||||
'repo_name': 'percona/percona-server',
|
||||
'color_accent': 'grey',
|
||||
'color_primary': 'orange',
|
||||
'globaltoc_collapse': True,
|
||||
'version_dropdown': True
|
||||
}
|
||||
html_logo = '../_static/percona-logo.svg'
|
||||
html_favicon = '../_static/percona_favicon.ico'
|
||||
pygments_style = 'emacs'
|
||||
gitstamp_fmt = "%b %d, %Y"
|
||||
# Specify the text pattern that won't be copied with the code block contents
|
||||
copybutton_prompt_text = '$'
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['../_static/_templates/theme']
|
||||
#html_last_updated_fmt = ''
|
||||
|
||||
# Path to custom css files. These will override the default css attribute if they exist
|
||||
html_css_files = [
|
||||
'../_static/css/material.css',
|
||||
]
|
||||
|
Reference in New Issue
Block a user