You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-08-01 06:46:52 +03:00
Allow documentation source file to be specified in manifest.
The help source file had previously been hardcoded and now that is no longer needed. A future commit will introduce more sources outside of the xml path.
This commit is contained in:
@ -104,12 +104,14 @@ sub new
|
||||
{
|
||||
my $oSourceHash = {};
|
||||
my $strKey = $oSource->paramGet('key');
|
||||
my $strFile = $oSource->paramGet('file', false);
|
||||
my $strSourceType = $oSource->paramGet('type', false);
|
||||
|
||||
logDebugMisc
|
||||
(
|
||||
$strOperation, 'load source',
|
||||
{name => 'strKey', value => $strKey},
|
||||
{name => 'strFile', value => $strFile},
|
||||
{name => 'strSourceType', value => $strSourceType}
|
||||
);
|
||||
|
||||
@ -119,10 +121,10 @@ sub new
|
||||
next;
|
||||
}
|
||||
|
||||
# Help is in src/build/help
|
||||
if ($strKey eq 'help')
|
||||
# If file is defined
|
||||
if (defined($strFile))
|
||||
{
|
||||
$oSourceHash->{doc} = new pgBackRestDoc::Common::Doc("$self->{strDocPath}/../src/build/help/${strKey}.xml");
|
||||
$oSourceHash->{doc} = new pgBackRestDoc::Common::Doc($self->{strDocPath} . "/${strFile}");
|
||||
}
|
||||
# Else should be in doc/xml
|
||||
else
|
||||
|
@ -86,7 +86,7 @@
|
||||
<source key="index"/>
|
||||
<source key="user-guide-index"/>
|
||||
<source key="user-guide"/>
|
||||
<source key="help" type="custom"/>
|
||||
<source key="help" type="custom" file="../src/build/help/help.xml"/>
|
||||
<source key="release" type="custom"/>
|
||||
<source key="faq"/>
|
||||
<source key="metric"/>
|
||||
|
@ -10,6 +10,7 @@
|
||||
<!ELEMENT source EMPTY>
|
||||
<!ATTLIST source key CDATA #REQUIRED>
|
||||
<!ATTLIST source type CDATA "">
|
||||
<!ATTLIST source file CDATA "">
|
||||
|
||||
<!ELEMENT render-list (render+)>
|
||||
<!ELEMENT render (render-source+)>
|
||||
|
Reference in New Issue
Block a user