Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve documentation all over the place #160

Merged
merged 13 commits into from
Apr 8, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,489 changes: 1,532 additions & 957 deletions Doxyfile

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ Doxygen generated documentation can be found [on the PinT server][documentation]
Currently, it features the following content:

* \subpage #page_building_installing
* \subpage #page_examples
* \ref Examples
* \subpage #page_contributing
* \subpage #page_style_guide
* \subpage #page_troubleshooting

[documentation]: https://pint.fz-juelich.de/ci/view/PFASST/job/PFASST_LATEST_STABLE_DOCU/doxygen
[documentation]: https://pint.fz-juelich.de/ci/view/PFASST/job/PFASST_LATEST_STABLE_DOCU/doxygen


Releases
Expand All @@ -47,29 +47,29 @@ Releases
* **v0.3.0** The Big Cleanup Release (2014/12/12)

A lot of internal cleanup and usability enhancements.
DOI: [10.5281/zenodo.13221][DOI_v030]
See \subpage #page_changelog "the Changelog" for details.
DOI: [10.5281/zenodo.13221][DOI_v030].
See [the Changelog](#page_changelog) for details.

* **v0.2.0** MPI-PFASST Release (2014/08/29)

Implementation of PFASST with MPI.
DOI: [10.5281/zenodo.11517][DOI_v020]
See \subpage #page_changelog "the Changelog" for details.
DOI: [10.5281/zenodo.11517][DOI_v020].
See [the Changelog](#page_changelog) for details.

* **v0.1.0** First Release (2014/07/25)

Initial release with basic implementations of SDC and MLSDC.
DOI: [10.5281/zenodo.11047][DOI_v010]
See \subpage #page_changelog "the Changelog" for details.
DOI: [10.5281/zenodo.11047][DOI_v010].
See [the Changelog](#page_changelog) for details.

[DOI_v010]: http://dx.doi.org/10.5281/zenodo.11047
[DOI_v020]: http://dx.doi.org/10.5281/zenodo.11517
[DOI_v030]: http://dx.doi.org/10.5281/zenodo.13221

Release tags will be signed by one of the following PGP keys:

0x9CF9601F 2011-07-28 Torbjörn Klatt <t.klatt@fz-juelich.de>
Fingerprint DB8D EA65 F6A7 3DE0 E7EA F607 6CE8 B4B1 9CF9 601F
0xAD9F8DC6 2014-12-12 Torbjörn Klatt <t.klatt@fz-juelich.de>
Fingerprint 6277 E9D9 7AA2 DBBE 5DE7 7498 756B F4D7 AD9F 8DC6


Build status
Expand Down
67 changes: 67 additions & 0 deletions doc/source/customized/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#nav-tree img {
box-sizing: content-box;
}

ul.meta-info-block {
font-size: 0.8em;
color: gray;
padding: 0;
}

ul.meta-info-block > li {
display: block;
margin: -3px;
}

p.lead {
font-size: 1.15em;
font-style: italic;
}

code {
border: 1px solid #C4CFE5;
background-color: #FBFCFD;
padding: 1px;
}

.memdoc .panel {
margin-bottom: 5px !important;
}

.memdoc .panel .panel-heading,
.memdoc .panel .panel-body,
.memdoc .panel .list-group-item,
.reflist .panel .panel-heading,
.reflist .panel .panel-body,
.textblock .panel .panel-heading,
.textblock .panel .panel-body {
padding: 5px;
padding-left: 10px;
}
.memdoc .section.see {
font-size: 90%;
}

.panel-footer ul {
margin-top: 0;
margin-bottom: 0;
}

/* width of all text blocks */
.textblock,
.memdoc.panel-body > *,
.memdoc > .panel,
.memdoc > .panel > .panel-body > *,
.memitem > .panel,
.memitem > .panel > .panel-body > * {
width: 750px;
}


table.directory .badge {
margin-right: 3px;
}

dl.citelist > dd > p {
padding-left: 50px;
}
231 changes: 231 additions & 0 deletions doc/source/customized/custom_tweaks.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@
$(document).ready(function() {
var MakeFirstParagraphLead = function(elem) {
var lead = $(elem).children("p:first");
lead.addClass("lead");
if (lead.html()) {
lead.html(lead.html().charAt(0).toUpperCase() + lead.html().slice(1));
}
return elem;
};

var RemoveEmptyParagraphs = function(parent) {
$(parent).find("p").each(
function() {
if ($(this).html() == "") {
$(this).detach();
}
}
);
return parent;
};

var GetMetablock = function(elem) {
if ($(elem).hasClass("memdoc")) {
return $(elem).parent().find(".meta-info-block");
} else {
return $(elem).find(".meta-info-block");
}
};

var AddToMetablock = function(elem, css) {
var parent = $(elem).parent();
var metablock = GetMetablock(parent);

if (metablock.length == 0) {
if (parent.hasClass("memdoc")) {
parent.after("<div class='panel-footer'><ul class='meta-info-block'></ul></div>");
} else {
// we are in a details textblock
$(elem).before("<ul class='meta-info-block'></ul>");
}
}
metablock = GetMetablock(parent);

$(elem).detach();
metablock.append("<li class='" + css + "'>" + $(elem).html() + "</li>");
};

var TweakMemberDocStyle = function(elem) {
var definition = $(elem).find("p").filter(function() {
return ($(this).text()).match('^Definition at line.*\.$');
});
var overloaded = $(elem).find("p").filter(function() {
return ($(this).text()).match('^This is an overloaded.*\.$');
});
var referenced = $(elem).find("p").filter(function() {
return ($(this).text()).match('^Referenced by.*\.$');
});
var references = $(elem).find("p").filter(function() {
return ($(this).text()).match('^References.*\.$');
});
var reimpl = $(elem).find("p").filter(function() {
return ($(this).text()).match('^Reimplemented (in|from).*\.$');
});
var impl = $(elem).find("p").filter(function() {
return ($(this).text()).match('^Implement(ed in|s).*\.$');
});

AddToMetablock(definition, 'meta-definition');
AddToMetablock(overloaded, 'meta-overload');
AddToMetablock(referenced, 'meta-referenced');
AddToMetablock(references, 'meta-references');
AddToMetablock(reimpl, 'meta-reimplemented');
AddToMetablock(impl, 'meta-implemented');

var metablock = GetMetablock($(elem));

metablock.find("li a.el").addClass("code").removeClass("el");

// make the first paragraph stand out
MakeFirstParagraphLead($(elem));

// remove empty paragraphs
RemoveEmptyParagraphs($(elem));
};

var MakePanel = function(container, title, content, footer) {
$(container).addClass("panel panel-default");
$(container).find(title).addClass("panel-heading");
$(container).find(content).addClass("panel-body");
if (typeof(footer) !== 'undefined') {
$(container).find(footer).addClass("panel-footer");
if ($(container).find(content).text() === ""
&& $(container).find(footer).text() === "") {
$(container).detach();
}
} else {
if ($(container).find(content).text() == "") {
$(container).detach();
}
}
};

var TweakMemberSections = function(dl) {
MakePanel($(dl), 'dt', 'dd');
dl.addClass("member-section").removeClass("panel-default");
var dt = dl.find("dt");
switch (dt.text()) {
case "Template Parameters":
dl.addClass("panel-primary");
break;
case "Parameters":
dl.addClass("panel-primary");
break;
case "Returns":
dl.addClass("panel-success");
break;
case "Precondition":
dl.addClass("panel-info");
break;
case "Note":
dl.addClass("panel-info");
break;
case "Exceptions":
dl.addClass("panel-danger");
break;
case "Todo:":
dl.addClass("panel-warning");
break;
default: // 'See also', 'Since'
dl.addClass("panel-default");
break;
}

var param_table = dl.find("table.params, table.tparams, table.exception");
if (param_table.length > 0) {
param_table.addClass("table");
param_table.unwrap();
}

var dds = dl.find("dd");
if (dds.length > 1) {
dt.after("<ul class='list-group'></ul>");
var new_dds = dt.next();
dds.each(function() {
new_dds.append("<li class='list-group-item'>" + $(this).html() + "</li>");
$(this).detach();
});
} else {
dds.replaceWith(function() { return "<div class='" + $(this).attr('class') + "'>" + $(this).html() + "</div>"; });
}
dt.replaceWith("<div class='" + dt.attr('class') + "'>" + dt.html() + "</div>");
dl.replaceWith("<div class='" + dl.attr('class') + "'>" + dl.html() + "</div>");
};

// detailed description text
$("h2.groupheader:contains('Detailed Description')").each(
function() {
TweakMemberDocStyle($(this).next());
}
);

// member details doc
$(".memdoc").each(function() {
TweakMemberDocStyle($(this));
$(this).find("dl").each(function() {
TweakMemberSections($(this));
});
});

$(".memitem").each(function() {
MakePanel($(this), '.memproto', '.memdoc');
});

$(".memitem").each(function() {
var header = $(this).children(".panel-heading");
var footer = $(this).children(".panel-footer").find(".meta-info-block");
if (footer.find(".meta-overload").is(".meta-overload")) {
header.find(".mlabels td.mlabels-right > .mlabels").prepend("<span class='mlabel label label-default'>overload</span>");
}
});

$(".mlabel").each(function() {
switch ($(this).text()) {
case "delete":
$(this).addClass("label label-danger");
break;
case "private":
$(this).addClass("label label-warning");
break;
case "protected":
$(this).addClass("label label-primary");
break;
case "static":
$(this).addClass("label label-success");
break;
case "virtual":
$(this).addClass("label label-info");
break;
default: // 'override', 'inline'
$(this).addClass("label label-default");
}
});

// directory tables
$(".directory table.directory").each(function() {
$(this).addClass("table");
$(this).find("span.icon").unwrap().addClass("badge").removeClass("icon");
});

$("table.doxtable").addClass("table");

// reflists (i.e. ToDos)
$("div.textblock dl.reflist").each(function() {
$(this).find("dt").each(function() {
$(this).wrap("<div class='panel panel-default'></div>");
$(this).replaceWith("<div class='panel-heading'>" + $(this).html() + "</div>");
});
$(this).find("dd").each(function() {
$(this).prev().append($(this));
$(this).replaceWith("<div class='panel-body'>" + $(this).html() + "</div>");
});
$(this).find(".panel-body p").removeClass();
});

// panels/blocks in detailed descriptions
$("div.textblock").each(function() {
$(this).find("dl").each(function() {
TweakMemberSections($(this));
});
});
});
Loading