# That's a bit of a hack, but we are making sure that devel target
# is always valid. The alternative is to make devel depend on all
# *.cc *.h files in the whole tree.
-.PHONY: devel guide
+.PHONY: devel guide docgen
for (auto cmd : cmds_) {
if (!first) {
f << ", ";
- generateCmdLink(f, cmd.first);
}
+ generateCmdLink(f, cmd.first);
first = false;
}
bool first = true;
for (auto cmd : cmds_) {
- first = true;
auto daemons = cmd.second->get("support");
for (auto d : daemons->listValue()) {
if (d->stringValue() == daemon) {
bool first = true;
for (auto cmd : cmds_) {
- first = true;
auto daemon_hook = cmd.second->get("hook");
if (!daemon_hook || daemon_hook->stringValue() != hook) {
continue;
generateCopyright(f);
- f << "<chapter xmlns=\"http://docbook.org/ns/docbook\" version=\"5.0\" xml:id=\"api\">"
+ f << "<appendix xmlns=\"http://docbook.org/ns/docbook\" version=\"5.0\" xml:id=\"api\">"
<< endl;
f << " <title>API Reference</title>" << endl;
// Generate actual commands references.
generateCommands(f);
- f << "</chapter>" << endl;
+ f << "</appendix>" << endl;
ofstream file(OUTPUT.c_str(), ofstream::trunc);
file << f.str();
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="netconf.xml"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="faq.xml"/>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
+ href="faq.xml"/>
- <chapter xml:id="acknowledgments">
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="api.xml"/>
+
+ <appendix xml:id="acknowledgments">
<title>Acknowledgments</title>
<para>Kea is an open source project designed, developed, and maintained by Internet Systems
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://www.tcinet.ru/">Technical Center of Internet</link>
.</para>
- </chapter>
-
-
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="api.xml"/>
+ </appendix>
<!-- TODO: Add bibliography section (mostly RFCs, probably) -->