You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ta...@apache.org on 2018/03/29 08:20:43 UTC
svn commit: r1827961 - in /ofbiz/ofbiz-framework/trunk: build.gradle
docs/asciidoc/developer-manual.adoc docs/asciidoc/user-manual.adoc
Author: taher
Date: Thu Mar 29 08:20:42 2018
New Revision: 1827961
URL: http://svn.apache.org/viewvc?rev=1827961&view=rev
Log:
Improved: moved some shared attributes in asciidoc sources to gradle
(OFBIZ-10285)
Given that both the developer and user manuals share many of the configurations
like table of contents and other formatting settings, this commit moves such
configurations from the source documents to the buildscript to sustain DRY.
Modified:
ofbiz/ofbiz-framework/trunk/build.gradle
ofbiz/ofbiz-framework/trunk/docs/asciidoc/developer-manual.adoc
ofbiz/ofbiz-framework/trunk/docs/asciidoc/user-manual.adoc
Modified: ofbiz/ofbiz-framework/trunk/build.gradle
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/build.gradle?rev=1827961&r1=1827960&r2=1827961&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/build.gradle (original)
+++ ofbiz/ofbiz-framework/trunk/build.gradle Thu Mar 29 08:20:42 2018
@@ -488,7 +488,14 @@ task createTenant(group: ofbizServer, de
// ========== Documentation tasks ==========
tasks.withType(AsciidoctorTask) { task ->
backends 'html5', 'pdf'
- attributes toc: ''
+ attributes \
+ 'doctype': 'book',
+ 'experimental': '',
+ 'icons': 'font',
+ 'sectnums': '',
+ 'chapter-label': '',
+ 'toc': '',
+ 'toclevels': '5'
}
task deleteOfbizDocumentation {
Modified: ofbiz/ofbiz-framework/trunk/docs/asciidoc/developer-manual.adoc
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/docs/asciidoc/developer-manual.adoc?rev=1827961&r1=1827960&r2=1827961&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/docs/asciidoc/developer-manual.adoc (original)
+++ ofbiz/ofbiz-framework/trunk/docs/asciidoc/developer-manual.adoc Thu Mar 29 08:20:42 2018
@@ -19,13 +19,6 @@ under the License.
= Apache OFBiz Developer Manual
The Apache OFBiz Project
Release 17.12
-:doctype: book
-:experimental:
-:icons: font
-:sectnums:
-:chapter-label:
-:toc:
-:toclevels: 5
:imagesdir: ./images
ifdef::backend-pdf[]
:title-logo-image: image::OFBiz-Logo.svg[Apache OFBiz Logo, pdfwidth=4.25in, align=center]
Modified: ofbiz/ofbiz-framework/trunk/docs/asciidoc/user-manual.adoc
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/docs/asciidoc/user-manual.adoc?rev=1827961&r1=1827960&r2=1827961&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/docs/asciidoc/user-manual.adoc (original)
+++ ofbiz/ofbiz-framework/trunk/docs/asciidoc/user-manual.adoc Thu Mar 29 08:20:42 2018
@@ -19,13 +19,6 @@ under the License.
= Apache OFBiz User Manual
The Apache OFBiz Project
Release 17.12
-:doctype: book
-:experimental:
-:icons: font
-:sectnums:
-:chapter-label:
-:toc:
-:toclevels: 5
:imagesdir: ./images
ifdef::backend-pdf[]
:title-logo-image: image::OFBiz-Logo.svg[Apache OFBiz Logo, pdfwidth=4.25in, align=center]