You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-09-16 09:06:18 +02:00
Deploy historical documentation to prior rather than the root directory.
This commit is contained in:
@@ -152,26 +152,27 @@ eval
|
||||
{
|
||||
my $strDeployPath = "${strDocPath}/site";
|
||||
|
||||
# Generate deployment docs for the website history
|
||||
# Generate docs for the website history
|
||||
&log(INFO, 'Generate website ' . ($bDev ? 'dev' : 'history') . ' documentation');
|
||||
|
||||
executeTest(
|
||||
$strDocExe . ($bDev ? '' : ' --deploy --cache-only') . ' --out=html --var=project-url-root=index.html' .
|
||||
($bDev ? ' --keyword=default --keyword=dev --no-exe' : ' --exclude=release'));
|
||||
|
||||
# Deploy to server
|
||||
# Deploy to repository
|
||||
&log(INFO, '...Deploy to repository');
|
||||
executeTest("rm -rf ${strDeployPath}/${strVersion}");
|
||||
executeTest("mkdir ${strDeployPath}/${strVersion}");
|
||||
executeTest("cp ${strDocHtml}/* ${strDeployPath}/${strVersion}");
|
||||
executeTest("rm -rf ${strDeployPath}/prior/${strVersion}");
|
||||
executeTest("mkdir ${strDeployPath}/prior/${strVersion}");
|
||||
executeTest("cp ${strDocHtml}/* ${strDeployPath}/prior/${strVersion}");
|
||||
|
||||
# Generate deployment docs for the main website
|
||||
# Generate docs for the main website
|
||||
if (!$bDev)
|
||||
{
|
||||
&log(INFO, "Generate website documentation");
|
||||
|
||||
executeTest("${strDocExe} --deploy --cache-only --out=html");
|
||||
|
||||
# Deploy to repository
|
||||
&log(INFO, '...Deploy to repository');
|
||||
executeTest("rm -rf ${strDeployPath}/dev");
|
||||
executeTest("find ${strDeployPath} -maxdepth 1 -type f -exec rm {} +");
|
||||
|
@@ -137,6 +137,10 @@
|
||||
<release-item>
|
||||
<p>Allow internal options that do not show up in the documentation. Used for test options initially but other use cases are on the horizon.</p>
|
||||
</release-item>
|
||||
|
||||
<release-item>
|
||||
<p>Deploy historical documentation to <path>prior</path> rather than the root directory.</p>
|
||||
</release-item>
|
||||
</release-development-list>
|
||||
</release-doc-list>
|
||||
|
||||
|
Reference in New Issue
Block a user