fix doc gen task 4.10.0
authorgggeek <giunta.gaetano@gmail.com>
Sat, 11 Feb 2023 17:10:30 +0000 (17:10 +0000)
committergggeek <giunta.gaetano@gmail.com>
Sat, 11 Feb 2023 17:10:30 +0000 (17:10 +0000)
doc/build/taskfile

index a9e3e1c..312d37b 100755 (executable)
@@ -82,7 +82,7 @@ function build_api() {
     # manually mangle the index.html file to add generation date, lib version, etc...
     TAG=$(grep 'public \+static \+$xmlrpcVersion *=' ../src/PhpXmlRpc.php | sed 's/public \+static \+$xmlrpcVersion *= *//' | tr -d ' ' | tr -d \" | tr -d ';' | tr -d "'")
     sed -r -i -e "s|<h2>Documentation</h2>|<h2>Documentation for the <a href=\"https://gggeek.github.io/phpxmlrpc/\">PHPXMLRPC</a> library, ver. ${TAG}</h2><p>Built on $(date +%Y/%m/%d)</p>|g" ./api/index.html
-    find api -name '*.html' xargs sed -r -i -e 's|<a href="" class="phpdocumentor-title__link">|<a href="index.html" class="phpdocumentor-title__link">|g'
+    find api -name '*.html' xargs sed -r -i -e 's|<a href="" class="phpdocumentor-title__link">|<a href="index.html" class="phpdocumentor-title__link">|g'
     find api -name '*.html' | xargs sed -r -i -e "s|>PHPXMLRPC</a></h1>|>PHPXMLRPC ${TAG}</a></h1>|g"
     #find api -name '*.html' | fgrep -v 'api/index.html' | xargs sed -r -i -e "s|...|...|g"