Page MenuHomeClusterLabs Projects

No OneTemporary

diff --git a/src/pacemaker/doc/index.php b/src/pacemaker/doc/index.php
index f0a7e08..92fd2e1 100644
--- a/src/pacemaker/doc/index.php
+++ b/src/pacemaker/doc/index.php
@@ -1,175 +1,172 @@
---
layout: pacemaker
title: Pacemaker Documentation
---
<section id="main">
<p>
Most of the documentation listed here was generated from the Pacemaker
sources.
</p>
<header class="major">
<h2>Where to Start</h2>
</header>
<p>
If you're new to Pacemaker or clustering in general, the best place to
start is <b>Clusters from Scratch</b>, which walks you step-by-step through
the installation and configuration of a high-availability cluster with
Pacemaker. It even makes common configuration mistakes so that it can
demonstrate how to fix them.
</p>
<p>
On the other hand, if you're looking for an exhaustive reference of all
of Pacemaker's options and features, try <b>Pacemaker Explained</b>. It's
dry, but should have the answers you're looking for.
</p>
<p>
There is also a <a href="https://wiki.clusterlabs.org/wiki">project wiki</a>
with examples, how-to guides, and other information that doesn't make it
into the manuals.
</p>
<header class="major">
<h2>Unversioned documentation (somewhat outdated)</h2>
</header>
<section class="docset">
<h3 class="docversion">General Concepts</h3>
<table class="publican-doc">
<tr>
<td>Ordering Explained</td>
<td>[<a class="doclink" href="https://wiki.clusterlabs.org/w/images/a/ae/Ordering_Explained_-_White.pdf">pdf</a>]</td>
</tr>
<tr>
<td>Colocation Explained</td>
<td>[<a class="doclink" href="https://wiki.clusterlabs.org/w/images/8/8a/Colocation_Explained_-_White.pdf">pdf</a>]</td>
</tr>
<tr>
<td>Configuring Fencing with crmsh</td>
<td>[<a class="doclink" href="crm_fencing.html">html</a>]</td>
</tr>
</table>
</section>
<?php
function get_versions($pattern) {
$versions = array();
foreach (glob($pattern) as $item)
if ($item != '.' && $item != '..' && is_dir($item) && !is_link($item))
$versions[] = basename($item);
return array_reverse(array_unique($versions));
}
function doc_version_heading($base, $version) {
$title = file_get_contents("$base/title-$version.txt");
if (empty($title)) {
$title = $version;
}
echo " <h3 class='docversion'>$title </h3>\n";
$desc = file_get_contents("$base/desc-$version.txt");
if (!empty($desc)) {
echo " <p>$desc </p>\n";
}
$build = file_get_contents("$base/build-$version.txt");
if (!empty($build)) {
echo " <p>$build </p>\n";
}
}
function sphinx_docs_for_version($base, $version) {
echo " <section class='docset'>\n";
doc_version_heading($base, $version);
/* poor choice of name for style ... */
echo " <table class=\"publican-doc\">\n";
foreach (glob("$base/$version/*") as $filename) {
$book = basename($filename);
$formats = glob("$base/$version/$book/*");
if (!empty($formats)) {
echo " <tr>\n";
echo " <td>" . str_replace("_", " ", $book) . "</td>\n";
echo " <td>";
foreach ($formats as $format) {
if (basename($format) == "pdf") {
$link = "$format/$book.pdf";
} else {
$link = "$format/";
}
echo " [<a class='doclink' href='$link'>" . basename($format) . "</a>]";
}
echo "</td>\n";
echo " </tr>\n";
}
}
echo " </table>\n";
echo " </section>\n";
}
function publican_docs_for_version($base, $version, $langs) {
echo " <section class='docset'>\n";
doc_version_heading($base, $version);
$books = array();
foreach (glob("$base/en-US/Pacemaker/$version/pdf/*") as $filename) {
$books[] = basename($filename);
}
echo '<table class="publican-doc">';
foreach ($books as $b) {
foreach ($langs as $lang) {
if (glob("$base/$lang/Pacemaker/$version/pdf/$b/*-$lang.pdf")) {
echo '<tr><td>'.str_replace("_", " ", $b)." ($lang)</td>";
echo '<td>';
foreach (glob("$base/$lang/Pacemaker/$version/epub/$b/*.epub") as $filename) {
echo " [<a class='doclink' href=$filename>epub</a>]";
}
foreach (glob("$base/$lang/Pacemaker/$version/pdf/$b/*.pdf") as $filename) {
echo " [<a class='doclink' href=$filename>pdf</a>]";
}
foreach (glob("$base/$lang/Pacemaker/$version/html/$b/index.html") as $filename) {
echo " [<a class='doclink' href=$filename>html</a>]";
}
foreach (glob("$base/$lang/Pacemaker/$version/html-single/$b/index.html") as $filename) {
echo " [<a class='doclink' href=$filename>html-single</a>]";
}
foreach (glob("$base/$lang/Pacemaker/$version/txt/$b/*.txt") as $filename) {
echo " [<a class='doclink' href=$filename>txt</a>]";
}
echo "</td></tr>";
}
}
}
echo "</table>";
echo "</section>";
}
echo "<header class='major'>\n<h2>Versioned documentation</h2>\n</header>";
$langs = array();
// for now, show only US English; other translations haven't been maintained
$langs[] = "en-US";
foreach (get_versions("./[0-9]*.*") as $v) {
sphinx_docs_for_version(".", $v);
}
- foreach (get_versions("./*/Pacemaker/*") as $v) {
- publican_docs_for_version(".", $v, $langs);
- }
echo "<header class='major'>\n<h2>Deprecated documentation</h2>\n</header>";
foreach(get_versions("deprecated/*/Pacemaker/*") as $v) {
$langs = array();
foreach (glob("deprecated/*/Pacemaker/$v") as $item) {
$langs[] = basename(dirname(dirname($item)));
}
publican_docs_for_version("deprecated", $v, $langs);
}
?>
</section>

File Metadata

Mime Type
text/x-diff
Expires
Mon, Apr 21, 5:24 PM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1664997
Default Alt Text
(6 KB)

Event Timeline