diff --git a/src/content/projects/pacemaker/doc/deprecated/index.md b/src/content/projects/pacemaker/doc/deprecated/index.md index 9385081..ed3cbfe 100644 --- a/src/content/projects/pacemaker/doc/deprecated/index.md +++ b/src/content/projects/pacemaker/doc/deprecated/index.md @@ -1,88 +1,88 @@ +++ title = "Deprecated Pacemaker documentation" outputs = ["PHP"] +++ You have followed a link to documentation for Pacemaker versions that are no longer supported. Most likely, you want the [current documentation](/projects/pacemaker/doc/). Otherwise, you can find older documentation below. $title\n"; $desc = file_get_contents("$base/desc-$version.txt"); if (!empty($desc)) { echo "

$desc

\n"; } $build = file_get_contents("$base/build-$version.txt"); if (!empty($build)) { echo "

$build

\n"; } } function publican_docs_for_version($base, $version, $langs) { echo "
\n"; doc_version_heading($base, $version); $books = array(); foreach (glob("$base/en-US/Pacemaker/$version/pdf/*") as $filename) { $books[] = basename($filename); } - echo '\n'; + echo "
\n"; foreach ($books as $b) { foreach ($langs as $lang) { if (glob("$base/$lang/Pacemaker/$version/pdf/$b/*-$lang.pdf")) { echo '"; echo '"; } } } echo "
'.str_replace("_", " ", $b)." ($lang)'; foreach (glob("$base/$lang/Pacemaker/$version/epub/$b/*.epub") as $filename) { echo " [epub]"; } foreach (glob("$base/$lang/Pacemaker/$version/pdf/$b/*.pdf") as $filename) { echo " [pdf]"; } foreach (glob("$base/$lang/Pacemaker/$version/html/$b/index.html") as $filename) { echo " [html]"; } foreach (glob("$base/$lang/Pacemaker/$version/html-single/$b/index.html") as $filename) { echo " [html-single]"; } foreach (glob("$base/$lang/Pacemaker/$version/txt/$b/*.txt") as $filename) { echo " [txt]"; } echo "
"; echo "
"; } $nshown = 0; foreach(get_versions("*/Pacemaker/*") as $v) { $langs = array(); foreach (glob("*/Pacemaker/$v") as $item) { $langs[] = basename(dirname(dirname($item))); } publican_docs_for_version(".", $v, $langs); ++$nshown; } if ($nshown == 0) { echo "

No deprecated documentation sets are available on this server.

\n"; } ?>