1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-05 00:28:52 +02:00

Use CSS to number sections in documentation.

This reduces churn in the HTML when sections are added or removed from the documentation.
This commit is contained in:
David Steele
2023-09-30 09:40:44 -04:00
parent 1d5563288c
commit 33ba4db9cb
2 changed files with 56 additions and 5 deletions

View File

@ -250,14 +250,14 @@ sub sectionProcess
if ($self->{bTocNumber})
{
$oSectionHeaderElement->addNew(HTML_DIV, "section${iDepth}-number", {strContent => $strSectionNo});
$oSectionHeaderElement->addNew(HTML_DIV, "section${iDepth}-number");
}
$oSectionHeaderElement->addNew(HTML_DIV, "section${iDepth}-title", {strContent => $strSectionTitle});
if ($self->{bTocNumber})
{
$oSectionTocElement->addNew(HTML_DIV, "section${iDepth}-toc-number", {strContent => $strSectionNo});
$oSectionTocElement->addNew(HTML_DIV, "section${iDepth}-toc-number");
}
my $oTocSectionTitleElement = $oSectionTocElement->addNew(HTML_DIV, "section${iDepth}-toc-title");