Skip to content

Commit 444c38e

Browse files
committed
Travis CI configuration
1 parent 75ad441 commit 444c38e

File tree

5 files changed

+333
-0
lines changed

5 files changed

+333
-0
lines changed

.travis.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: python
2+
dist: xenial
3+
python:
4+
- "3.7"
5+
addons:
6+
apt:
7+
packages:
8+
- pandoc
9+
- ffmpeg
10+
install:
11+
- pip install -r requirements.txt
12+
- pip install -r ci/requirements.txt
13+
script:
14+
- python -m sphinx . _build/ -b html

apt.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
libsndfile1
2+
sndfile-programs

ci/requirements.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Sphinx>=1.3.6
2+
Sphinx-RTD-Theme
3+
nbsphinx
4+
ipykernel
5+
sphinx_bootstrap_theme

conf.py

+305
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,305 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
#
4+
# Digital Signal Processing documentation build configuration file, created by
5+
# sphinx-quickstart on Sat Dec 26 19:02:47 2015.
6+
#
7+
# This file is execfile()d with the current directory set to its
8+
# containing dir.
9+
#
10+
# Note that not all possible configuration values are present in this
11+
# autogenerated file.
12+
#
13+
# All configuration values have a default; values that are commented out
14+
# serve to show the default.
15+
16+
import sys
17+
import os
18+
19+
import sphinx_bootstrap_theme
20+
21+
# If extensions (or modules to document with autodoc) are in another directory,
22+
# add these directories to sys.path here. If the directory is relative to the
23+
# documentation root, use os.path.abspath to make it absolute, like shown here.
24+
#sys.path.insert(0, os.path.abspath('.'))
25+
26+
# -- General configuration ------------------------------------------------
27+
28+
# If your documentation needs a minimal Sphinx version, state it here.
29+
#needs_sphinx = '1.0'
30+
31+
# Add any Sphinx extension module names here, as strings. They can be
32+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
33+
# ones.
34+
extensions = [
35+
'nbsphinx',
36+
'sphinx.ext.mathjax',
37+
]
38+
39+
# Add any paths that contain templates here, relative to this directory.
40+
templates_path = ['_templates']
41+
42+
# The suffix(es) of source filenames.
43+
# You can specify multiple suffix as a list of string:
44+
# source_suffix = ['.rst', '.md']
45+
46+
# The encoding of source files.
47+
#source_encoding = 'utf-8-sig'
48+
49+
# The master toctree document.
50+
master_doc = 'index'
51+
52+
# General information about the project.
53+
project = 'Digital Signal Processing'
54+
copyright = 'Sascha Spors, University of Rostock'
55+
author = 'Sascha Spors'
56+
57+
# The version info for the project you're documenting, acts as replacement for
58+
# |version| and |release|, also used in various other places throughout the
59+
# built documents.
60+
#
61+
# The short X.Y version.
62+
version = '0.9'
63+
# The full version, including alpha/beta/rc tags.
64+
release = 'Wintersemester 2019/20'
65+
66+
# The language for content autogenerated by Sphinx. Refer to documentation
67+
# for a list of supported languages.
68+
#
69+
# This is also used if you do content translation via gettext catalogs.
70+
# Usually you set "language" from the command line for these cases.
71+
language = None
72+
73+
# There are two options for replacing |today|: either, you set today to some
74+
# non-false value, then it is used:
75+
#today = ''
76+
# Else, today_fmt is used as the format for a strftime call.
77+
#today_fmt = '%B %d, %Y'
78+
79+
# List of patterns, relative to source directory, that match files and
80+
# directories to ignore when looking for source files.
81+
exclude_patterns = ['_build', '**.ipynb_checkpoints', 'demos', 'data', 'export', '**/_*.ipynb']
82+
83+
# The reST default role (used for this markup: `text`) to use for all
84+
# documents.
85+
#default_role = None
86+
87+
# If true, '()' will be appended to :func: etc. cross-reference text.
88+
#add_function_parentheses = True
89+
90+
# If true, the current module name will be prepended to all description
91+
# unit titles (such as .. function::).
92+
#add_module_names = True
93+
94+
# If true, sectionauthor and moduleauthor directives will be shown in the
95+
# output. They are ignored by default.
96+
#show_authors = False
97+
98+
# The name of the Pygments (syntax highlighting) style to use.
99+
pygments_style = 'sphinx'
100+
101+
# A list of ignored prefixes for module index sorting.
102+
#modindex_common_prefix = []
103+
104+
# If true, keep warnings as "system message" paragraphs in the built documents.
105+
#keep_warnings = False
106+
107+
# If true, `todo` and `todoList` produce output, else they produce nothing.
108+
todo_include_todos = False
109+
110+
111+
# -- Options for HTML output ----------------------------------------------
112+
113+
# The theme to use for HTML and HTML Help pages. See the documentation for
114+
# a list of builtin themes.
115+
html_theme = 'bootstrap'
116+
117+
# Theme options are theme-specific and customize the look and feel of a theme
118+
# further. For a list of options available for each theme, see the
119+
# documentation.
120+
html_theme_options = {
121+
'navbar_title': 'DSP',
122+
'navbar_site_name': 'Chapters',
123+
'navbar_pagenav_name': 'This Page',
124+
'navbar_fixed_top': 'false',
125+
'source_link_position': 'none',
126+
'bootswatch_theme': 'cosmo',
127+
#'bootswatch_theme': 'lumen',
128+
#'bootswatch_theme': 'sandstone',
129+
#'bootswatch_theme': 'spacelab',
130+
}
131+
132+
# Add any paths that contain custom themes here, relative to this directory.
133+
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
134+
135+
# The name for this set of Sphinx documents. If None, it defaults to
136+
# "<project> v<release> documentation".
137+
#html_title = None
138+
139+
# A shorter title for the navigation bar. Default is the same as html_title.
140+
#html_short_title = None
141+
142+
# The name of an image file (relative to this directory) to place at the top
143+
# of the sidebar.
144+
#html_logo = None
145+
146+
# The name of an image file (within the static path) to use as favicon of the
147+
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
148+
# pixels large.
149+
#html_favicon = None
150+
151+
# Add any paths that contain custom static files (such as style sheets) here,
152+
# relative to this directory. They are copied after the builtin static files,
153+
# so a file named "default.css" will overwrite the builtin "default.css".
154+
#html_static_path = ['_static']
155+
156+
# Add any extra paths that contain custom files (such as robots.txt or
157+
# .htaccess) here, relative to this directory. These files are copied
158+
# directly to the root of the documentation.
159+
#html_extra_path = []
160+
161+
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
162+
# using the given strftime format.
163+
#html_last_updated_fmt = '%b %d, %Y'
164+
165+
# If true, SmartyPants will be used to convert quotes and dashes to
166+
# typographically correct entities.
167+
#html_use_smartypants = True
168+
169+
# Custom sidebar templates, maps document names to template names.
170+
#html_sidebars = {}
171+
172+
# Additional templates that should be rendered to pages, maps page names to
173+
# template names.
174+
#html_additional_pages = {}
175+
176+
# If false, no module index is generated.
177+
#html_domain_indices = True
178+
179+
# If false, no index is generated.
180+
#html_use_index = True
181+
182+
# If true, the index is split into individual pages for each letter.
183+
#html_split_index = False
184+
185+
# If true, links to the reST sources are added to the pages.
186+
#html_show_sourcelink = True
187+
188+
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
189+
#html_show_sphinx = True
190+
191+
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
192+
#html_show_copyright = True
193+
194+
# If true, an OpenSearch description file will be output, and all pages will
195+
# contain a <link> tag referring to it. The value of this option must be the
196+
# base URL from which the finished HTML is served.
197+
#html_use_opensearch = ''
198+
199+
# This is the file name suffix for HTML files (e.g. ".xhtml").
200+
#html_file_suffix = None
201+
202+
# Language to be used for generating the HTML full-text search index.
203+
# Sphinx supports the following languages:
204+
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
205+
# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr'
206+
#html_search_language = 'en'
207+
208+
# A dictionary with options for the search language support, empty by default.
209+
# Now only 'ja' uses this config value
210+
#html_search_options = {'type': 'default'}
211+
212+
# The name of a javascript file (relative to the configuration directory) that
213+
# implements a search results scorer. If empty, the default will be used.
214+
#html_search_scorer = 'scorer.js'
215+
216+
# Output file base name for HTML help builder.
217+
htmlhelp_basename = 'Digital_Signal_Processing_doc'
218+
219+
# -- Options for LaTeX output ---------------------------------------------
220+
nbsphinx_execute_arguments = ['--InlineBackend.figure_formats={"svg", "pdf"}']
221+
nbsphinx_execute = 'never'
222+
nbsphinx_timeout = 300
223+
nbsphinx_allow_errors = False
224+
225+
226+
latex_elements = {
227+
# The paper size ('letterpaper' or 'a4paper').
228+
'papersize': 'a4paper',
229+
230+
# The font size ('10pt', '11pt' or '12pt').
231+
#'pointsize': '10pt',
232+
233+
# Additional stuff for the LaTeX preamble.
234+
'preamble': r"""
235+
\usepackage{amssymb}
236+
\setcounter{tocdepth}{2}
237+
""",
238+
239+
# Latex figure (float) alignment
240+
#'figure_align': 'htbp',
241+
}
242+
243+
# Grouping the document tree into LaTeX files. List of tuples
244+
# (source start file, target name, title,
245+
# author, documentclass [howto, manual, or own class]).
246+
latex_documents = [
247+
(master_doc, 'Digital_Signal_Processing.tex', project, author, 'manual'),
248+
]
249+
250+
# The name of an image file (relative to this directory) to place at the top of
251+
# the title page.
252+
#latex_logo = None
253+
254+
# For "manual" documents, if this is true, then toplevel headings are parts,
255+
# not chapters.
256+
#latex_use_parts = False
257+
258+
# If true, show page references after internal links.
259+
#latex_show_pagerefs = False
260+
261+
# If true, show URL addresses after external links.
262+
#latex_show_urls = False
263+
264+
# Documents to append as an appendix to all manuals.
265+
#latex_appendices = []
266+
267+
# If false, no module index is generated.
268+
#latex_domain_indices = True
269+
270+
271+
# -- Options for manual page output ---------------------------------------
272+
273+
# One entry per manual page. List of tuples
274+
# (source start file, name, description, authors, manual section).
275+
man_pages = [
276+
(master_doc, 'digitalsignalprocessing', 'Digital Signal Processing',
277+
[author], 1)
278+
]
279+
280+
# If true, show URL addresses after external links.
281+
#man_show_urls = False
282+
283+
284+
# -- Options for Texinfo output -------------------------------------------
285+
286+
# Grouping the document tree into Texinfo files. List of tuples
287+
# (source start file, target name, title, author,
288+
# dir menu entry, description, category)
289+
texinfo_documents = [
290+
(master_doc, 'Digital_Signal_Processing', 'Digital Signal Processing',
291+
author, 'Digital_Signal_Processing', 'Lecture notes featuring computational examples',
292+
'Miscellaneous'),
293+
]
294+
295+
# Documents to append as an appendix to all manuals.
296+
#texinfo_appendices = []
297+
298+
# If false, no module index is generated.
299+
#texinfo_domain_indices = True
300+
301+
# How to display URL addresses: 'footnote', 'no', or 'inline'.
302+
#texinfo_show_urls = 'footnote'
303+
304+
# If true, do not generate a @detailmenu in the "Top" node's menu.
305+
#texinfo_no_detailmenu = False

requirements.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
matplotlib
2+
numpy
3+
scipy
4+
soundfile
5+
sympy
6+
statsmodels
7+
sounddevice

0 commit comments

Comments
 (0)