From 0b89d37f19176f14fbbb8e35bced7c54b5452729 Mon Sep 17 00:00:00 2001 From: maniacbug Date: Sat, 19 Mar 2011 13:14:07 -0700 Subject: [PATCH] Added a small documentation build system --- Jamfile | 42 ++++++++++++++++++++++++++++++++++++++++ wikidoc.xslt | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 Jamfile create mode 100644 wikidoc.xslt diff --git a/Jamfile b/Jamfile new file mode 100644 index 0000000..c17bfbd --- /dev/null +++ b/Jamfile @@ -0,0 +1,42 @@ +# +# Jamfile for generating the documentation +# + +DOXYGEN = doxygen ; +XSLT = xsltproc ; + +DOCSOURCES = Doxyfile RF24.h ; + +rule Doxygen +{ + Depends $(<) : $(>) ; + Clean clean : $(<) ; + Depends docs : $(<) ; +} + +actions Doxygen +{ + $(DOXYGEN) +} + +rule Xslt +{ + Depends $(<) : $(>) ; + Clean clean : $(<) ; +} + +actions Xslt +{ + $(XSLT) $(STYLESHEET) $(>) > $(<) +} + +Doxygen docs/xml/index.xml : $(DOCSOURCES) ; + +Xslt docs/xml/combined.xml : docs/xml/index.xml ; +STYLESHEET on docs/xml/combined.xml = docs/xml/combine.xslt ; +Depends combined : docs/xml/combined.xml ; + +Xslt docs/xml/wikidocs.txt : docs/xml/combined.xml ; +STYLESHEET on docs/xml/wikidocs.txt = wikidoc.xslt ; +Depends docs/xml/combined.xml : wikidoc.xslt ; +Depends wiki : docs/xml/wikidocs.txt ; diff --git a/wikidoc.xslt b/wikidoc.xslt new file mode 100644 index 0000000..1376b86 --- /dev/null +++ b/wikidoc.xslt @@ -0,0 +1,54 @@ + + + + + + + + === === + + + + + '''' + +Parameters: + + + * '''': + + + + + +Returns: +* + + Warning: + + + + <pre> </pre> + + + + + + + +