diff --git a/docs/guide/CMakeLists.txt b/docs/guide/CMakeLists.txt index 5b38ce0f..49c814cf 100644 --- a/docs/guide/CMakeLists.txt +++ b/docs/guide/CMakeLists.txt @@ -1,14 +1,16 @@ +cmake_minimum_required(VERSION 2.4) + macro(ADD_TEXTILE SRC TITLE) STRING(REGEX REPLACE ".textile\$" "" outfileName "${SRC}") SET(outfile "${CMAKE_CURRENT_BINARY_DIR}/${outfileName}.html") # Custom command to do the processing if(${ARGN}) ADD_CUSTOM_COMMAND(OUTPUT "${outfile}" - COMMAND pandoc -o "${outfile}" "${SRC}" -f textile -t html -s --base-header-level=2 --template=template.html -T "${TITLE}" + COMMAND pandoc -o "${outfile}" "${SRC}" -f textile -t html -s --base-header-level=2 --template=${CMAKE_CURRENT_SOURCE_DIR}/template.html -T "${TITLE}" DEPENDS "${SRC}") else() ADD_CUSTOM_COMMAND(OUTPUT "${outfile}" - COMMAND pandoc -o "${outfile}" "${SRC}" -f textile -t html -s --toc --base-header-level=2 --template=template.html -T "${TITLE}" + COMMAND pandoc -o "${outfile}" "${SRC}" -f textile -t html -s --toc --base-header-level=2 --template=${CMAKE_CURRENT_SOURCE_DIR}/template.html -T "${TITLE}" DEPENDS "${SRC}") endif() @@ -24,6 +26,12 @@ ADD_TEXTILE("server_ssl.textile" "Spectrum 2 - Server mode SSL support") ADD_TEXTILE("mysql.textile" "Spectrum 2 - MySQL Support") ADD_TEXTILE("postgresql.textile" "Spectrum 2 - PostgreSQL Support") ADD_TEXTILE("logging.textile" "Spectrum 2 - Logging") +ADD_TEXTILE("backends.textile" "Spectrum 2 - Backends overview") +ADD_TEXTILE("libpurple.textile" "Spectrum 2 - Libpurple backend") +ADD_TEXTILE("libcommuni.textile" "Spectrum 2 - Libcommuni backend") +ADD_TEXTILE("swiften.textile" "Spectrum 2 - Swiften backend") +ADD_TEXTILE("skype.textile" "Spectrum 2 - Skype backend") +ADD_TEXTILE("spectrum2_manager.textile" "Spectrum 2 - spectrum2_manager tool") # Setup a target to drive the conversion diff --git a/docs/guide/index.textile b/docs/guide/index.textile index a3198c9a..ba2e80ca 100644 --- a/docs/guide/index.textile +++ b/docs/guide/index.textile @@ -1,7 +1,8 @@ h2. About h2. Installation -* "From source code":from_source_code.html + +* "Installing from source code":from_source_code.html h2. Configuration @@ -10,3 +11,16 @@ h2. Configuration * "PostgreSQL Support":postgresql.html * "Using SSL in server mode":server_ssl.html * "Logging":logging.html + +h2. Backends + +* "Backends overview":backends.html +* "Libpurple backend":libpurple.html +* "Swiften backend":swiften.html +* "Libcommuni backend":swiften.html +* "Skype backend":skype.html + +h2. Management + +* "spectrum2_manager tool":spectrum2_manager.html +* "Munin integration":munin.html diff --git a/docs/guide/template.html b/docs/guide/template.html new file mode 100644 index 00000000..5647c2e1 --- /dev/null +++ b/docs/guide/template.html @@ -0,0 +1,153 @@ + + + + + + +$for(author-meta)$ + +$endfor$ +$if(date-meta)$ + +$endif$ + $title-prefix$ +$if(highlighting-css)$ + +$endif$ + +$for(css)$ + +$endfor$ +$if(math)$ + $math$ +$endif$ +$for(header-includes)$ + $header-includes$ +$endfor$ + + +

$title-prefix$

+$for(include-before)$ +$include-before$ +$endfor$ +$if(title)$ +
+

$title$

+$for(author)$ +

$author$

+$endfor$ +$if(date)$ +

$date$

+$endif$ +
+$endif$ +$if(toc)$ +
+$toc$ +
+$endif$ +$body$ +$for(include-after)$ +$include-after$ +$endfor$ + +