pgbackrest.git / summary / log / commit / refs

commit    c2f64bb03bdbb2ce883041118dbcfd79da3f1307
Author:   David Steele <david@pgbackrest.org>
Date:     Tue Apr 15 21:50:40 2025 +0000

    Fix highlight error in user guide.
    
    87776bc9 updated the RHEL documentation to PostgreSQL 13/14 but did not update recovery highlighting to be compatible with RHEL. This was not caught because the RHEL documentation was being build as PDF, which does not do highlighting.
    
    Instead build the RHEL documentation as HTML in the first stage (and PDF in the second) so the error is caught.
    
    Finally, fix the RHEL documentation to generate the highlight by concatenating the log.


doc/release.pl | 2 +- doc/xml/user-guide.xml | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/release.pl b/doc/release.pl index 891b799e7..c056baeaf 100755 --- a/doc/release.pl +++ b/doc/release.pl @@ -239,7 +239,7 @@ eval { &log(INFO, "Generate RHEL documentation"); - executeTest("${strDocExe} --deploy --key-var=os-type=rhel --out=pdf", {bShowOutputAsync => true}); + executeTest("${strDocExe} --deploy --key-var=os-type=rhel --out=html", {bShowOutputAsync => true}); if (!defined($strVm)) { diff --git a/doc/xml/user-guide.xml b/doc/xml/user-guide.xml index 8b6c5fe9e..b887e0fb1 100644 --- a/doc/xml/user-guide.xml +++ b/doc/xml/user-guide.xml @@ -2264,11 +2264,20 @@ <exe-cmd>rm {[postgres-log-demo]}</exe-cmd> </execute> - <execute if="{[pg-version]} &gt; 12" user="root" output="y" err-expect="1"> + <execute if="{[pg-version]} &gt; 12 &amp;&amp; {[os-type-is-debian]}" user="root" output="y" err-expect="1"> <exe-cmd>{[pg-cluster-start]}</exe-cmd> <exe-highlight>recovery ended before configured recovery target was reached</exe-highlight> </execute> + <execute if="{[pg-version]} &gt; 12 &amp;&amp; {[os-type-is-rhel]}" user="root" err-expect="1"> + <exe-cmd>{[pg-cluster-start]}</exe-cmd> + </execute> + + <execute if="{[pg-version]} &gt; 12 &amp;&amp; {[os-type-is-rhel]}" user="postgres" output="y"> + <exe-cmd>cat {[postgres-log-demo]}</exe-cmd> + <exe-highlight>recovery ended before configured recovery target was reached</exe-highlight> + </execute> + <execute if="{[pg-version]} &lt;= 12" user="root"> <exe-cmd>{[pg-cluster-start]}</exe-cmd> </execute> [parent: 8bdba747981e]