-
-
Notifications
You must be signed in to change notification settings - Fork 445
/
Copy pathconf.py
46 lines (36 loc) · 1.11 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- coding: utf-8 -*-
### General settings
extensions = []
source_suffix = '.rst'
master_doc = 'index'
project = u'Firebase Admin SDK for PHP'
author = u'Jérôme Gamez'
copyright = u'Jérôme Gamez'
version = u'7.x'
html_title = u'Firebase Admin SDK for PHP Documentation'
html_short_title = u'Firebase Admin SDK for PHP'
exclude_patterns = ['_build']
html_static_path = ['_static']
suppress_warnings = ['image.nonlocal_uri']
### Theme settings
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme_options = {
'canonical_url': 'https://firebase-php.readthedocs.io',
'analytics_id': 'G-KPCRZZ3XW4'
}
### Syntax Highlighting
from sphinx.highlighting import lexers
from pygments.lexers.web import PhpLexer
lexers['php'] = PhpLexer(startinline=True, linenos=1)
lexers['php-annotations'] = PhpLexer(startinline=True, linenos=1)
### Integrations
html_context = {
'display_github': True,
'github_user': 'kreait',
'github_repo': 'firebase-php',
'github_version': '7.x',
'conf_py_path': '/docs/',
'source_suffix': '.rst',
}