[petsc-dev] adding Report Typo and Errors link to manual pages

Satish Balay balay at mcs.anl.gov
Mon Jan 6 15:11:49 CST 2014


On Mon, 6 Jan 2014, Jed Brown wrote:

> Satish Balay <balay at mcs.anl.gov> writes:
> > Do you want this for only 'manpages' or all generated html?
> 
> I want it (somewhere unintrusive) for all HTML pages (generated or not).
> 

How about: http://ftp.mcs.anl.gov/pub/petsc/tmp/VecView.html

[perhaps 'MANUALPAGE' can be changed to 'documentation' - if we are doing this for all docs.]

Satish

diff --git a/makefile b/makefile
index 362c004..9de2ad2 100644
--- a/makefile
+++ b/makefile
@@ -335,11 +335,13 @@ docsetdate: chk_petscdir
         fi; \
         datestr=`git log -1 --pretty=format:%ci | cut -d ' ' -f 1`; \
         export datestr; \
+        typostr='   <div id="bugreport" align=right><a href="mailto:petsc-maint at mcs.anl.gov?subject=Typo or Error in MANUALPAGE &body=Please describe the typo or error in the manual page">Report Typos and Errors</a></div>';\
+        export typostr; \
         find * -type d -wholename src/docs/website -prune -o -type d -wholename src/benchmarks/results -prune -o \
           -type d -wholename config/BuildSystem/docs/website -prune -o -type d -wholename include/web -prune -o \
           -type d -wholename 'arch-*' -prune -o -type d -wholename src/tops -prune -o -type d -wholename externalpackages -prune -o \
           -type f -wholename tutorials/multiphysics/tutorial.html -prune -o -type f -name \*.html \
-          -exec perl -pi -e 's^(<body.*>)^$$1\n   <div id=\"version\" align=right><b>$$ENV{petscversion} $$ENV{datestr}</b></div>^i' {} \; \
+          -exec perl -pi -e 's^(<body.*>)^$$1\n   <div id=\"version\" align=right><b>$$ENV{petscversion} $$ENV{datestr}</b></div>\n$$ENV{typostr}^i' {} \; \
           -exec perl -pi -e 's^(<head>)^$$1 <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/{}" />^i' {} \; ; \
         echo "Done fixing version number, date, canonical URL info"



More information about the petsc-dev mailing list