Skip to content

Commit d43ad47

Browse files
committed
setup digital audio service
1 parent b2ca07e commit d43ad47

File tree

5 files changed

+102
-14
lines changed

5 files changed

+102
-14
lines changed

english/conf.py

Lines changed: 50 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## setup -> pip3 install -r requirements.txt
2+
13
# -*- coding: utf-8 -*-
24
#
35
# streamABC documentation build configuration file, created by
@@ -19,7 +21,9 @@
1921
# import os
2022
# import sys
2123
# sys.path.insert(0, os.path.abspath('.'))
22-
24+
import sys
25+
from datetime import datetime
26+
from os import path
2327

2428
# -- General configuration ------------------------------------------------
2529

@@ -31,7 +35,16 @@
3135
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3236
# ones.
3337
# extensions = ['sphinx.ext.githubpages']
34-
extensions = []
38+
extensions = [
39+
'hoverxref.extension',
40+
'notfound.extension',
41+
'sphinx.ext.autodoc',
42+
'sphinx.ext.coverage',
43+
'sphinx.ext.intersphinx',
44+
'sphinx.ext.viewcode',
45+
'sphinx.ext.autosectionlabel'
46+
]
47+
autosectionlabel_prefix_document = True
3548

3649
# Add any paths that contain templates here, relative to this directory.
3750
templates_path = ['_templates']
@@ -47,7 +60,7 @@
4760

4861
# General information about the project.
4962
project = u'QuantumCast'
50-
copyright = u'2020, QuantumCast'
63+
copyright = f'2019–{datetime.now().year}, QuantumCast, '
5164
author = u'QuantumCast'
5265

5366
# The version info for the project you're documenting, acts as replacement for
@@ -64,13 +77,13 @@
6477
#
6578
# This is also used if you do content translation via gettext catalogs.
6679
# Usually you set "language" from the command line for these cases.
67-
language = None
80+
language = 'en'
6881

6982
# List of patterns, relative to source directory, that match files and
7083
# directories to ignore when looking for source files.
7184
# This patterns also effect to html_static_path and html_extra_path
7285
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
73-
86+
exclude_trees = ['.build']
7487
# The name of the Pygments (syntax highlighting) style to use.
7588
pygments_style = 'sphinx'
7689

@@ -85,7 +98,9 @@
8598
#
8699
#html_theme = 'alabaster'
87100
html_theme = 'sphinx_rtd_theme'
88-
html_theme_path = ["themes"]
101+
#html_theme_path = ["themes"]
102+
import sphinx_rtd_theme
103+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
89104

90105
# Theme options are theme-specific and customize the look and feel of a theme
91106
# further. For a list of options available for each theme, see the
@@ -97,7 +112,7 @@
97112
# relative to this directory. They are copied after the builtin static files,
98113
# so a file named "default.css" will overwrite the builtin "default.css".
99114
html_static_path = ['_static']
100-
115+
html_last_updated_fmt = '%b %d, %Y'
101116
# Custom sidebar templates, must be a dictionary that maps document names
102117
# to template names.
103118
#
@@ -171,4 +186,32 @@
171186
]
172187

173188

189+
# Options for the InterSphinx extension
190+
# -------------------------------------
191+
192+
intersphinx_mapping = {
193+
'attrs': ('https://www.attrs.org/en/stable/', None),
194+
'coverage': ('https://coverage.readthedocs.io/en/stable', None),
195+
'cssselect': ('https://cssselect.readthedocs.io/en/latest', None),
196+
'itemloaders': ('https://itemloaders.readthedocs.io/en/latest/', None),
197+
'pytest': ('https://docs.pytest.org/en/latest', None),
198+
'python': ('https://docs.python.org/3', None),
199+
'sphinx': ('https://www.sphinx-doc.org/en/master', None),
200+
'tox': ('https://tox.readthedocs.io/en/latest', None),
201+
'twisted': ('https://twistedmatrix.com/documents/current', None),
202+
'twistedapi': ('https://twistedmatrix.com/documents/current/api', None),
203+
}
204+
205+
# Options for sphinx-hoverxref options
206+
# ------------------------------------
207+
208+
hoverxref_auto_ref = True
209+
hoverxref_role_types = {
210+
"class": "tooltip",
211+
"confval": "tooltip",
212+
"hoverxref": "tooltip",
213+
"mod": "tooltip",
214+
"ref": "tooltip",
215+
}
216+
hoverxref_roles = ['command', 'reqmeta', 'setting', 'signal']
174217

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
.. _topics-index:
3+
4+
==============================================
5+
Audio Backend Services |version| documentation
6+
==============================================
7+
8+
9+
Cloud computing has become an integral part of businesses across all industries.
10+
ABS is the first Audio cloud computing platform.
11+
12+
.. toctree::
13+
:maxdepth: 2
14+
:caption: Networking and Content Delivery
15+
:hidden:
16+
17+
topics/streamroute
18+
19+
20+
:doc:`topics/streamroute`
21+
Service for effectively connects user stream requests
22+
23+
24+
25+
Indices and tables
26+
==================
27+
28+
* :ref:`genindex`
29+
* :ref:`modindex`
30+
* :ref:`search`
31+
32+
----
33+
34+
For more information, please open a ticket: |helpdesk|
35+
36+
Visit our company website: |www.quantumcast-digital.com|
37+
38+
39+
40+
.. |helpdesk| raw:: html
41+
42+
<a href="https://streamabc.zammad.com" target="_blank">https://streamabc.zammad.com</a>
43+
44+
45+
.. |www.quantumcast-digital.com| raw:: html
46+
47+
<a href="https://www.quantumcast-digital.com/" target="_blank">www.quantumcast-digital.com</a>
48+
File renamed without changes.

english/index.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ The QuantumCast documentation is organized into several sections:
1616
(more coming soon)
1717

1818

19-
20-
.. toctree::
21-
:maxdepth: 2
22-
:caption: Digital Audio Services
23-
24-
streamroute
25-
2619
.. _distributor-docs:
2720

2821
.. toctree::

english/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Sphinx>=3.0
2+
sphinx-hoverxref>=0.2b1
3+
sphinx-notfound-page>=0.4
4+
sphinx_rtd_theme>=0.5

0 commit comments

Comments
 (0)