commit f1196dc11ed9233ea6d4f921da5fc9c82f10e1b5 Author: Oliver Gierke Date: Fri Jan 11 10:23:57 2013 +0100 Initial commit of common Spring Data build parent project. diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..5fbc110c --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +.DS_Store +*.iml +*.ipr +*.iws +*.orig +target +.springBeans +.settings/ +.project +.classpath diff --git a/README.md b/README.md new file mode 100644 index 00000000..7254ba2e --- /dev/null +++ b/README.md @@ -0,0 +1,73 @@ +# Spring Data Build Infrastructure + +This repository contains common infrastructure to be used by Spring Data modules that build with Maven. It consists of a *resources* project that bundles up resources that are needed during the build like XSLT stylesheets for reference documentation generation and the according CSS and images. The second project is *parent* that can be used as parent project to pre-configure core dependencies, properties, reference documentation generation and most important of all the appropriate distribution assembly. + +The parent project can be eased for either a single-module Maven project or a multi-module one. Each of the setups requires a slightly different setup of the project. + +## General setup + +The parent project configures the following aspects of the project build: + +Shared resources are pulled in from the `spring-data-build-resources` dependency (images, CSS, XSLTs for documentation generation). Renders reference documentation from Docbook file named `index.xml` within `src/docbkx`. In the `distribute` profile, two assemblies are generated: A ZIP to be uploaded to static.springsource.org (incl. javadoc (browsable), reference docs as described before) with the following content: + +``` ++ schemas -> containing all XSD namespace schemas +- changelog.txt +- license.txt +- notice.txt +- readme.txt ++ docs + + reference -> Docbook generated reference documentation + + html + + htmlsingle + + pdf ++ api -> JavaDoc +``` + +A second ZIP is generated to be uploaded to S3 to automatically make it into the downloads section on the Spring website. It contains the same content as listed above plus the following: + +``` ++ src -> Sources packaged into a JAR ++ dist -> Binary JARs +``` + +The following dependencies are pre-configured. + +- Logging dependencies: SLF4j + Commons Logging bridge and Logback as test dependency +- Test dependencies: JUnit / Hamcrest / Mockito +- Dependency versions for commonly used dependencies + +## Single project setup + +If the client project is a project consisting of a single project only all that needs to be done is declaring the parent project: + +```xml + + org.springframework.data.build + spring-data-parent + 1.0.0.RELEASE + +``` + +Be sure to adapt the version number to the latest release version. The second and already last step of the setup is to activate the assembly plugin in the build section: + +```xml + + org.apache.maven.plugins + maven-assembly-plugin + +``` + +As an example have a look at the build of [Spring Data JPA](http://github.com/SpringSource/spring-data-jpa). + +## Multi project setup + +A multi module setup requires slightly more setup and some structure being set up. + +- The root `pom.xml` needs to configure the `project.type` property to `multi`. +- Docbook documentation sources need to be in the root project. +- The assembly needs to be build in a dedicated sub-module (e.g. `distribution`), declare the assembly plugin (see single project setup) in that submodule and reconfigure the `project.root` property in that module to `${basedir}/..`. + +As an example have a look at the build of [Spring Data MongoDB](http://github.com/SpringSource/spring-data-mongodb). + + diff --git a/parent/pom.xml b/parent/pom.xml new file mode 100644 index 00000000..027a74a1 --- /dev/null +++ b/parent/pom.xml @@ -0,0 +1,532 @@ + + + + + + 4.0.0 + + spring-data-parent + pom + + + org.springframework.data.build + spring-data-build + 1.0.0.BUILD-SNAPSHOT + ../pom.xml + + + Spring Data Build - General parent module + Global parent pom.xml to be used by Spring Data modules + http://www.springsource.org/spring-data + 2011-2013 + + + SpringSource + http://www.springsource.org + + + + + ogierke + Oliver Gierke + ogierke at vmware.com + SpringSource + http://www.springsource.com + + Project lead + + +1 + + + + + + Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0 + + Copyright 2010 the original author or authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied. + See the License for the specific language governing permissions and + limitations under the License. + + + + + + + true + UTF-8 + single + ${basedir} + 1.5 + ${project.artifactId} + + 1.7.1 + 1.0 + 1.3 + 1.6 + 4.11 + 1.0.6 + 1.9.0 + 2.8.0 + 1.7.1 + 3.1.2.RELEASE + 3.0.7.RELEASE + 1.1.7 + + + + + + distribute + + + ${project.build.directory}/shared-resources + + + + + org.springframework.data.build + spring-data-build-resources + 1.0.0.BUILD-SNAPSHOT + provided + zip + + + + + + + + + + ${basedir}/src/main/resources + + + ${shared.resources} + true + + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-shared-resources + + unpack-dependencies + + generate-resources + + + + ${project.groupId} + spring-data-build-resources + zip + true + ${shared.resources} + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + + + aggregate + + package + + + + true +
${project.name}
+ ${source.level} + true + ${shared.resources}/javadoc + ${shared.resources}/javadoc/overview.html + ${shared.resources}/javadoc/spring-javadoc.css + + true + + http://static.springframework.org/spring/docs/3.1.x/javadoc-api + http://download.oracle.com/javase/1.5.0/docs/api + http://static.springsource.org/spring-data/data-commons/docs/current/api + +
+
+ + + + + com.agilejava.docbkx + docbkx-maven-plugin + 2.0.14 + + + + + pdf + + generate-pdf + + package + + + + + + + + + + + + + + + html-single + + generate-html + + package + + ${basedir}/target/docbkx/htmlsingle + ${shared.resources}/docbkx/xsl/html-singlepage.xsl + + + + + + + + + + + + + + + + + + + + + html + + generate-html + + package + + true + ${basedir}/target/docbkx/html + ${shared.resources}/docbkx/xsl/html-multipage.xsl + + + + + + + + + + + + + + + + + + + + + + org.docbook + docbook-xml + 4.4 + runtime + + + + + + index.xml + true + false + ${shared.resources}/docbkx/xsl/pdf.xsl + 1 + 1 + + + version + ${project.version} + + + + + + + + + maven-antrun-plugin + 1.7 + + + process-resources + + + + + + + + + + + + run + + + + +
+ + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 2.4 + + + distribution + + single + + package + + + ${shared.resources}/assemblies/distribution-${project.type}.xml + ${shared.resources}/assemblies/site.xml + + + + + + + +
+
+ + + multimodule + + + project.type + multi + + + + ${basedir}/.. + + +
+ + + + + + org.hamcrest + hamcrest-library + ${hamcrest} + test + + + + org.hamcrest + hamcrest-core + ${hamcrest} + test + + + + junit + junit + ${junit} + test + + + + org.mockito + mockito-core + ${mockito} + test + + + + org.springframework + spring-test + ${spring} + test + + + + + org.slf4j + slf4j-api + ${slf4j} + + + + org.slf4j + jcl-over-slf4j + ${slf4j} + runtime + + + + ch.qos.logback + logback-classic + ${logback} + test + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.0 + + ${source.level} + ${source.level} + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.12 + + false + + **/*Tests.java + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.1 + + true + + + + + maven-source-plugin + 2.1.2 + + + attach-sources + + jar + + + + + + + com.springsource.bundlor + com.springsource.bundlor.maven + 1.0.0.RELEASE + + ${bundlor.failOnWarnings} + + + + bundlor + + bundlor + + + + + + + + + + + spring-libs-release + http://repo.springsource.org/libs-release + + false + + + + + + + spring-plugins-release + http://repo.springsource.org/plugins-release + + + +
\ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..4ea66d63 --- /dev/null +++ b/pom.xml @@ -0,0 +1,72 @@ + + + + 4.0.0 + org.springframework.data.build + spring-data-build + 1.0.0.BUILD-SNAPSHOT + pom + + Spring Data Build + Modules to centralize common resources and configuration for Spring Data Maven builds. + https://github.com/SpringData/spring-data-build + + + SpringSource + http://www.springsource.org + + + + resources + parent + + + + + ogierke + Oliver Gierke + ogierke at vmware.com + SpringSource + http://www.springsource.com + + Project lead + + +1 + + + + + + Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0 + + Copyright 2010 the original author or authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied. + See the License for the specific language governing permissions and + limitations under the License. + + + + + + https://github.com/SpringSource/spring-data-build + scm:git:git://github.com/SpringSource/spring-data-build.git + scm:git:ssh://git@github.com:SpringSource/spring-data-build.git + + + + GitHub + https://github.com/SpringSource/spring-data-build/issues + + + \ No newline at end of file diff --git a/resources/pom.xml b/resources/pom.xml new file mode 100644 index 00000000..6c8c73c9 --- /dev/null +++ b/resources/pom.xml @@ -0,0 +1,41 @@ + + 4.0.0 + + spring-data-build-resources + pom + + + org.springframework.data.build + spring-data-build + 1.0.0.BUILD-SNAPSHOT + + + Spring Data Build - Common resources + Commonly needed resources like JavaDoc CSS and so on + + + + + org.apache.maven.plugins + maven-assembly-plugin + + + zip-resources + + single + + package + + + src/main/assembly/resources.xml + + false + + + + + + + + \ No newline at end of file diff --git a/resources/src/main/assembly/resources.xml b/resources/src/main/assembly/resources.xml new file mode 100644 index 00000000..3f49e8a8 --- /dev/null +++ b/resources/src/main/assembly/resources.xml @@ -0,0 +1,14 @@ + + + resources + + zip + + false + + + src/main/resources + + + + \ No newline at end of file diff --git a/resources/src/main/resources/assemblies/distribution-multi.xml b/resources/src/main/resources/assemblies/distribution-multi.xml new file mode 100644 index 00000000..ffddfa7b --- /dev/null +++ b/resources/src/main/resources/assemblies/distribution-multi.xml @@ -0,0 +1,30 @@ + + + distribution + + zip + + true + + resources.xml + + + + true + + dist + false + false + + + + true + + sources + src + false + false + + + + \ No newline at end of file diff --git a/resources/src/main/resources/assemblies/distribution-single.xml b/resources/src/main/resources/assemblies/distribution-single.xml new file mode 100644 index 00000000..3995bab7 --- /dev/null +++ b/resources/src/main/resources/assemblies/distribution-single.xml @@ -0,0 +1,24 @@ + + + distribution + + zip + + true + + resources.xml + + + + target/${project.artifactId}-${project.version}.jar + dist + 0644 + + + target/${project.artifactId}-${project.version}-sources.jar + sources + 0644 + + + + \ No newline at end of file diff --git a/resources/src/main/resources/assemblies/resources.xml b/resources/src/main/resources/assemblies/resources.xml new file mode 100644 index 00000000..463c8bca --- /dev/null +++ b/resources/src/main/resources/assemblies/resources.xml @@ -0,0 +1,35 @@ + + + + + + ${project.root}/src/main/resources + + readme.txt + license.txt + notice.txt + changelog.txt + + + dos + + + + ${project.root}/target/site/reference + docs/reference + + + + ${project.root}/target/site/apidocs + docs/api + + + \ No newline at end of file diff --git a/resources/src/main/resources/assemblies/site.xml b/resources/src/main/resources/assemblies/site.xml new file mode 100644 index 00000000..905ea2bc --- /dev/null +++ b/resources/src/main/resources/assemblies/site.xml @@ -0,0 +1,17 @@ + + + site + + zip + + true + + resources.xml + + + + ${project.root}/target/schemas + schemas + + + \ No newline at end of file diff --git a/resources/src/main/resources/docbkx/css/highlight.css b/resources/src/main/resources/docbkx/css/highlight.css new file mode 100644 index 00000000..ffefef72 --- /dev/null +++ b/resources/src/main/resources/docbkx/css/highlight.css @@ -0,0 +1,35 @@ +/* + code highlight CSS resemblign the Eclipse IDE default color schema + @author Costin Leau +*/ + +.hl-keyword { + color: #7F0055; + font-weight: bold; +} + +.hl-comment { + color: #3F5F5F; + font-style: italic; +} + +.hl-multiline-comment { + color: #3F5FBF; + font-style: italic; +} + +.hl-tag { + color: #3F7F7F; +} + +.hl-attribute { + color: #7F007F; +} + +.hl-value { + color: #2A00FF; +} + +.hl-string { + color: #2A00FF; +} \ No newline at end of file diff --git a/resources/src/main/resources/docbkx/css/manual-multipage.css b/resources/src/main/resources/docbkx/css/manual-multipage.css new file mode 100644 index 00000000..c63a3b0e --- /dev/null +++ b/resources/src/main/resources/docbkx/css/manual-multipage.css @@ -0,0 +1,5 @@ +@IMPORT url("manual.css"); + +body.firstpage { + background: url("../images/background.png") no-repeat center top; +} \ No newline at end of file diff --git a/resources/src/main/resources/docbkx/css/manual-singlepage.css b/resources/src/main/resources/docbkx/css/manual-singlepage.css new file mode 100644 index 00000000..6532d825 --- /dev/null +++ b/resources/src/main/resources/docbkx/css/manual-singlepage.css @@ -0,0 +1,5 @@ +@IMPORT url("manual.css"); + +body { + background: url("../images/background.png") no-repeat center top; +} diff --git a/resources/src/main/resources/docbkx/css/manual.css b/resources/src/main/resources/docbkx/css/manual.css new file mode 100644 index 00000000..a2e8500e --- /dev/null +++ b/resources/src/main/resources/docbkx/css/manual.css @@ -0,0 +1,236 @@ +@IMPORT url("highlight.css"); + +html { + padding: 0pt; + margin: 0pt; +} + +body { + color: #333333; + margin: 15px 30px; + font-family: Helvetica, Arial, Freesans, Clean, Sans-serif; + line-height: 1.6; +} + +code { + font-size: 16px; +} + +body>*:first-child { + margin-top: 0 !important; +} + +div { + margin: 0pt; +} + +hr { + border: 1px solid #CCCCCC; + background: #CCCCCC; +} + +h1,h2,h3,h4,h5,h6 { + color: #000000; + cursor: text; + font-weight: bold; + margin: 20px 0 10px; + padding: 0; +} + +h1 { + border-bottom: 1px solid #CCCCCC; + margin: 50px 0 30px; +} + +h1,h1 code { + font-size: 32px; +} + +h2,h2 code { + font-size: 24px; +} + +h3,h3 code { + font-size: 20px; +} + +h4,h1 code,h5,h5 code,h6,h6 code { + font-size: 18px; +} + +div.book,div.chapter,div.appendix,div.part { + min-width: 300px; + max-width: 1200px; + margin: 0 auto; +} + +p.releaseinfo { + font-weight: bold; + margin-bottom: 40px; + margin-top: 40px; +} + +div.authorgroup { + line-height: 1; +} + +p.copyright { + line-height: 1; + margin-bottom: -5px; +} + +.legalnotice p { + font-style: italic; + font-size: 14px; + line-height: 1; +} + +div.titlepage+p,div.titlepage+p { + margin-top: 0; +} + +pre { + line-height: 1.0; + color: black; +} + +a { + color: #4183C4; + text-decoration: none; +} + +p { + margin: 15px 0; + text-align: left; +} + +ul,ol { + padding-left: 30px; +} + +li p { + margin: 0; +} + +div.table { + margin: 1em; + padding: 0.5em; + text-align: center; +} + +div.table table { + display: table; + width: 100%; +} + +div.table td { + padding-left: 7px; + padding-right: 7px; +} + +.sidebar { + font-size: 14px; + line-height: 1.4; + float: right; + clear: both; + margin: 15px 0 30px 30px; + padding: 0 20px; + width: 33%; + background-color: #F8F8F8; + border: 1px solid #CCCCCC; + border-radius: 3px 3px 3px 3px; + float: right; +} + +pre.programlisting { + font-size: 13px; + padding: 6px 10px; + background-color: #F8F8F8; + border: 1px solid #CCCCCC; + border-radius: 3px 3px 3px 3px; + clear: both; + overflow: auto; + line-height: 1.2; +} + +table { + border-collapse: collapse; + border-spacing: 0; + border: none !important; +} + +table tr { + background-color: #FFFFFF; + border-top: 1px solid #CCCCCC; + border-bottom: none; +} + +table th { + font-weight: bold; +} + +table th,table td { + border: 1px solid #CCCCCC !important; + padding: 6px 13px; +} + +table tr:nth-child(2n) { + background-color: #F8F8F8; +} + +td p { + margin: 0; +} + +div.important *,div.note *,div.tip *,div.warning *,div.navheader *,div.navfooter *,div.calloutlist * { + border: none !important; + background: none !important; +} + +div.calloutlist p, div.calloutlist td { + padding: 0; + margin: 0; +} + +div.calloutlist > table > tbody > tr > td:first-child { + padding-left: 10px; + width: 30px !important; +} + +div.note,div.tip,div.warning { + margin-left: 40px !important; + margin-right: 20px !important; + margin-top: 10px; + margin-bottom: 10px; +} + +div.toc { + line-height: 1.1; +} + +dl,dt { + margin-top: 1px; + margin-bottom: 0; +} + +tbody.footnotes * { + border: none !important; +} + +div.footnote p { + margin: 0; + line-height: 1; +} + +div.footnote p sup { + margin-right: 6px; + vertical-align: middle; +} + +div.navheader { + border-bottom: 1px solid #CCCCCC; +} + +div.navfooter { + border-top: 1px solid #CCCCCC; +} \ No newline at end of file diff --git a/resources/src/main/resources/docbkx/images/background.png b/resources/src/main/resources/docbkx/images/background.png new file mode 100644 index 00000000..d4195e5b Binary files /dev/null and b/resources/src/main/resources/docbkx/images/background.png differ diff --git a/resources/src/main/resources/docbkx/images/caution.png b/resources/src/main/resources/docbkx/images/caution.png new file mode 100644 index 00000000..8a5e4fca Binary files /dev/null and b/resources/src/main/resources/docbkx/images/caution.png differ diff --git a/resources/src/main/resources/docbkx/images/important.png b/resources/src/main/resources/docbkx/images/important.png new file mode 100644 index 00000000..ec54df65 Binary files /dev/null and b/resources/src/main/resources/docbkx/images/important.png differ diff --git a/resources/src/main/resources/docbkx/images/logo.png b/resources/src/main/resources/docbkx/images/logo.png new file mode 100644 index 00000000..45f1978f Binary files /dev/null and b/resources/src/main/resources/docbkx/images/logo.png differ diff --git a/resources/src/main/resources/docbkx/images/note.png b/resources/src/main/resources/docbkx/images/note.png new file mode 100644 index 00000000..88d997b1 Binary files /dev/null and b/resources/src/main/resources/docbkx/images/note.png differ diff --git a/resources/src/main/resources/docbkx/images/tip.png b/resources/src/main/resources/docbkx/images/tip.png new file mode 100644 index 00000000..6530abb4 Binary files /dev/null and b/resources/src/main/resources/docbkx/images/tip.png differ diff --git a/resources/src/main/resources/docbkx/images/warning.png b/resources/src/main/resources/docbkx/images/warning.png new file mode 100644 index 00000000..0d5b5244 Binary files /dev/null and b/resources/src/main/resources/docbkx/images/warning.png differ diff --git a/resources/src/main/resources/docbkx/legacy/xsl/highlight-fo.xsl b/resources/src/main/resources/docbkx/legacy/xsl/highlight-fo.xsl new file mode 100644 index 00000000..09d80899 --- /dev/null +++ b/resources/src/main/resources/docbkx/legacy/xsl/highlight-fo.xsl @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/src/main/resources/docbkx/legacy/xsl/highlight.xsl b/resources/src/main/resources/docbkx/legacy/xsl/highlight.xsl new file mode 100644 index 00000000..c63c4765 --- /dev/null +++ b/resources/src/main/resources/docbkx/legacy/xsl/highlight.xsl @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/src/main/resources/docbkx/legacy/xsl/html.xsl b/resources/src/main/resources/docbkx/legacy/xsl/html.xsl new file mode 100644 index 00000000..d3250c7c --- /dev/null +++ b/resources/src/main/resources/docbkx/legacy/xsl/html.xsl @@ -0,0 +1,107 @@ + + + + + + + + + + + 0 + 0 + 1 + + + + + + book toc + + + + 3 + + + + + 1 + + + + + + + 1 + + + 90 + + + + + 1 + images/admons/ + + + + figure after + example before + equation before + table before + procedure before + + + + , + + + + + + + + +
+

Authors

+

+ +

+
+ + + + + + +
+ diff --git a/resources/src/main/resources/docbkx/legacy/xsl/html_chunk.xsl b/resources/src/main/resources/docbkx/legacy/xsl/html_chunk.xsl new file mode 100644 index 00000000..29b35d28 --- /dev/null +++ b/resources/src/main/resources/docbkx/legacy/xsl/html_chunk.xsl @@ -0,0 +1,221 @@ + + + + + + + + + + '5' + '1' + 0 + 0 + 1 + + + + book toc + qandaset toc + + + 3 + + + 1 + + + + + 1 + 90 + + + + + 1 + images/admons/ + + + + figure after + example before + equation before + table before + procedure before + + + + , + + + + () + + + + + +
+

Authors

+

+ +

+
+ + + + + + + + 1 + + + + + + + + + + + + + +
diff --git a/resources/src/main/resources/docbkx/legacy/xsl/pdf.xsl b/resources/src/main/resources/docbkx/legacy/xsl/pdf.xsl new file mode 100644 index 00000000..d05645d0 --- /dev/null +++ b/resources/src/main/resources/docbkx/legacy/xsl/pdf.xsl @@ -0,0 +1,444 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + + + + + + + Copyright © 2012 + + + + + + + + + + + + + + + + + + + + + + + + + + + + -5em + -5em + + + + + + + + + + + Spring Data JPA () + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + 1 + 1 + 0 + + + + + + book toc + + + + 2 + + + + + + + + + + 0 + 0 + 0 + + + 5mm + 10mm + 10mm + + 15mm + 10mm + 0mm + + 18mm + 18mm + + + 0pc + + + + + justify + false + + + 11 + 8 + + + 1.4 + + + + + + + 0.8em + + + + + + 17.4cm + + + + 4pt + 4pt + 4pt + 4pt + + + + 0.1pt + 0.1pt + + + + + 1 + + + + + + + + left + bold + + + pt + + + + + + + + + + + + + + + 0.8em + 0.8em + 0.8em + + + pt + + 0.1em + 0.1em + 0.1em + + + 0.6em + 0.6em + 0.6em + + + pt + + 0.1em + 0.1em + 0.1em + + + 0.4em + 0.4em + 0.4em + + + pt + + 0.1em + 0.1em + 0.1em + + + + + bold + + + pt + + false + 0.4em + 0.6em + 0.8em + + + + + + + + + pt + + + + + 1em + 1em + 1em + #444444 + solid + 0.1pt + 0.5em + 0.5em + 0.5em + 0.5em + 0.5em + 0.5em + + + + 1 + + #F0F0F0 + + + + + + 0 + 1 + + + 90 + + + + + '1' + src/docbkx/resources/images/admons/ + + + + + + figure after + example before + equation before + table before + procedure before + + + + 1 + + + + 0.8em + 0.8em + 0.8em + 0.1em + 0.1em + 0.1em + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/src/main/resources/docbkx/xsl/common.xsl b/resources/src/main/resources/docbkx/xsl/common.xsl new file mode 100644 index 00000000..171b5fa0 --- /dev/null +++ b/resources/src/main/resources/docbkx/xsl/common.xsl @@ -0,0 +1,41 @@ + + + + + + + + 1 + 0 + 1 + + + + images/ + .png + + + book toc,title + 3 + + diff --git a/resources/src/main/resources/docbkx/xsl/html-multipage.xsl b/resources/src/main/resources/docbkx/xsl/html-multipage.xsl new file mode 100644 index 00000000..3772b502 --- /dev/null +++ b/resources/src/main/resources/docbkx/xsl/html-multipage.xsl @@ -0,0 +1,75 @@ + + + + + + + + + + css/manual-multipage.css + + '5' + '1' + + + + + + + + + + + + + + + + + + + + firstpage + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/src/main/resources/docbkx/xsl/html-singlepage.xsl b/resources/src/main/resources/docbkx/xsl/html-singlepage.xsl new file mode 100644 index 00000000..749fd534 --- /dev/null +++ b/resources/src/main/resources/docbkx/xsl/html-singlepage.xsl @@ -0,0 +1,32 @@ + + + + + + + + + + css/manual-singlepage.css + + diff --git a/resources/src/main/resources/docbkx/xsl/html.xsl b/resources/src/main/resources/docbkx/xsl/html.xsl new file mode 100644 index 00000000..139a4dfd --- /dev/null +++ b/resources/src/main/resources/docbkx/xsl/html.xsl @@ -0,0 +1,117 @@ + + + + + + + + + + + 1 + + + 1 + + + + 120 + images/callouts/ + .png + + + text/css + + text-align: left + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + + + + + +
+

Authors

+ +
+
+
diff --git a/resources/src/main/resources/docbkx/xsl/pdf.xsl b/resources/src/main/resources/docbkx/xsl/pdf.xsl new file mode 100644 index 00000000..02304b00 --- /dev/null +++ b/resources/src/main/resources/docbkx/xsl/pdf.xsl @@ -0,0 +1,546 @@ + + + + + + + + + + + + + + + + + 13pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + + + + + + + + + Copyright © + + + + + + + + + + + + + + + + + + + + + + + + + + + + -5em + -5em + + + + + + + + + + + + + + + please define productname in your docbook file! + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + + + + false + + + Helvetica + 10 + 8 + Helvetica + + + 1.4 + + + + left + bold + + + pt + + + + + + + + + + + + + + + 0.8em + 0.8em + 0.8em + + + pt + + 0.1em + 0.1em + 0.1em + + + 0.6em + 0.6em + 0.6em + + + pt + + 0.1em + 0.1em + 0.1em + + + 0.4em + 0.4em + 0.4em + + + pt + + 0.1em + 0.1em + 0.1em + + + 0.3em + 0.3em + 0.3em + + + pt + + 0.1em + 0.1em + 0.1em + + + + + + + + 4pt + 4pt + 4pt + 4pt + + + + 0.1pt + 0.1pt + + + + + + + + + + + + + + + + 8pt + wrap + always + + + + 1em + 1em + 1em + 0.1em + 0.1em + 0.1em + + #444444 + solid + 0.1pt + 0.5em + 0.5em + 0.5em + 0.5em + 0.5em + 0.5em + + + + 1 + + #F0F0F0 + + + + 0.1em + 0.1em + 0.1em + 0.1em + 0.1em + 0.1em + + + + 0.5em + 0.5em + 0.5em + 0.1em + 0.1em + 0.1em + always + + + + #444444 + solid + 0.1pt + #F0F0F0 + + + + + + + normal + italic + + + pt + + false + 0.1em + 0.1em + 0.1em + + + + + + 0 + 1 + + + 90 + + + + + + figure after + example after + equation before + table before + procedure before + + + + 1 + 0pt + + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +