Skip to content

Commit a48a69a

Browse files
committed
Merge start page and theory page, switch to rtd theme
* Switch to rtd theme * Include general statement and fix settings * Chnage heading of contents * Fix intro text
1 parent 48362a0 commit a48a69a

File tree

5 files changed

+53
-40
lines changed

5 files changed

+53
-40
lines changed

Makefile

+9-10
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ SPHINXBUILD = sphinx-build
1616
PAPER =
1717
SOURCEDIR = .
1818
BUILDDIR = ./_build
19-
VERSION = $(shell python ./_include/version.py)
2019

2120
# User-friendly check for sphinx-build
2221
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
@@ -45,27 +44,27 @@ clean:
4544
rm -rf $(BUILDDIR)/*
4645

4746
html-preview:
48-
$(SPHINXBUILD) -b html -A web=0 $(ALLSPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/html-preview/$(VERSION)
47+
$(SPHINXBUILD) -b html -A web=0 $(ALLSPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/html-preview
4948
@echo
50-
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html-preview/$(VERSION)."
49+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html-preview/."
5150

5251
html:
53-
$(SPHINXBUILD) -b dirhtml -A web=1 $(ALLSPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/html/$(VERSION)
52+
$(SPHINXBUILD) -b dirhtml -A web=1 $(ALLSPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/html
5453
@echo
55-
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html/$(VERSION)."
54+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html/."
5655

5756
latex:
58-
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/latex/$(VERSION)
57+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/latex
5958
@echo
60-
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex/$(VERSION)."
59+
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex/."
6160
@echo "Run \`make' in that directory to run these through (pdf)latex" \
6261
"(use \`make latexpdf' here to do that automatically)."
6362

6463
latexpdf:
65-
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/latex/$(VERSION)
64+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/latex
6665
@echo "Running LaTeX files through pdflatex..."
67-
$(MAKE) -C $(BUILDDIR)/latex/$(VERSION) all-pdf
68-
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex/$(VERSION)."
66+
$(MAKE) -C $(BUILDDIR)/latex all-pdf
67+
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex/."
6968

7069
linkcheck:
7170
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/linkcheck

conf.py

+5-12
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import os
55
import shlex
66
import sphinx_rtd_theme
7-
import sfsdoc
87
#import subprocess
98

109
# If extensions (or modules to document with autodoc) are in another directory,
@@ -37,7 +36,7 @@
3736
# Enable numbering of figures and tables
3837
numfig = True
3938

40-
# Plot settings ofr matplot
39+
# Plot settings for matplot
4140
plot_include_source = True
4241
plot_html_show_source_link = False
4342
plot_html_show_formats = False
@@ -55,7 +54,7 @@
5554
master_doc = 'contents'
5655

5756
# General information about the project. (substitutions)
58-
project = 'SFS Toolbox - Documentation'
57+
project = 'SFS Toolbox -- Theory'
5958
copyright = '2016, SFS Toolbox Developers'
6059
author = 'SFS Toolbox Developers'
6160

@@ -67,12 +66,6 @@
6766
except Exception:
6867
release = '<unknown>'
6968

70-
# Definition of variables that are used by the versions.html theme file
71-
html_context = {'active_tab': 'theory',
72-
'home_url': 'http://theory.sfstoolbox.org',
73-
'github_url': 'http://github.com/sfstoolbox/sfs-documentation'}
74-
75-
7669
# List of patterns, relative to source directory, that match files and
7770
# directories to ignore when looking for source files.
7871
exclude_patterns = ['_build']
@@ -92,10 +85,10 @@
9285

9386
# The theme to use for HTML and HTML Help pages. See the documentation for
9487
# a list of builtin themes.
95-
html_theme = "sfs"
88+
html_theme = "sphinx_rtd_theme"
9689

9790
# Add any paths that contain custom themes here, relative to this directory.
98-
html_theme_path = [sfsdoc.get_theme_dir(),sphinx_rtd_theme.get_html_theme_path()]
91+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
9992

10093
# The name for this set of Sphinx documents. If None, it defaults to
10194
# "<project> v<release> documentation".
@@ -156,7 +149,7 @@
156149
# (source start file, target name, title,
157150
# author, documentclass [howto, manual, or own class]).
158151
latex_documents = [
159-
(master_doc, 'sfs-toolbox-documentation.tex', u'SFS Toolbox - Documentation',
152+
(master_doc, 'sfs-toolbox-documentation.tex', u'SFS Toolbox -- Theory',
160153
u'SFS Toolbox team', 'manual'),
161154
]
162155

contents.txt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
.. _contents:
22

3-
=========================
4-
SFS Toolbox documentation
5-
=========================
3+
Contents
4+
========
65

76
.. toctree::
8-
:maxdepth: 2
7+
:maxdepth: 3
98

109
index

index.txt

+36-12
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,31 @@
1-
.. _chap-theory:
1+
SFS Toolbox -- Theory
2+
=====================
3+
4+
.. .. image:: img/header.png
5+
6+
Sound field synthesis (SFS) includes all methods that try to generate a defined
7+
sound field in an extended area that is surrounded by loudspeakers. The SFS
8+
Toolbox focuses on those methods that provide analytical solutions to the
9+
underlying mathematical problem, namely |WFS|, |NFC-HOA|, and the |SDM|.
10+
11+
The Toolbox provides you with the implementation of the underlying
12+
mathematics. You can make numerical simulations of the resulting sound fields
13+
and can even create binaural simulations of the same sound fields. This enables
14+
you to listen to large loudspeaker arrays, even if you don’t have one in your
15+
laboratory or at home. In addition, you can easily plug-in your own algorithms
16+
in order to test or compare them.
17+
18+
The Toolbox is structured in the following three projects.
19+
20+
Theory:
21+
http://sfstoolbox.org/ (current page)
22+
23+
SFS Toolbox for Matlab/Octave:
24+
http://matlab.sfstoolbox.org
25+
26+
SFS Toolbox for Python:
27+
http://python.sfstoolbox.org
228

3-
Theory of sound field synthesis
4-
===============================
529

630
.. Latex macros definitions used in this document
731
.. container:: hidden
@@ -17,10 +41,10 @@ Theory of sound field synthesis
1741
\def \twohalfD {{2.5\text{D}}\,}
1842
\def \threeD {{3\text{D}}\,}
1943
20-
Most of the figures in this chapter are directly created by the python variant
21-
of the |SFS Toolbox|. All of them display the corresponding code for creating
22-
them directly before the actual figure. In order to recreate them, you have to
23-
execute the following code first:
44+
Most of the figures in this page are directly created by the SFS Toolbox for
45+
Python. All of them display the corresponding code for creating them directly
46+
before the actual figure. In order to recreate them, you have to execute the
47+
following code first:
2448

2549
.. Common plotting settings
2650
.. plot::
@@ -476,7 +500,7 @@ into :eq:`D_wfs` as
476500
\underbrace{-2 w(\x_0) \partial_\n S(\x_0,\omega)}_{D(\x_0,\omega)} \;
477501
{\mathop{\mathrm{d}{A}}}(\x_0).
478502
479-
In the |SFS Toolbox| we assume convex secondary source distributions, which
503+
In the SFS Toolbox we assume convex secondary source distributions, which
480504
allows to formulate the window function by a scalar product with the normal
481505
vector of the secondary source distribution. In general, also non-convex
482506
secondary source distributions can be used with |WFS| – compare the appendix in
@@ -635,7 +659,7 @@ This document will consider only model-based rendering.
635659

636660
Frequently applied models in model-based rendering are plane waves, point
637661
sources, or sources with a prescribed complex directivity. In the following the
638-
models used within the |SFS Toolbox| are presented.
662+
models used within the SFS Toolbox are presented.
639663

640664
.. _sec-plane-wave:
641665

@@ -1156,7 +1180,7 @@ they can easily be omitted. For corresponding driving functions for focused
11561180
sources without the evanescent part of the sound field see [SporsAhrens2010]_
11571181
for |SDM| and [AhrensSpors2009b]_ for |NFC-HOA|.
11581182

1159-
In the |SFS Toolbox| only focused sources in |WFS| are considered at the moment.
1183+
In the SFS Toolbox only focused sources in |WFS| are considered at the moment.
11601184

11611185

11621186
.. _sec-driving-functions-wfs:
@@ -1337,7 +1361,7 @@ which is the traditional formulation of a point source in |WFS| as given by eq.
13371361
(2.22a) in [Verheijen1997]_ [#F6]_ for the 2.5D. It has the advantage that its
13381362
temporal domain version could again be implemented as a simple weighting- and
13391363
delaying-mechanism. This is the default driving function for a point source in
1340-
the |SFS Toolbox|.
1364+
the SFS Toolbox.
13411365

13421366
Transfered to the temporal domain via an inverse Fourier transform :eq:`ifft` it
13431367
follows
@@ -1529,7 +1553,7 @@ or by using an approximated point source as
15291553
{\mathrm{e}}^{{\mathrm{i}}\frac{\omega}{c}|\x_0-\xs|}.
15301554
15311555
As before for other source types, the approximated versions are the default
1532-
driving functions for a focused source used in the |SFS Toolbox|.
1556+
driving functions for a focused source used in the SFS Toolbox|.
15331557

15341558
Transfered to the temporal domain via an inverse Fourier transform :eq:`ifft` it
15351559
follows

requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
-e git+https://github.com/sfstoolbox/sfs-documentation-theme.git#egg=SfsDoc
2-
31
jinja2
42
pygments
53
sphinx

0 commit comments

Comments
 (0)