Skip to content

Commit f619659

Browse files
committed
Cleanup doxygen documentation. Add untrace.
1 parent 1bffcf9 commit f619659

24 files changed

+203
-49
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ tarball:
88
git archive --format=tar --prefix=cadabra2-latest/ HEAD | gzip > ${HOME}/tmp/cadabra2-latest.tar.gz
99

1010
doc:
11-
doxygen
11+
doxygen config/Doxyfile
1212

1313
webup:
1414
cd build; make -f web2/Makefile
15+
doxygen config/Doxyfile
16+
rsync -avz --chmod=+rx doxygen/ cadabra_web:/var/www/cadabra2/doxygen/
1517
cd web2/cadabra2; clay build; rsync -avz --chmod=+rx build/ cadabra_web:/var/www/cadabra2/; rsync -avz --chmod=+rx source/static/styles/ cadabra_web:/var/www/cadabra2/static/styles; rsync -avz --chmod=+rx source/static/images/ cadabra_web:/var/www/cadabra2/static/images/; rsync -avz --chmod=+rx source/static/icons/ cadabra_web:/var/www/cadabra2/static/icons/; rsync -avz --chmod=+rx source/static/pdf/ cadabra_web:/var/www/cadabra2/static/pdf/; rsync -avz --chmod=+rx source/static/scripts/ cadabra_web:/var/www/cadabra2/static/scripts/; rsync -avz --chmod=+r robots.txt cadabra_web:/var/www/cadabra2
1618

1719
packages:

Doxyfile renamed to config/Doxyfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ FILE_VERSION_FILTER =
684684
# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
685685
# tag is left empty.
686686

687-
LAYOUT_FILE = DoxygenLayout.xml
687+
LAYOUT_FILE = config/DoxygenLayout.xml
688688

689689
# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
690690
# the reference definitions. This must be a list of .bib files. The .bib
@@ -1145,7 +1145,7 @@ HTML_STYLESHEET =
11451145
# list). For an example see the documentation.
11461146
# This tag requires that the tag GENERATE_HTML is set to YES.
11471147

1148-
HTML_EXTRA_STYLESHEET = DoxygenStyle.css
1148+
HTML_EXTRA_STYLESHEET = config/DoxygenStyle.css
11491149

11501150
# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
11511151
# other source files which should be copied to the HTML output directory. Note
@@ -1619,7 +1619,7 @@ EXTRA_SEARCH_MAPPINGS =
16191619
# If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.
16201620
# The default value is: YES.
16211621

1622-
GENERATE_LATEX = YES
1622+
GENERATE_LATEX = NO
16231623

16241624
# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
16251625
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
File renamed without changes.
File renamed without changes.

core/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ SET(ALGORITHM_SRC_FILES
8181
algorithms/take_match.cc
8282
algorithms/replace_match.cc
8383
algorithms/unwrap.cc
84-
algorithms/unzoom.cc
84+
algorithms/unzoom.cc
85+
algorithms/untrace.cc
8586
algorithms/vary.cc
8687
algorithms/young_project.cc
8788
algorithms/young_project_product.cc

core/Cleanup.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ typedef void (*dispatcher_t)(const Kernel& k, Ex&, Ex::iterator& it);
4141
/// first layer of child nodes, but do NOT descend deeper down the
4242
/// tree, UNLESS that would leave the tree in an inconsistent
4343
/// state. An example is acting at the top node of
44-
/// \prod{4}{\sum{a}{b}}, which would push the 4 to the multiplier of
44+
/// `\prod{4}{\sum{a}{b}}`, which would push the 4 to the multiplier of
4545
/// the sum, but that is not allowed, so it needs to go further down.
4646
/// Sibling nodes of 'it' remain untouched as well.
4747

core/Compare.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ class Ex_comparator {
214214
/// Determine whether Coordinates in the pattern (first argument
215215
/// to functions below) can match against Indices in the object
216216
/// (second argument). That is to say, whether the pattern
217-
/// \partial_{t}{A} matches against the expression
218-
/// \partial_{\mu}{A} when \mu can take the value t. This is
217+
/// `\partial_{t}{A}` matches against the expression
218+
/// `\partial_{\mu}{A}` when `\mu` can take the value `t`. This is
219219
/// used in 'evaluate', but should generically be turned off for
220220
/// 'substitute'.
221221

core/DisplayBase.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class DisplayBase {
2727
protected:
2828
/// Determine if a node needs extra brackets around it. Uses context from the
2929
/// parent node if necessary. Has to be implemented in a derived class, because
30-
/// the answer depends on the printing method (e.g. (a+b)/c needs brackets
30+
/// the answer depends on the printing method (e.g. `(a+b)/c` needs brackets
3131
/// when printed like this, but does not need brackets when printed as
32-
/// \frac{a+b}{c}).
32+
/// `\frac{a+b}{c}`).
3333

3434
virtual bool needs_brackets(Ex::iterator it)=0;
3535

core/DisplayMMA.hh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class DisplayMMA : public DisplayBase {
2323

2424
/// Rewrite the output of mathematica back into a notation used by
2525
/// Cadabra. This in particular involves converting 'Sin' and
26-
/// friends to '\sin' and so on, as well as converting all the
26+
/// friends to `\sin` and so on, as well as converting all the
2727
/// greek symbols. Currently only acts node-by-node, does not
2828
/// do anything complicated with trees.
2929

@@ -52,7 +52,7 @@ class DisplayMMA : public DisplayBase {
5252
/// For every object encountered, dispatch will figure out the
5353
/// most appropriate way to convert it into a LaTeX
5454
/// expression. This may be done by simply looking at the
55-
/// object's name (e.g. \prod will print as a product) but may
55+
/// object's name (e.g. `\prod` will print as a product) but may
5656
/// also involve looking up properties and deciding on the best
5757
/// course of action based on the attached properties.
5858

@@ -81,8 +81,8 @@ class DisplayMMA : public DisplayBase {
8181

8282
/// Map from Cadabra symbols to Mathematica symbols.
8383
/// This is a bit tricky because MathLink does not pass
84-
/// \[Alpha] and friends transparently. So we feed it UTF8
85-
/// α and so on, but then we get \[Alpha] back, and that
84+
/// `\[Alpha]` and friends transparently. So we feed it UTF8
85+
/// α and so on, but then we get `\[Alpha]` back, and that
8686
/// needs to be regex-replaced before we feed it to our
8787
/// parser as ours does not swallow that kind of bracketing.
8888
std::map<std::string, std::string> symmap;

core/DisplaySympy.hh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ namespace cadabra {
1616
/// parse. Will throw an exception if a Cadabra Ex object cannot be
1717
/// understood by Sympy. Can also convert expressions back to Cadabra
1818
/// notation. This class contains the printing logic that you see in
19-
/// action when you call the '__sympy__' method on an Ex object.
19+
/// action when you call the `__sympy__` method on an Ex object.
2020

2121
class DisplaySympy : public DisplayBase {
2222
public:
2323
DisplaySympy(const Kernel&, const Ex&);
2424

2525
/// Rewrite the output of sympy back into a notation used by
2626
/// Cadabra. This in particular involves converting 'sin' and
27-
/// friends to '\sin' and so on, as well as converting all the
27+
/// friends to `\sin` and so on, as well as converting all the
2828
/// greek symbols. Currently only acts node-by-node, does not
2929
/// do anything complicated with trees.
3030

@@ -51,7 +51,7 @@ class DisplaySympy : public DisplayBase {
5151
/// For every object encountered, dispatch will figure out the
5252
/// most appropriate way to convert it into a LaTeX
5353
/// expression. This may be done by simply looking at the
54-
/// object's name (e.g. \prod will print as a product) but may
54+
/// object's name (e.g. `\prod` will print as a product) but may
5555
/// also involve looking up properties and deciding on the best
5656
/// course of action based on the attached properties.
5757

0 commit comments

Comments
 (0)