You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-17 01:12:23 +02:00
A number of doc improvements:
1) Started on a general markdown renderer 2) Internal links now work in PDF 3) Improvements to PDF styling 4) Some comment and formatting fixes 5) User guide edits.
This commit is contained in:
22
doc/doc.pl
22
doc/doc.pl
@ -26,6 +26,7 @@ use BackRestDoc::Common::DocManifest;
|
||||
use BackRestDoc::Common::DocRender;
|
||||
use BackRestDoc::Html::DocHtmlSite;
|
||||
use BackRestDoc::Latex::DocLatex;
|
||||
use BackRestDoc::Markdown::DocMarkdown;
|
||||
|
||||
use lib dirname($0) . '/../lib';
|
||||
use BackRest::Common::Log;
|
||||
@ -121,7 +122,13 @@ logLevelSet(undef, uc($strLogLevel));
|
||||
|
||||
# Get the base path
|
||||
my $strBasePath = abs_path(dirname($0));
|
||||
my $strOutputPath = "${strBasePath}/output";
|
||||
|
||||
if (!defined($strDocPath))
|
||||
{
|
||||
$strDocPath = $strBasePath;
|
||||
}
|
||||
|
||||
my $strOutputPath = "${strDocPath}/output";
|
||||
|
||||
sub docProcess
|
||||
{
|
||||
@ -196,6 +203,19 @@ for my $strOutput (@stryOutput)
|
||||
docProcess("${strBasePath}/xml/index.xml", "${strBasePath}/../README.md", $oManifest);
|
||||
docProcess("${strBasePath}/xml/change-log.xml", "${strBasePath}/../CHANGELOG.md", $oManifest);
|
||||
}
|
||||
elsif ($strOutput eq 'markdown')
|
||||
{
|
||||
my $oMarkdown =
|
||||
new BackRestDoc::Markdown::DocMarkdown
|
||||
(
|
||||
$oManifest,
|
||||
"${strBasePath}/xml",
|
||||
"${strOutputPath}/markdown",
|
||||
!$bNoExe
|
||||
);
|
||||
|
||||
$oMarkdown->process();
|
||||
}
|
||||
elsif ($strOutput eq 'help' && $oManifest->isBackRest())
|
||||
{
|
||||
# Generate the command-line help
|
||||
|
Reference in New Issue
Block a user