Hi,

There is a warning saying:

> Task :generateReadmeFiles
juil. 11, 2020 9:29:14 AM 
uri:classloader:/gems/asciidoctor-pdf-1.5.3/lib/asciidoctor/pdf/converter.rb 
resolve_image_path
AVERTISSEMENT: allow-uri-read is not enabled; cannot embed remote image: 
https://img.shields.io/badge/License-Apache%202.0-blue.svg
allow-uri-read is not enabled; cannot embed remote image: https://img.shields.io/badge/License-Apache%202.0-blue.svg (uri:classloader:/gems/asciidoctor-pdf-1.5.3/lib/asciidoctor/pdf/converter.rb:resolve_image_path)

But it actually works, the image is in the files.

I'll also create a Jira to check AsciiDoc errors I found while running and an 
initial not committed version of generateReadmeFiles

Jacques

Le 11/07/2020 à 09:58, jler...@apache.org a écrit :
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git

commit fd3667b6f7479a13f2a2ffd04378f53677b7cd3d
Author: Jacques Le Roux <jacques.le.r...@les7arts.com>
AuthorDate: Sat Jul 11 09:45:49 2020 +0200

     Improved: Put the AsciiDoc files in main repo under the web site 
(OFBIZ-11879)
We have AsciiDoc files in main repo and it would be better to have them also in
     HTML format under the web site: https://ci.apache.org/projects/ofbiz/site
For that a new generateReadmeFiles is needed and new "readme" locations under
     each of https://ci.apache.org/projects/ofbiz/site "sub-dirs".
     We can create those from Buildbot like we did with INFRA-20311
---
  build.gradle | 10 ++++++++++
  1 file changed, 10 insertions(+)

diff --git a/build.gradle b/build.gradle
index 03355cf..e2ceeac 100644
--- a/build.gradle
+++ b/build.gradle
@@ -549,6 +549,16 @@ task deleteAllPluginsDocumentation {
  }
+task generateReadmeFiles(group: docsGroup, type: AsciidoctorTask) {
+    doFirst { delete "${buildDir}/asciidoc/readme" }
+    description 'Generate OFBiz README files'
+    sourceDir "${rootDir}"
+    sources {
+        include 'README.adoc', 'CHANGELOG.adoc', 'CONTRIBUTING.adoc'
+      }
+    outputDir file("${buildDir}/asciidoc/readme/")
+}
+
  task generateOfbizDocumentation(group: docsGroup, type: AsciidoctorTask) {
      dependsOn deleteOfbizDocumentation
      description 'Generate OFBiz documentation manuals'

Reply via email to