Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial version.

  • Loading branch information...
commit e8c866dcd8d6d163790bf620976cbd54dbca6c06 0 parents
@nawroth nawroth authored
Showing with 4,745 additions and 0 deletions.
  1. +13 −0 .gitignore
  2. +199 −0 Makefile
  3. +218 −0 pom.xml
  4. +55 −0 src/bin/resources/snippet/readme.txt
  5. +12 −0 src/bin/resources/snippet/snippet.conf
  6. +89 −0 src/bin/resources/snippet/snippet.py
  7. +40 −0 src/main/assemblies/html.xml
  8. +41 −0 src/main/assemblies/manpages.xml
  9. +39 −0 src/main/assemblies/upgrade.xml
  10. +49 −0 src/main/assemblies/zip.xml
  11. +18 −0 src/main/resources/conf/asciidoc.conf
  12. +24 −0 src/main/resources/conf/chunked-offline.xsl
  13. +24 −0 src/main/resources/conf/chunked.xsl
  14. +106 −0 src/main/resources/conf/common.xsl
  15. +3 −0  src/main/resources/conf/dblatex.conf
  16. +131 −0 src/main/resources/conf/disqus-footer.xsl
  17. +38 −0 src/main/resources/conf/docbook.conf
  18. +62 −0 src/main/resources/conf/docbook45.conf
  19. +271 −0 src/main/resources/conf/fo.xsl
  20. +22 −0 src/main/resources/conf/footer.xsl
  21. +65 −0 src/main/resources/conf/head.xsl
  22. +27 −0 src/main/resources/conf/html-params.xsl
  23. +15 −0 src/main/resources/conf/offline-footer.xsl
  24. +10 −0 src/main/resources/conf/syntaxhighlight.xsl
  25. +72 −0 src/main/resources/conf/text.xsl
  26. +4 −0 src/main/resources/conf/xhtml.conf
  27. +40 −0 src/main/resources/conf/xhtml.xsl
  28. +226 −0 src/main/resources/css/shCore.css
  29. +328 −0 src/main/resources/css/shCoreDefault.css
  30. +339 −0 src/main/resources/css/shCoreEclipse.css
  31. +117 −0 src/main/resources/css/shThemeDefault.css
  32. +128 −0 src/main/resources/css/shThemeEclipse.css
  33. +87 −0 src/main/resources/docinfo.xml
  34. +8 −0 src/main/resources/glossary.txt
  35. BIN  src/main/resources/images/neo4j-green.png
  36. BIN  src/main/resources/images/neo4j-logo.png
  37. +12 −0 src/main/resources/index-docinfo.html
  38. +17 −0 src/main/resources/js/shAutoloader.js
  39. +59 −0 src/main/resources/js/shBrushAS3.js
  40. +75 −0 src/main/resources/js/shBrushAppleScript.js
  41. +59 −0 src/main/resources/js/shBrushBash.js
  42. +65 −0 src/main/resources/js/shBrushCSharp.js
  43. +100 −0 src/main/resources/js/shBrushColdFusion.js
  44. +97 −0 src/main/resources/js/shBrushCpp.js
  45. +91 −0 src/main/resources/js/shBrushCss.js
  46. +55 −0 src/main/resources/js/shBrushDelphi.js
  47. +41 −0 src/main/resources/js/shBrushDiff.js
  48. +52 −0 src/main/resources/js/shBrushErlang.js
  49. +67 −0 src/main/resources/js/shBrushGroovy.js
  50. +52 −0 src/main/resources/js/shBrushJScript.js
  51. +57 −0 src/main/resources/js/shBrushJava.js
  52. +58 −0 src/main/resources/js/shBrushJavaFX.js
  53. +72 −0 src/main/resources/js/shBrushPerl.js
  54. +88 −0 src/main/resources/js/shBrushPhp.js
  55. +33 −0 src/main/resources/js/shBrushPlain.js
  56. +74 −0 src/main/resources/js/shBrushPowerShell.js
  57. +64 −0 src/main/resources/js/shBrushPython.js
  58. +55 −0 src/main/resources/js/shBrushRuby.js
  59. +94 −0 src/main/resources/js/shBrushSass.js
  60. +51 −0 src/main/resources/js/shBrushScala.js
  61. +66 −0 src/main/resources/js/shBrushSql.js
  62. +56 −0 src/main/resources/js/shBrushVb.js
  63. +69 −0 src/main/resources/js/shBrushXml.js
  64. +17 −0 src/main/resources/js/shCore.js
  65. +17 −0 src/main/resources/js/shLegacy.js
  66. +97 −0 src/main/resources/neo4j-spatial-manual-docinfo.xml
  67. +14 −0 src/main/resources/neo4j-spatial-manual.txt
  68. +1 −0  src/main/resources/version
13 .gitignore
@@ -0,0 +1,13 @@
+*~
+\#*
+*/target/
+/target/
+*.swp
+.project
+.classpath
+.settings
+*.iws
+*.ipr
+*.iml
+.idea/
+.DS_Store
199 Makefile
@@ -0,0 +1,199 @@
+# Makefile for the Neo4j documentation
+#
+
+BUILDDIR = $(CURDIR)/target
+SRCDIR = $(BUILDDIR)/classes
+SRCFILE = $(SRCDIR)/neo4j-spatial-manual.txt
+IMGDIR = $(SRCDIR)/images
+CSSDIR = $(SRCDIR)/css
+JSDIR = $(SRCDIR)/js
+CONFDIR = $(SRCDIR)/conf
+DOCBOOKFILE = $(BUILDDIR)/neo4j-spatial-manual.xml
+DOCBOOKSHORTINFOFILE = $(BUILDDIR)/neo4j-spatial-manual-shortinfo.xml
+DOCBOOKFILEPDF = $(BUILDDIR)/neo4j-spatial-manual-pdf.xml
+FOPDIR = $(BUILDDIR)/pdf
+FOPFILE = $(FOPDIR)/neo4j-spatial-manual.fo
+FOPPDF = $(FOPDIR)/neo4j-spatial-manual.pdf
+TEXTWIDTH = 80
+TEXTDIR = $(BUILDDIR)/text
+TEXTFILE = $(TEXTDIR)/neo4j-spatial-manual.txt
+TEXTHTMLFILE = $(TEXTFILE).html
+SINGLEHTMLDIR = $(BUILDDIR)/html
+SINGLEHTMLFILE = $(SINGLEHTMLDIR)/neo4j-spatial-manual.html
+ANNOTATEDDIR = $(BUILDDIR)/annotated
+ANNOTATEDFILE = $(HTMLDIR)/neo4j-spatial-manual.html
+CHUNKEDHTMLDIR = $(BUILDDIR)/chunked
+CHUNKEDOFFLINEHTMLDIR = $(BUILDDIR)/chunked-offline
+CHUNKEDTARGET = $(BUILDDIR)/neo4j-spatial-manual.chunked
+CHUNKEDSHORTINFOTARGET = $(BUILDDIR)/neo4j-spatial-manual-shortinfo.chunked
+MANPAGES = $(BUILDDIR)/manpages
+UPGRADE = $(BUILDDIR)/upgrade
+FILTERSRC = $(CURDIR)/src/bin/resources
+FILTERDEST = ~/.asciidoc/filters
+
+ifdef VERBOSE
+ V = -v
+ VA = VERBOSE=1
+endif
+
+ifdef KEEP
+ K = -k
+ KA = KEEP=1
+endif
+
+ifdef VERSION
+ VERS = --attribute revnumber=$(VERSION)
+else
+ VERS = --attribute revnumber=-neo4j-version
+endif
+
+ifdef IMPORTDIR
+ IMPDIR = --attribute importdir=$(IMPORTDIR)
+else
+ IMPDIR = --attribute importdir=$(SRCDIR)
+ IMPORTDIR = $(SRCDIR)
+endif
+
+GENERAL_FLAGS = $(V) $(K) $(VERS) $(IMPDIR)
+
+.PHONY: all dist docbook help clean pdf html offline-html text cleanup annotated upgrade installfilter
+
+help:
+ @echo "Please use 'make <target>' where <target> is one of"
+ @echo " clean to clean the build directory"
+ @echo " dist to generate the common distribution formats"
+ @echo " pdf to generate a PDF file using FOP"
+ @echo " html to make standalone HTML files"
+ @echo " singlehtml to make a single large HTML file"
+ @echo " text to make text files"
+ @echo " annotated to make a single annotated HTML file"
+ @echo " manpages to make the manpages"
+ @echo "For verbose output, use 'VERBOSE=1'".
+ @echo "To keep temporary files, use 'KEEP=1'".
+ @echo "To set the version, use 'VERSION=[the version]'".
+ @echo "To set the importdir, use 'IMPORTDIR=[the importdir]'".
+
+dist: installfilter pdf offline-html annotated text cleanup
+# html has been removed for now
+
+clean:
+ -rm -rf $(BUILDDIR)/*
+
+cleanup:
+ #
+ #
+ # Cleaning up.
+ #
+ #
+ifndef KEEP
+ rm -f $(DOCBOOKFILE)
+ rm -f $(DOCBOOKFILEPDF)
+ rm -f $(DOCBOOKSHORTINFOFILE)
+ rm -f $(BUILDDIR)/*.xml
+ rm -f $(FOPDIR)/images
+ rm -f $(UPGRADE)/*.xml
+ rm -f $(UPGRADE)/*.html
+endif
+
+installfilter:
+ #
+ #
+ # Installing asciidoc filters.
+ #
+ #
+ mkdir -p $(FILTERDEST)
+ cp -fru $(FILTERSRC)/* $(FILTERDEST)
+
+copyimages:
+ #
+ #
+ # Copying images from source projects.
+ #
+ #
+ cp -fr $(IMPORTDIR)/*/*/images/* $(SRCDIR)/images/
+
+docbook: copyimages
+ #
+ #
+ # Building docbook output.
+ #
+ #
+ mkdir -p $(BUILDDIR)
+ asciidoc $(V) $(VERS) $(IMPDIR) --backend docbook --attribute docinfo --doctype book --conf-file=$(CONFDIR)/asciidoc.conf --conf-file=$(CONFDIR)/docbook45.conf --out-file $(DOCBOOKFILE) $(SRCFILE)
+ xmllint --nonet --noout --xinclude --postvalid $(DOCBOOKFILE)
+
+docbook-shortinfo: copyimages
+ #
+ #
+ # Building docbook output with short info.
+ #
+ #
+ mkdir -p $(BUILDDIR)
+ asciidoc $(V) $(VERS) $(IMPDIR) --backend docbook --attribute docinfo1 --doctype book --conf-file=$(CONFDIR)/asciidoc.conf --conf-file=$(CONFDIR)/docbook45.conf --out-file $(DOCBOOKSHORTINFOFILE) $(SRCFILE)
+ xmllint --nonet --noout --xinclude --postvalid $(DOCBOOKSHORTINFOFILE)
+
+pdf: docbook copyimages
+ #
+ #
+ # Building PDF.
+ #
+ #
+ sed 's/\&#8594;/\&#8211;\&gt;/g' <$(DOCBOOKFILE) >$(DOCBOOKFILEPDF)
+ mkdir -p $(FOPDIR)
+ cd $(FOPDIR)
+ xsltproc --xinclude --output $(FOPFILE) $(CONFDIR)/fo.xsl $(DOCBOOKFILEPDF)
+ ln -s $(SRCDIR)/images $(FOPDIR)/images
+ fop -fo $(FOPFILE) -pdf $(FOPPDF)
+ifndef KEEP
+ rm -f $(FOPFILE)
+endif
+
+html: copyimages docbook-shortinfo
+ #
+ #
+ # Building html output.
+ #
+ #
+ a2x $(V) -L -f chunked -D $(BUILDDIR) --xsl-file=$(CONFDIR)/chunked.xsl -r $(IMGDIR) -r $(CSSDIR) --xsltproc-opts "--stringparam admon.graphics 1" --xsltproc-opts "--xinclude" --xsltproc-opts "--stringparam chunk.section.depth 1" --xsltproc-opts "--stringparam toc.section.depth 1" $(DOCBOOKSHORTINFOFILE)
+ rm -rf $(CHUNKEDHTMLDIR)
+ mv $(CHUNKEDSHORTINFOTARGET) $(CHUNKEDHTMLDIR)
+ cp -fr $(JSDIR) $(CHUNKEDHTMLDIR)/js
+
+offline-html: copyimages docbook-shortinfo
+ #
+ #
+ # Building html output for offline use.
+ #
+ #
+ a2x $(V) -L -f chunked -D $(BUILDDIR) --xsl-file=$(CONFDIR)/chunked-offline.xsl -r $(IMGDIR) -r $(CSSDIR) --xsltproc-opts "--stringparam admon.graphics 1" --xsltproc-opts "--xinclude" --xsltproc-opts "--stringparam chunk.section.depth 1" --xsltproc-opts "--stringparam toc.section.depth 1" $(DOCBOOKSHORTINFOFILE)
+ rm -rf $(CHUNKEDOFFLINEHTMLDIR)
+ mv $(CHUNKEDSHORTINFOTARGET) $(CHUNKEDOFFLINEHTMLDIR)
+ cp -fr $(JSDIR) $(CHUNKEDOFFLINEHTMLDIR)/js
+
+# currently builds docbook format first
+annotated: copyimages
+ #
+ #
+ # Building annotated html output.
+ #
+ #
+ mkdir -p $(ANNOTATEDDIR)
+ a2x $(GENERAL_FLAGS) -L -a showcomments -f xhtml -D $(ANNOTATEDDIR) --conf-file=$(CONFDIR)/xhtml.conf --asciidoc-opts "--conf-file=$(CONFDIR)/asciidoc.conf" --asciidoc-opts "--conf-file=$(CONFDIR)/docbook45.conf" --xsl-file=$(CONFDIR)/xhtml.xsl --xsltproc-opts "--stringparam admon.graphics 1" $(SRCFILE)
+ cp -fr $(SRCDIR)/js $(ANNOTATEDDIR)/js
+
+text: docbook-shortinfo
+ #
+ #
+ # Building text output.
+ #
+ #
+ mkdir -p $(TEXTDIR)
+ cd $(TEXTDIR)
+ xsltproc --xinclude --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 --output $(TEXTHTMLFILE) $(CONFDIR)/text.xsl $(DOCBOOKSHORTINFOFILE)
+ cd $(SRCDIR)
+ w3m -cols $(TEXTWIDTH) -dump -T text/html -no-graph $(TEXTHTMLFILE) > $(TEXTFILE)
+ifndef KEEP
+ rm -f $(TEXTHTMLFILE)
+ rm -f $(TEXTDIR)/*.html
+endif
+
218 pom.xml
@@ -0,0 +1,218 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.neo4j</groupId>
+ <artifactId>parent-pom</artifactId>
+ <version>18</version>
+ </parent>
+ <groupId>org.neo4j.doc</groupId>
+ <artifactId>neo4j-spatial-manual</artifactId>
+ <version>0.5-SNAPSHOT</version>
+ <name>Neo4j Spatial Manual</name>
+ <description>Neo4j SPatial Reference Manual.</description>
+ <url>http://components.neo4j.org/${project.artifactId}/${project.version}</url>
+ <packaging>pom</packaging>
+
+ <properties>
+ <short-name>manual</short-name>
+ <docs.sources>${project.build.directory}/docs</docs.sources>
+ <docs.test-sources>${project.build.directory}/test-sources</docs.test-sources>
+ <docs.images>${project.build.outputDirectory}/images</docs.images>
+ <neo4j-spatial.version>0.5-SNAPSHOT</neo4j-spatial.version>
+ </properties>
+
+ <scm>
+ <url>https://github.com/neo4j/server/tree/master/manual</url>
+ </scm>
+
+ <licenses>
+ <license>
+ <name>Creative Commons Attribution-ShareAlike 3.0 Unported</name>
+ <url>http://creativecommons.org/licenses/by-sa/3.0/</url>
+ </license>
+ </licenses>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.neo4j</groupId>
+ <artifactId>neo4j-spatial</artifactId>
+ <version>${neo4j-spatial.version}</version>
+ <classifier>docs</classifier>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.neo4j</groupId>
+ <artifactId>neo4j-spatial</artifactId>
+ <version>${neo4j-spatial.version}</version>
+ <classifier>test-sources</classifier>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ <includes>
+ <include>version</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>false</filtering>
+ <excludes>
+ <exclude>version</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>resources</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack-asciidoc-sources</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>unpack-dependencies</goal>
+ </goals>
+ <configuration>
+ <classifier>docs</classifier>
+ <includeClassifiers>docs</includeClassifiers>
+ <excludeTransitive>true</excludeTransitive>
+ <useSubDirectoryPerArtifact>true</useSubDirectoryPerArtifact>
+ <stripVersion>true</stripVersion>
+ <excludes>META-INF,META-INF/**</excludes>
+ <type>jar</type>
+ <outputDirectory>${docs.sources}</outputDirectory>
+ </configuration>
+ </execution>
+ <execution>
+ <id>unpack-test-sources</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>unpack-dependencies</goal>
+ </goals>
+ <configuration>
+ <classifier>test-sources</classifier>
+ <includeClassifiers>test-sources</includeClassifiers>
+ <excludeTransitive>true</excludeTransitive>
+ <useSubDirectoryPerArtifact>true</useSubDirectoryPerArtifact>
+ <stripVersion>true</stripVersion>
+ <excludes>META-INF,META-INF/**</excludes>
+ <type>jar</type>
+ <outputDirectory>${docs.test-sources}</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>execute-asciidoc</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>make</executable>
+ <arguments>
+ <argument>dist</argument>
+ <argument>VERSION=${project.version}</argument>
+ <argument>IMPORTDIR=${docs.sources}</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <id>upload-to-servers</id>
+ <phase>none</phase> <!-- disabled for now -->
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>${project.build.directory}/../upload.sh</executable>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>zip</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+ <descriptor>src/main/assemblies/zip.xml</descriptor>
+ </descriptors>
+ <finalName>${project.artifactId}-${project.version}</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ <attach>true</attach>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.mycila.maven-license-plugin</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>src/main/resources/js/**</exclude>
+ <exclude>src/main/resources/css/**</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-docs</id>
+ <phase>none</phase>
+ </execution>
+ <execution>
+ <id>attach-test-jar</id>
+ <phase>none</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-release-plugin</artifactId>
+ <configuration>
+ <tag>${releaseVersion}</tag>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <!-- fix issue with appassembler -->
+ <version>2.4</version>
+ </plugin>
+ </plugins>
+ </build>
+
+ <distributionManagement>
+ <site>
+ <id>neo4j-site</id>
+ <url>scpexe://components.neo4j.org/home/neo/components/${project.artifactId}/${project.version}</url>
+ </site>
+ </distributionManagement>
+
+</project>
+
55 src/bin/resources/snippet/readme.txt
@@ -0,0 +1,55 @@
+Asciidoc code snippets
+======================
+
+Install snippet support:
+Copy the snippet.py and snippet.conf files to ~/.asciidoc/filters/snippet
+If needed, set permissions to execute snippet.py.
+
+Make sure that the depency for the code to include is declared in the manual.
+Example:
+
+ <dependency>
+ <groupId>org.neo4j.examples</groupId>
+ <artifactId>neo4j-examples</artifactId>
+ <version>${neo4j.version}</version>
+ <classifier>test-sources</classifier>
+ <scope>provided</scope>
+ </dependency>
+
+Then you can include a code snippet this way from an Asciidoc document:
+
+.Ordered path example
+[snippet,java]
+----
+component=neo4j-examples
+source=org/neo4j/examples/orderedpath/OrderedPathTest.java
+tag=walkOrderedPath
+----
+
+If the classifier of the artifact isn't "test-sources", set it using for example:
+classifier=sources
+
+How to tag the code:
+
+Java syntax:
+
+ // START SNIPPET: createReltype
+ private static enum ExampleRelationshipTypes implements RelationshipType
+ {
+ EXAMPLE
+ }
+ // END SNIPPET: createReltype
+
+XML syntax:
+
+ <!-- START SNIPPET: deps -->
+ <dependencies>
+ <dependency>
+ <groupId>org.neo4j</groupId>
+ <artifactId>neo4j</artifactId>
+ <version>${project.version}</version> <!-- for example 1.2.M03 -->
+ <type>pom</type>
+ </dependency>
+ </dependencies>
+ <!-- END SNIPPET: deps -->
+
12 src/bin/resources/snippet/snippet.conf
@@ -0,0 +1,12 @@
+#
+# AsciiDoc Snippet filter configuration file.
+#
+
+[snippet-filter-style]
+snippet-style=template="snippet-block",posattrs=("style","language"),filter='snippet.py'
+
+[blockdef-listing]
+template::[snippet-filter-style]
+
+[snippet-block]
+template::[source-highlight-block]
89 src/bin/resources/snippet/snippet.py
@@ -0,0 +1,89 @@
+#!/usr/bin/env python
+# -*- mode: Python; coding: utf-8 -*-
+"""
+source=ignored
+component=ignored
+tag=self-test
+"""
+
+import sys
+
+PATH_PATTERN="target/%(classifier)s/%(component)s-%(classifier)s-jar/%(source)s"
+
+def configuration(indata):
+ config = {}
+ for line in indata:
+ line = line.strip()
+ if not line: continue
+ try:
+ key, value = line.split('=',1)
+ except:
+ raise ValueError('invalid config line: "%s"' % (line,))
+ config[key] = value
+ return config
+
+def snippet(source=None, component=None, classifier="test-sources", tag=None,
+ tablength="4", **other):
+ for key in other:
+ sys.stderr.write("WARNING: unknown config key: '%s'\n" % key)
+ if not tag: raise ValueError("'tag' must be specified")
+ if not source: raise ValueError("'source' must be specified")
+ if not component: raise ValueError("'component' must be specified")
+ if not classifier: raise ValueError("'classifier' must be specified")
+ try:
+ tablength = ' ' * int(tablength)
+ except:
+ raise ValueError("'tablength' must be specified as an integer")
+
+ START = "START SNIPPET: %s" % tag
+ END = "END SNIPPET: %s" % tag
+
+ sourceFile = open(PATH_PATTERN % locals())
+
+ try:
+ # START SNIPPET: self-test
+ buff = []
+ mindent = 1<<32 # a large numer - no indentation is this long
+ emit = False
+
+ for line in sourceFile:
+ if END in line: emit = False
+ if emit:
+ line = line.replace(']]>',']]>]]&gt;<![CDATA[')
+ meat = line.lstrip()
+ if meat:
+ indent = line[:-len(meat)].replace('\t', tablength)
+ mindent = min(mindent, len(indent))
+ buff.append(indent + meat)
+ else:
+ buff.append('')
+ if START in line: emit = True
+ # END SNIPPET: self-test
+ finally:
+ sourceFile.close()
+
+ for line in buff:
+ if line:
+ yield line[mindent:]
+ else:
+ yield '\n'
+
+if __name__ == '__main__':
+ import traceback
+ indata = sys.stdin
+ if len(sys.argv) == 2 and sys.argv[1] == '--self-test':
+ PATH_PATTERN = __file__
+ indata = __doc__.split('\n')
+ try:
+ # START SNIPPET: self-test
+ sys.stdout.write("<![CDATA[")
+ for line in snippet(**configuration(indata)):
+ sys.stdout.write(line)
+ # END SNIPPET: self-test
+ except:
+ traceback.print_exc(file=sys.stdout)
+ raise
+ finally:
+ # START SNIPPET: self-test
+ sys.stdout.write("]]>")
+ # END SNIPPET: self-test
40 src/main/assemblies/html.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright (c) 2002-2011 "Neo Technology,"
+ Network Engine for Objects in Lund AB [http://neotechnology.com]
+
+ This file is part of Neo4j.
+
+ Neo4j is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+-->
+<assembly>
+ <id>html</id>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <fileSets>
+
+ <!-- non-maven jars -->
+ <fileSet>
+ <directory>target/chunked-offline</directory>
+ <outputDirectory>/docs</outputDirectory>
+ <includes>
+ <include>**</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+</assembly>
41 src/main/assemblies/manpages.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright (c) 2002-2011 "Neo Technology,"
+ Network Engine for Objects in Lund AB [http://neotechnology.com]
+
+ This file is part of Neo4j.
+
+ Neo4j is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+-->
+<assembly>
+ <id>manpages</id>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <fileSets>
+
+ <!-- non-maven jars -->
+ <fileSet>
+ <directory>target/manpages</directory>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <include>*.txt</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+</assembly>
+
39 src/main/assemblies/upgrade.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright (c) 2002-2011 "Neo Technology,"
+ Network Engine for Objects in Lund AB [http://neotechnology.com]
+
+ This file is part of Neo4j.
+
+ Neo4j is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+-->
+<assembly>
+ <id>upgrade</id>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <fileSets>
+ <fileSet>
+ <directory>target/upgrade/</directory>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <include>*.txt</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+</assembly>
+
49 src/main/assemblies/zip.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright (c) 2002-2011 "Neo Technology,"
+ Network Engine for Objects in Lund AB [http://neotechnology.com]
+
+ This file is part of Neo4j.
+
+ Neo4j is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+-->
+<assembly>
+ <id>packaged</id>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <fileSets>
+
+ <!-- non-maven jars -->
+ <fileSet>
+ <directory>target/</directory>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <include>pdf/*.pdf</include>
+ <include>text/**</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>target/chunked-offline</directory>
+ <outputDirectory>/html</outputDirectory>
+ <includes>
+ <include>**</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+</assembly>
+
18 src/main/resources/conf/asciidoc.conf
@@ -0,0 +1,18 @@
+[miscellaneous]
+tabsize=4
+
+[attributes]
+iconsdir=images/icons
+imagesdir=images
+# default syntax highlighter to plain text
+language=plain
+
+[replacements]
+# Replacements performed in order of configuration file entry. The first entry
+# of each replacement pair performs the (non-escaped) replacement, the second
+# strips the backslash from the escaped replacement.
+
+# Replace vertical typewriter apostrophe with punctuation apostrophe.
+(\w)'(\w)=\1&#8217;\2
+(\w)\\'(\w)=\1'\2
+
24 src/main/resources/conf/chunked-offline.xsl
@@ -0,0 +1,24 @@
+<!--
+ Generates chunked XHTML documents from DocBook XML source using DocBook XSL
+ stylesheets.
+
+ NOTE: The URL reference to the current DocBook XSL stylesheets is
+ rewritten to point to the copy on the local disk drive by the XML catalog
+ rewrite directives so it doesn't need to go out to the Internet for the
+ stylesheets. This means you don't need to edit the <xsl:import> elements on
+ a machine by machine basis.
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/>
+<xsl:import href="common.xsl"/>
+
+<xsl:import href="html-params.xsl"/>
+
+<xsl:import href="head.xsl"/>
+
+<xsl:import href="syntaxhighlight.xsl"/>
+
+<xsl:import href="offline-footer.xsl"/>
+
+</xsl:stylesheet>
+
24 src/main/resources/conf/chunked.xsl
@@ -0,0 +1,24 @@
+<!--
+ Generates chunked XHTML documents from DocBook XML source using DocBook XSL
+ stylesheets.
+
+ NOTE: The URL reference to the current DocBook XSL stylesheets is
+ rewritten to point to the copy on the local disk drive by the XML catalog
+ rewrite directives so it doesn't need to go out to the Internet for the
+ stylesheets. This means you don't need to edit the <xsl:import> elements on
+ a machine by machine basis.
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/>
+<xsl:import href="common.xsl"/>
+
+<xsl:import href="html-params.xsl"/>
+
+<xsl:import href="head.xsl"/>
+
+<xsl:import href="syntaxhighlight.xsl"/>
+
+<xsl:import href="disqus-footer.xsl"/>
+
+</xsl:stylesheet>
+
106 src/main/resources/conf/common.xsl
@@ -0,0 +1,106 @@
+<!--
+ Inlcuded in xhtml.xsl, xhtml.chunked.xsl, htmlhelp.xsl.
+ Contains common XSL stylesheets parameters.
+ Output documents styled by docbook.css.
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<xsl:param name="html.stylesheet" select="'docbook-xsl.css'"/>
+
+<xsl:param name="htmlhelp.chm" select="'htmlhelp.chm'"/>
+<xsl:param name="htmlhelp.hhc.section.depth" select="5"/>
+
+<xsl:param name="section.autolabel">
+ <xsl:choose>
+ <xsl:when test="/processing-instruction('asciidoc-numbered')">1</xsl:when>
+ <xsl:otherwise>0</xsl:otherwise>
+ </xsl:choose>
+</xsl:param>
+
+<xsl:param name="suppress.navigation" select="0"/>
+<xsl:param name="navig.graphics.extension" select="'.png'"/>
+<xsl:param name="navig.graphics" select="0"/>
+<xsl:param name="navig.graphics.path">images/icons/</xsl:param>
+<xsl:param name="navig.showtitles">0</xsl:param>
+
+<xsl:param name="shade.verbatim" select="0"/>
+<xsl:attribute-set name="shade.verbatim.style">
+ <xsl:attribute name="border">0</xsl:attribute>
+ <xsl:attribute name="background-color">#E0E0E0</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:param name="admon.graphics" select="1"/>
+<xsl:param name="admon.graphics.path">images/icons/</xsl:param>
+<xsl:param name="admon.graphics.extension" select="'.png'"/>
+<xsl:param name="admon.style">
+ <xsl:text>margin-left: 0; margin-right: 10%;</xsl:text>
+</xsl:param>
+<xsl:param name="admon.textlabel" select="1"/>
+
+<xsl:param name="callout.defaultcolumn" select="'60'"/>
+<xsl:param name="callout.graphics.extension" select="'.png'"/>
+<xsl:param name="callout.graphics" select="'1'"/>
+<xsl:param name="callout.graphics.number.limit" select="'10'"/>
+<xsl:param name="callout.graphics.path" select="'images/icons/callouts/'"/>
+<xsl:param name="callout.list.table" select="'1'"/>
+
+<!-- This does not seem to work. -->
+<xsl:param name="section.autolabel.max.depth" select="2"/>
+
+<xsl:param name="chunk.first.sections" select="1"/>
+<xsl:param name="chunk.section.depth" select="1"/>
+<xsl:param name="chunk.quietly" select="0"/>
+<xsl:param name="chunk.toc" select="''"/>
+<xsl:param name="chunk.tocs.and.lots" select="0"/>
+
+<xsl:param name="html.cellpadding" select="'4px'"/>
+<xsl:param name="html.cellspacing" select="''"/>
+
+<xsl:param name="table.borders.with.css" select="1"/>
+<xsl:param name="table.cell.border.color" select="'#527bbd'"/>
+
+<xsl:param name="table.cell.border.style" select="'solid'"/>
+<xsl:param name="table.cell.border.thickness" select="'1px'"/>
+<xsl:param name="table.footnote.number.format" select="'a'"/>
+<xsl:param name="table.footnote.number.symbols" select="''"/>
+<xsl:param name="table.frame.border.color" select="'#527bbd'"/>
+<xsl:param name="table.frame.border.style" select="'solid'"/>
+<xsl:param name="table.frame.border.thickness" select="'3px'"/>
+<xsl:param name="tablecolumns.extension" select="'1'"/>
+
+<xsl:param name="highlight.source" select="1"/>
+
+<xsl:param name="section.label.includes.component.label" select="1"/>
+
+<!--
+ Table of contents inserted by <?asciidoc-toc?> processing instruction.
+-->
+<xsl:param name="generate.toc">
+ <xsl:choose>
+ <xsl:when test="/processing-instruction('asciidoc-toc')">
+article toc,title
+book toc,title,figure,table,example,equation
+ <!-- The only way I could find that suppressed book chapter TOCs -->
+ <xsl:if test="$generate.section.toc.level != 0">
+chapter toc,title
+part toc,title
+preface toc,title
+qandadiv toc
+qandaset toc
+reference toc,title
+sect1 toc
+sect2 toc
+sect3 toc
+sect4 toc
+sect5 toc
+section toc
+set toc,title
+ </xsl:if>
+ </xsl:when>
+ <xsl:otherwise>
+article nop
+book nop
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:param>
+
+</xsl:stylesheet>
3  src/main/resources/conf/dblatex.conf
@@ -0,0 +1,3 @@
+ASCIIDOC_OPTS = '--attribute docinfo --doctype book --attribute imagesdir=../../images --conf-file=conf/asciidoc.conf --conf-file=conf/docbook45.conf'
+DBLATEX_OPTS = '--param toc.section.depth=1'
+XSLTPROC_OPTS = '--xinclude'
131 src/main/resources/conf/disqus-footer.xsl
@@ -0,0 +1,131 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+<xsl:template name="user.footer.content">
+<xsl:text disable-output-escaping="yes">
+<![CDATA[
+<div id="disqus_thread"></div>
+<script type="text/javascript">
+// DISQUS
+ var disqus_identifier = "manual";
+ var disqus_title = "The Neo4j Manual";
+ function getIdFromHeading ( headingElement )
+ {
+ var id = disqus_identifier;
+ var child = headingElement.firstChild;
+ if ( !child || child.nodeName.toLowerCase() !== "a")
+ {
+ return null;
+ }
+ var attr = child.getAttribute("id");
+ if ( !attr )
+ {
+ return null;
+ }
+ id += "-";
+ id += headingElement.firstChild.getAttribute("id");
+ return id;
+ }
+ var headings = document.body.getElementsByTagName("h1");
+ if ( headings.length > 0 )
+ {
+ var h1Id = getIdFromHeading ( headings[0] );
+ if ( h1Id )
+ {
+ if ( h1Id.length > 2 && h1Id.substr( 0, 9) === "manual-id" )
+ {
+ disqus_identifier += "-toc";
+ }
+ else
+ {
+ disqus_identifier = h1Id;
+ }
+ }
+ }
+ else
+ {
+ headings = document.body.getElementsByTagName("h2");
+ if ( headings.length > 0 )
+ {
+ var id = getIdFromHeading( headings[0] );
+ if ( id )
+ {
+ disqus_identifier = id;
+ }
+ else
+ {
+ var divs = document.body.getElementsByTagName("div");
+ for ( var i=0, l=divs.length; i<l; i+=1)
+ {
+ var div = divs[i];
+ if ( div.className === "refsynopsisdiv")
+ {
+ var divId = getIdFromHeading( div );
+ if ( divId )
+ {
+ disqus_identifier = divId;
+ }
+ break;
+ }
+ }
+ }
+ }
+ if ( document.title )
+ {
+ disqus_title = document.title;
+ var match = disqus_title.match( /^(Chapter|)[0-9\.\s]*(.*)$/ );
+ if ( match && match[2] )
+ {
+ disqus_title = match[2];
+ }
+ }
+ }
+ var disqus_url = window.location;
+ if ( disqus_url.protocol !== "http:" && disqus_url.protocol !== "https:" )
+ {
+ var docsLocation = "http://docs.neo4j.org/chunked/snapshot/";
+ var path = disqus_url.pathname;
+ var position = path.lastIndexOf('/');
+ if ( position === -1 )
+ {
+ position = path.lastIndexOf('\\');
+ }
+ if ( position > 0 )
+ {
+ var page = path.substring( position + 1 );
+ disqus_url = docsLocation + page;
+ }
+ }
+ var disqus_shortname = "neo4j";
+ var disqus_developer = 0;
+
+(function() {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+})();
+
+// GA
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-1192232-16']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+</script>
+]]>
+</xsl:text>
+ <HR/>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:apply-templates select="/book/bookinfo/legalnotice[1]" mode="chunk-filename"/>
+ </xsl:attribute>
+
+ <xsl:apply-templates select="/book/bookinfo/copyright[1]" mode="titlepage.mode"/>
+ </a>
+</xsl:template>
+
+</xsl:stylesheet>
+
38 src/main/resources/conf/docbook.conf
@@ -0,0 +1,38 @@
+[image-inlinemacro]
+<inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}/>
+ </imageobject>
+ <textobject><phrase>{alt={target}}</phrase></textobject>
+</inlinemediaobject>
+
+[image-blockmacro]
+<figure{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}{pgwide-option? pgwide="1"}><title>{title}</title>
+{title%}<informalfigure{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{pgwide-option?<?dbfo pgwide="1"?>}
+# DocBook XSL Stylesheets custom processing instructions.
+<?dbfo keep-together="{breakable-option#auto}"?>
+<?dbfo keep-together="{unbreakable-option#always}"?>
+<mediaobject>
+ <imageobject>
+ <imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}{scaledwidth? width="{scaledwidth}" scalefit="1"}{align? align="{align}"}/>
+ </imageobject>
+ <textobject><phrase>{alt={target}}</phrase></textobject>
+</mediaobject>
+{title#}</figure>
+{title%}</informalfigure>
+
+#-------------------------
+# book document type
+#-------------------------
+ifdef::doctype-book[]
+
+[header]
+template::[header-declarations]
+
+<book lang="{lang=en}">
+<bookinfo>
+template::[docinfo]
+</bookinfo>
+
+[footer]
+</book>
62 src/main/resources/conf/docbook45.conf
@@ -0,0 +1,62 @@
+#
+# docbook45.conf
+#
+# Asciidoc DocBook 4.5 configuration file.
+#
+
+[image-inlinemacro]
+<inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}{scale? scale="{scale}"}/>
+ </imageobject>
+ <textobject><phrase>{alt={target}}</phrase></textobject>
+</inlinemediaobject>
+
+[image-blockmacro]
+<figure{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}{pgwide-option? pgwide="1"}><title>{title}</title>
+{title%}<informalfigure{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{pgwide-option?<?dbfo pgwide="1"?>}
+# DocBook XSL Stylesheets custom processing instructions.
+<?dbfo keep-together="{breakable-option#auto}"?>
+<?dbfo keep-together="{unbreakable-option#always}"?>
+<mediaobject>
+ <imageobject>
+ <imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}{scale? scale="{scale}"}{scaledwidth? width="{scaledwidth}" scalefit="1"}{align? align="{align}"}/>
+ </imageobject>
+ <textobject><phrase>{alt={target}}</phrase></textobject>
+</mediaobject>
+{title#}</figure>
+{title%}</informalfigure>
+
+#-------------------------
+# book document type
+#-------------------------
+ifdef::doctype-book[]
+
+[header]
+template::[header-declarations]
+
+<book lang="{lang=en}">
+<bookinfo>
+<mediaobject>
+ <imageobject>
+ <imagedata fileref="images/neo4j-logo.png"/>
+ </imageobject>
+</mediaobject>
+template::[docinfo]
+</bookinfo>
+
+[footer]
+</book>
+
+endif::doctype-book[]
+
+# glossary item
+
+[listtags-glossary]
+list=
+entry=<glossentry>|</glossentry>
+label=
+term=<glossterm>|</glossterm>
+item=<glossdef>|</glossdef>
+text=<simpara>|</simpara>
+
271 src/main/resources/conf/fo.xsl
@@ -0,0 +1,271 @@
+<!--
+ Generates single FO document from DocBook XML source using DocBook XSL
+ stylesheets.
+
+ See xsl-stylesheets/fo/param.xsl for all parameters.
+
+ NOTE: The URL reference to the current DocBook XSL stylesheets is
+ rewritten to point to the copy on the local disk drive by the XML catalog
+ rewrite directives so it doesn't need to go out to the Internet for the
+ stylesheets. This means you don't need to edit the <xsl:import> elements on
+ a machine by machine basis.
+-->
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
+<xsl:import href="common.xsl"/>
+
+<xsl:param name="fop1.extensions" select="1" />
+<xsl:param name="variablelist.as.blocks" select="1" />
+
+<xsl:param name="paper.type" select="'A4'"/>
+<!--
+<xsl:param name="paper.type" select="'USletter'"/>
+-->
+<xsl:param name="hyphenate">false</xsl:param>
+<!-- justify, left or right -->
+<xsl:param name="alignment">left</xsl:param>
+
+<xsl:param name="body.font.family" select="'serif'"/>
+<xsl:param name="body.font.master">12</xsl:param>
+<xsl:param name="body.font.size">
+ <xsl:value-of select="$body.font.master"/><xsl:text>pt</xsl:text>
+</xsl:param>
+
+<xsl:param name="body.margin.bottom" select="'0.5in'"/>
+<xsl:param name="body.margin.top" select="'0.5in'"/>
+<xsl:param name="bridgehead.in.toc" select="0"/>
+
+<!-- overide setting in common.xsl -->
+<xsl:param name="table.frame.border.thickness" select="'2px'"/>
+
+<!-- Default fetches image from Internet (long timeouts) -->
+<xsl:param name="draft.watermark.image" select="''"/>
+
+<!-- Line break -->
+<xsl:template match="processing-instruction('asciidoc-br')">
+ <fo:block/>
+</xsl:template>
+
+<!-- Horizontal ruler -->
+<xsl:template match="processing-instruction('asciidoc-hr')">
+ <fo:block space-after="1em">
+ <fo:leader leader-pattern="rule" rule-thickness="0.5pt" rule-style="solid" leader-length.minimum="100%"/>
+ </fo:block>
+</xsl:template>
+
+<!-- Hard page break -->
+<xsl:template match="processing-instruction('asciidoc-pagebreak')">
+ <fo:block break-after='page'/>
+</xsl:template>
+
+<!-- Sets title to body text indent -->
+<xsl:param name="body.start.indent">
+ <xsl:choose>
+ <xsl:when test="$fop.extensions != 0">0pt</xsl:when>
+ <xsl:when test="$passivetex.extensions != 0">0pt</xsl:when>
+ <xsl:otherwise>1pc</xsl:otherwise>
+ </xsl:choose>
+</xsl:param>
+<xsl:param name="title.margin.left">
+ <xsl:choose>
+ <xsl:when test="$fop.extensions != 0">-1pc</xsl:when>
+ <xsl:when test="$passivetex.extensions != 0">0pt</xsl:when>
+ <xsl:otherwise>0pt</xsl:otherwise>
+ </xsl:choose>
+</xsl:param>
+<xsl:param name="page.margin.bottom" select="'0.25in'"/>
+<xsl:param name="page.margin.inner">
+ <xsl:choose>
+ <xsl:when test="$double.sided != 0">0.75in</xsl:when>
+ <xsl:otherwise>0.75in</xsl:otherwise>
+ </xsl:choose>
+</xsl:param>
+<xsl:param name="page.margin.outer">
+ <xsl:choose>
+ <xsl:when test="$double.sided != 0">0.5in</xsl:when>
+ <xsl:otherwise>0.5in</xsl:otherwise>
+ </xsl:choose>
+</xsl:param>
+
+<xsl:param name="page.margin.top" select="'0.5in'"/>
+<xsl:param name="page.orientation" select="'portrait'"/>
+<xsl:param name="page.width">
+ <xsl:choose>
+ <xsl:when test="$page.orientation = 'portrait'">
+ <xsl:value-of select="$page.width.portrait"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$page.height.portrait"/>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:param>
+
+<xsl:attribute-set name="monospace.properties">
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="admonition.title.properties">
+ <xsl:attribute name="font-size">14pt</xsl:attribute>
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="hyphenate">false</xsl:attribute>
+ <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="sidebar.properties" use-attribute-sets="formal.object.properties">
+ <xsl:attribute name="border-style">solid</xsl:attribute>
+ <xsl:attribute name="border-width">1pt</xsl:attribute>
+ <xsl:attribute name="border-color">silver</xsl:attribute>
+ <xsl:attribute name="background-color">#ffffee</xsl:attribute>
+ <xsl:attribute name="padding-left">12pt</xsl:attribute>
+ <xsl:attribute name="padding-right">12pt</xsl:attribute>
+ <xsl:attribute name="padding-top">6pt</xsl:attribute>
+ <xsl:attribute name="padding-bottom">6pt</xsl:attribute>
+ <xsl:attribute name="margin-left">0pt</xsl:attribute>
+ <xsl:attribute name="margin-right">12pt</xsl:attribute>
+ <xsl:attribute name="margin-top">6pt</xsl:attribute>
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
+</xsl:attribute-set>
+
+<!-- Only shade programlisting and screen verbatim elements -->
+<xsl:param name="shade.verbatim" select="1"/>
+<xsl:attribute-set name="shade.verbatim.style">
+ <xsl:attribute name="background-color">
+ <xsl:choose>
+ <xsl:when test="self::programlisting|self::screen">#E0E0E0</xsl:when>
+ <xsl:otherwise>inherit</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+</xsl:attribute-set>
+
+<!--
+ Force XSL Stylesheets 1.72 default table breaks to be the same as the current
+ version (1.74) default which (for tables) is keep-together="auto".
+-->
+<xsl:attribute-set name="table.properties">
+ <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
+</xsl:attribute-set>
+
+<!-- Neo4j customizations -->
+
+<xsl:param name="admon.graphics" select="1"></xsl:param>
+<xsl:param name="admon.textlabel" select="1"></xsl:param>
+<xsl:param name="admon.graphics.extension">.svg</xsl:param>
+<xsl:param name="admon.graphics.path">images/icons/admon/</xsl:param>
+
+<xsl:param name="toc.section.depth" select="1"></xsl:param>
+
+<xsl:param name="callout.graphics" select="1"></xsl:param>
+<xsl:param name="callout.graphics.extension">.svg</xsl:param>
+
+<xsl:param name="navig.graphics" select="0"></xsl:param>
+
+<xsl:param name="generate.section.toc.level" select="0"></xsl:param>
+
+<xsl:param name="body.font.family" select="'serif'"/>
+<xsl:param name="body.font.master">12</xsl:param>
+<xsl:param name="body.font.size">
+ <xsl:value-of select="$body.font.master"/><xsl:text>pt</xsl:text>
+</xsl:param>
+
+<xsl:attribute-set name="section.title.level1.properties">
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="24"></xsl:value-of>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+<xsl:attribute-set name="section.title.level2.properties">
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="18"></xsl:value-of>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+<xsl:attribute-set name="section.title.level3.properties">
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="16"></xsl:value-of>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+<xsl:attribute-set name="section.title.level4.properties">
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="14"></xsl:value-of>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+<xsl:attribute-set name="section.title.level5.properties">
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master"></xsl:value-of>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+<xsl:attribute-set name="section.title.level6.properties">
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master"></xsl:value-of>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:template match="row/entry/simpara/literal">
+ <fo:inline hyphenate="true" xsl:use-attribute-sets="monospace.properties">
+ <xsl:call-template name="intersperse-with-zero-spaces">
+ <xsl:with-param name="str" select="text()"/>
+ </xsl:call-template>
+ </fo:inline>
+</xsl:template>
+
+<xsl:attribute-set name="monospace.verbatim.properties" use-attribute-sets="verbatim.properties">
+ <xsl:attribute name="font-size">8pt</xsl:attribute>
+ <xsl:attribute name="line-height">11pt</xsl:attribute>
+ <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
+</xsl:attribute-set>
+
+<!-- color for links -->
+<xsl:attribute-set name="xref.properties">
+ <xsl:attribute name="color">
+ <xsl:choose>
+ <xsl:when test="self::ulink">blue</xsl:when>
+ <xsl:otherwise>inherit</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+</xsl:attribute-set>
+
+<!-- Actual space intercalation: recursive -->
+<xsl:template name="intersperse-with-zero-spaces">
+ <xsl:param name="str"/>
+ <xsl:variable name="spacechars">
+ &#x9;&#xA;&#x2000;&#x2001;&#x2002;&#x2003;&#x2004;&#x2005;&#x2006;&#x2007;&#x2008;&#x2009;&#x200A;&#x200B;
+ </xsl:variable>
+
+ <xsl:if test="string-length($str) &gt; 0">
+ <xsl:variable name="c1"
+ select="substring($str, 1, 1)"/>
+ <xsl:variable name="c2"
+ select="substring($str, 2, 1)"/>
+
+ <xsl:value-of select="$c1"/>
+ <xsl:if test="$c2 != '' and ($c1 = '.' or $c1 = ',') and
+ not(contains($spacechars, $c1) or
+ contains($spacechars, $c2))">
+ <xsl:text>&#x200A;</xsl:text>
+ </xsl:if>
+
+ <xsl:call-template name="intersperse-with-zero-spaces">
+ <xsl:with-param name="str" select="substring($str, 2)"/>
+ </xsl:call-template>
+ </xsl:if>
+</xsl:template>
+
+<xsl:template name="front.cover">
+ <xsl:call-template name="page.sequence">
+ <xsl:with-param name="master-reference">titlepage</xsl:with-param>
+ <xsl:with-param name="content">
+ <fo:block text-align="center" margin-top="5.0cm">
+ <fo:external-graphic src="url(images/neo4j-green.png)" content-width="12cm" content-height="2.94cm" scaling="uniform" />
+ </fo:block>
+ </xsl:with-param>
+ </xsl:call-template>
+</xsl:template>
+
+
+</xsl:stylesheet>
22 src/main/resources/conf/footer.xsl
@@ -0,0 +1,22 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+<xsl:template name="user.footer.content">
+<xsl:text disable-output-escaping="yes">
+<![CDATA[
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-1192232-16']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+]]>
+</xsl:text>
+</xsl:template>
+
+</xsl:stylesheet>
+
65 src/main/resources/conf/head.xsl
@@ -0,0 +1,65 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+<xsl:template name="user.head.content">
+<xsl:text disable-output-escaping="yes">
+<![CDATA[
+
+<link href="css/shCore.css" rel="stylesheet" type="text/css" />
+<link href="css/shCoreEclipse.css" rel="stylesheet" type="text/css" />
+<link href="css/shThemeEclipse.css" rel="stylesheet" type="text/css" />
+
+<style type="text/css">
+span.remark {
+ background: yellow;
+}
+td p {
+ margin: 0.125em 0;
+}
+#disqus_thread {
+ max-width: 40em;
+}
+body #toolbar_item command_help {
+ /* display: none !important; */
+}
+.syntaxhighlighter a,
+.syntaxhighlighter div,
+.syntaxhighlighter code,
+.syntaxhighlighter table,
+.syntaxhighlighter table td,
+.syntaxhighlighter table tr,
+.syntaxhighlighter table tbody,
+.syntaxhighlighter table thead,
+.syntaxhighlighter table caption,
+.syntaxhighlighter textarea {
+ font-size: 14px !important;
+}
+</style>
+
+<!-- Syntax Highlighter -->
+
+<script type="text/javascript" src="js/shCore.js"></script>
+<script type="text/javascript" src="js/shBrushJava.js"></script>
+<script type="text/javascript" src="js/shBrushJScript.js"></script>
+<script type="text/javascript" src="js/shBrushBash.js"></script>
+<script type="text/javascript" src="js/shBrushPlain.js"></script>
+<script type="text/javascript" src="js/shBrushXml.js"></script>
+
+<!-- activate when needed
+<script type="text/javascript" src="js/shBrushPython.js"></script>
+<script type="text/javascript" src="js/shBrushRuby.js"></script>
+<script type="text/javascript" src="js/shBrushCSharp.js"></script>
+<script type="text/javascript" src="js/shBrushGroovy.js"></script>
+-->
+
+<script type="text/javascript">
+ SyntaxHighlighter.defaults['tab-size'] = 4;
+ SyntaxHighlighter.defaults['gutter'] = false;
+ SyntaxHighlighter.defaults['toolbar'] = false;
+ SyntaxHighlighter.all()
+</script>
+]]>
+</xsl:text>
+</xsl:template>
+
+</xsl:stylesheet>
+
27 src/main/resources/conf/html-params.xsl
@@ -0,0 +1,27 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+<xsl:param name="glossary.sort" select="1"></xsl:param>
+
+<xsl:param name="generate.section.toc.level" select="1"></xsl:param>
+
+<xsl:param name="admon.graphics" select="1"></xsl:param>
+<xsl:param name="admon.graphics.path">images/icons/admon/</xsl:param>
+<xsl:param name="admon.graphics.extension">.png</xsl:param>
+
+<xsl:param name="navig.graphics.path">images/icons/</xsl:param>
+<xsl:param name="navig.graphics" select="0"></xsl:param>
+
+<xsl:param name="callout.graphics" select="0"/>
+<xsl:param name="callout.unicode" select="1"/>
+<xsl:param name="callout.unicode.number.limit" select="10"/>
+
+<xsl:param name="generate.legalnotice.link" select="1"/>
+<xsl:param name="legalnotice.filename">legalnotice.html</xsl:param>
+
+<xsl:param name="generate.revhistory.link" select="1"/>
+
+<xsl:param name="use.id.as.filename" select="1"></xsl:param>
+
+</xsl:stylesheet>
+
15 src/main/resources/conf/offline-footer.xsl
@@ -0,0 +1,15 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+<xsl:template name="user.footer.content">
+ <HR/>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:apply-templates select="/book/bookinfo/legalnotice[1]" mode="chunk-filename"/>
+ </xsl:attribute>
+
+ <xsl:apply-templates select="/book/bookinfo/copyright[1]" mode="titlepage.mode"/>
+ </a>
+</xsl:template>
+
+</xsl:stylesheet>
+
10 src/main/resources/conf/syntaxhighlight.xsl
@@ -0,0 +1,10 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+<xsl:template match="*/programlisting" mode="class.value">
+ <xsl:if test="@language">
+ <xsl:value-of select="concat('programlisting brush: ', @language)"/>
+ </xsl:if>
+</xsl:template>
+
+</xsl:stylesheet>
+
72 src/main/resources/conf/text.xsl
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!--
+ Used by AsciiDoc a2x(1) for w3m(1) based text generation.
+
+ NOTE: The URL reference to the current DocBook XSL stylesheets is
+ rewritten to point to the copy on the local disk drive by the XML catalog
+ rewrite directives so it doesn't need to go out to the Internet for the
+ stylesheets. This means you don't need to edit the <xsl:import> elements on
+ a machine by machine basis.
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+ <xsl:import
+ href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
+
+ <!-- parameters for optimal text output -->
+ <xsl:param name="callout.graphics" select="0"/>
+ <xsl:param name="callout.unicode" select="0"/>
+ <xsl:param name="section.autolabel" select="1"/>
+ <xsl:param name="section.label.includes.component.label" select="1"/>
+ <xsl:param name="generate.toc">
+ appendix title
+ article/appendix nop
+ article toc,title
+ book toc,title,figure,table,example,equation
+ chapter title
+ part toc,title
+ preface toc,title
+ qandadiv toc
+ qandaset toc
+ reference toc,title
+ section toc
+ set toc,title
+ </xsl:param>
+
+ <xsl:template match="book/bookinfo/title | article/articleinfo/title" mode="titlepage.mode">
+ <hr />
+ <xsl:apply-imports/>
+ <hr />
+ </xsl:template>
+
+ <xsl:template match="book/*/title | article/*/title" mode="titlepage.mode">
+ <br /><hr />
+ <xsl:apply-imports/>
+ <hr />
+ </xsl:template>
+
+ <xsl:template match="book/chapter/*/title | article/section/*/title" mode="titlepage.mode">
+ <br />
+ <xsl:apply-imports/>
+ <hr width="100" align="left" />
+ </xsl:template>
+
+ <xsl:template match="ulink">
+ <xsl:apply-templates/>
+ <xsl:text> &lt;</xsl:text>
+ <xsl:value-of select="@url"></xsl:value-of>
+ <xsl:text>&gt;</xsl:text>
+ </xsl:template>
+
+ <!-- Neo4j customizations -->
+
+ <!-- Remove revision history -->
+ <xsl:template match="revhistory" mode="titlepage.mode"/>
+
+ <!-- Remove license, only use title
+ (the generated html file will be removed by the build) -->
+ <xsl:param name="generate.legalnotice.link" select="1"></xsl:param>
+ <xsl:param name="legalnotice.filename">license.html</xsl:param>
+
+</xsl:stylesheet>
+
4 src/main/resources/conf/xhtml.conf
@@ -0,0 +1,4 @@
+ASCIIDOC_OPTS = '--attribute docinfo1 --attribute=icons --doctype book'
+FOP_OPTS = ''
+XSLTPROC_OPTS = '--xinclude'
+
40 src/main/resources/conf/xhtml.xsl
@@ -0,0 +1,40 @@
+<!--
+ Generates single XHTML document from DocBook XML source using DocBook XSL
+ stylesheets.
+
+ NOTE: The URL reference to the current DocBook XSL stylesheets is
+ rewritten to point to the copy on the local disk drive by the XML catalog
+ rewrite directives so it doesn't need to go out to the Internet for the
+ stylesheets. This means you don't need to edit the <xsl:import> elements on
+ a machine by machine basis.
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
+<xsl:import href="common.xsl"/>
+
+<xsl:import href="html-params.xsl"/>
+
+<xsl:import href="head.xsl"/>
+
+<xsl:import href="footer.xsl"/>
+
+<xsl:import href="syntaxhighlight.xsl"/>
+
+<!-- Add links back to top -->
+
+<xsl:template name="section.titlepage.before.recto">
+ <xsl:variable name="top-anchor">
+ <xsl:call-template name="object.id">
+ <xsl:with-param name="object" select="/*[1]"/>
+ </xsl:call-template>
+ </xsl:variable>
+
+ <p class="returntotop">
+ <a href="#{$top-anchor}">
+ <xsl:text>Return to top</xsl:text>
+ </a>
+ </p>
+</xsl:template>
+
+</xsl:stylesheet>
+
226 src/main/resources/css/shCore.css
@@ -0,0 +1,226 @@
+/**
+ * SyntaxHighlighter
+ * http://alexgorbatchev.com/SyntaxHighlighter
+ *
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
+ *
+ * @version
+ * 3.0.83 (July 02 2010)
+ *
+ * @copyright
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
+ *
+ * @license
+ * Dual licensed under the MIT and GPL licenses.
+ */
+.syntaxhighlighter a,
+.syntaxhighlighter div,
+.syntaxhighlighter code,
+.syntaxhighlighter table,
+.syntaxhighlighter table td,
+.syntaxhighlighter table tr,
+.syntaxhighlighter table tbody,
+.syntaxhighlighter table thead,
+.syntaxhighlighter table caption,
+.syntaxhighlighter textarea {
+ -moz-border-radius: 0 0 0 0 !important;
+ -webkit-border-radius: 0 0 0 0 !important;
+ background: none !important;
+ border: 0 !important;
+ bottom: auto !important;
+ float: none !important;
+ height: auto !important;
+ left: auto !important;
+ line-height: 1.1em !important;
+ margin: 0 !important;
+ outline: 0 !important;
+ overflow: visible !important;
+ padding: 0 !important;
+ position: static !important;
+ right: auto !important;
+ text-align: left !important;
+ top: auto !important;
+ vertical-align: baseline !important;
+ width: auto !important;
+ box-sizing: content-box !important;
+ font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
+ font-weight: normal !important;
+ font-style: normal !important;
+ font-size: 1em !important;
+ min-height: inherit !important;
+ min-height: auto !important;
+}
+
+.syntaxhighlighter {
+ width: 100% !important;
+ margin: 1em 0 1em 0 !important;
+ position: relative !important;
+ overflow: auto !important;
+ font-size: 1em !important;
+}
+.syntaxhighlighter.source {
+ overflow: hidden !important;
+}
+.syntaxhighlighter .bold {
+ font-weight: bold !important;
+}
+.syntaxhighlighter .italic {
+ font-style: italic !important;
+}
+.syntaxhighlighter .line {
+ white-space: pre !important;
+}
+.syntaxhighlighter table {
+ width: 100% !important;
+}
+.syntaxhighlighter table caption {
+ text-align: left !important;
+ padding: .5em 0 0.5em 1em !important;
+}
+.syntaxhighlighter table td.code {
+ width: 100% !important;
+}
+.syntaxhighlighter table td.code .container {
+ position: relative !important;
+}
+.syntaxhighlighter table td.code .container textarea {
+ box-sizing: border-box !important;
+ position: absolute !important;
+ left: 0 !important;
+ top: 0 !important;
+ width: 100% !important;
+ height: 100% !important;
+ border: none !important;
+ background: white !important;
+ padding-left: 1em !important;
+ overflow: hidden !important;
+ white-space: pre !important;
+}
+.syntaxhighlighter table td.gutter .line {
+ text-align: right !important;
+ padding: 0 0.5em 0 1em !important;
+}
+.syntaxhighlighter table td.code .line {
+ padding: 0 1em !important;
+}
+.syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
+ padding-left: 0em !important;
+}
+.syntaxhighlighter.show {
+ display: block !important;
+}
+.syntaxhighlighter.collapsed table {
+ display: none !important;
+}
+.syntaxhighlighter.collapsed .toolbar {
+ padding: 0.1em 0.8em 0em 0.8em !important;
+ font-size: 1em !important;
+ position: static !important;
+ width: auto !important;
+ height: auto !important;
+}
+.syntaxhighlighter.collapsed .toolbar span {
+ display: inline !important;
+ margin-right: 1em !important;
+}
+.syntaxhighlighter.collapsed .toolbar span a {
+ padding: 0 !important;
+ display: none !important;
+}
+.syntaxhighlighter.collapsed .toolbar span a.expandSource {
+ display: inline !important;
+}
+.syntaxhighlighter .toolbar {
+ position: absolute !important;
+ right: 1px !important;
+ top: 1px !important;
+ width: 11px !important;
+ height: 11px !important;
+ font-size: 10px !important;
+ z-index: 10 !important;
+}
+.syntaxhighlighter .toolbar span.title {
+ display: inline !important;
+}
+.syntaxhighlighter .toolbar a {
+ display: block !important;
+ text-align: center !important;
+ text-decoration: none !important;
+ padding-top: 1px !important;
+}
+.syntaxhighlighter .toolbar a.expandSource {
+ display: none !important;
+}
+.syntaxhighlighter.ie {
+ font-size: .9em !important;
+ padding: 1px 0 1px 0 !important;
+}
+.syntaxhighlighter.ie .toolbar {
+ line-height: 8px !important;
+}
+.syntaxhighlighter.ie .toolbar a {
+ padding-top: 0px !important;
+}
+.syntaxhighlighter.printing .line.alt1 .content,
+.syntaxhighlighter.printing .line.alt2 .content,
+.syntaxhighlighter.printing .line.highlighted .number,
+.syntaxhighlighter.printing .line.highlighted.alt1 .content,
+.syntaxhighlighter.printing .line.highlighted.alt2 .content {
+ background: none !important;
+}
+.syntaxhighlighter.printing .line .number {
+ color: #bbbbbb !important;
+}
+.syntaxhighlighter.printing .line .content {
+ color: black !important;
+}
+.syntaxhighlighter.printing .toolbar {
+ display: none !important;
+}
+.syntaxhighlighter.printing a {
+ text-decoration: none !important;
+}
+.syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
+ color: black !important;
+}
+.syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
+ color: #008200 !important;
+}
+.syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
+ color: blue !important;
+}
+.syntaxhighlighter.printing .keyword {
+ color: #006699 !important;
+ font-weight: bold !important;
+}
+.syntaxhighlighter.printing .preprocessor {
+ color: gray !important;
+}
+.syntaxhighlighter.printing .variable {
+ color: #aa7700 !important;
+}
+.syntaxhighlighter.printing .value {
+ color: #009900 !important;
+}
+.syntaxhighlighter.printing .functions {
+ color: #ff1493 !important;
+}
+.syntaxhighlighter.printing .constants {
+ color: #0066cc !important;
+}
+.syntaxhighlighter.printing .script {
+ font-weight: bold !important;
+}
+.syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
+ color: gray !important;
+}
+.syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
+ color: #ff1493 !important;
+}
+.syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
+ color: red !important;
+}
+.syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
+ color: black !important;
+}
328 src/main/resources/css/shCoreDefault.css
@@ -0,0 +1,328 @@
+/**
+ * SyntaxHighlighter
+ * http://alexgorbatchev.com/SyntaxHighlighter
+ *
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
+ *
+ * @version
+ * 3.0.83 (July 02 2010)
+ *
+ * @copyright
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
+ *
+ * @license
+ * Dual licensed under the MIT and GPL licenses.
+ */
+.syntaxhighlighter a,
+.syntaxhighlighter div,
+.syntaxhighlighter code,
+.syntaxhighlighter table,
+.syntaxhighlighter table td,
+.syntaxhighlighter table tr,
+.syntaxhighlighter table tbody,
+.syntaxhighlighter table thead,
+.syntaxhighlighter table caption,
+.syntaxhighlighter textarea {
+ -moz-border-radius: 0 0 0 0 !important;
+ -webkit-border-radius: 0 0 0 0 !important;
+ background: none !important;
+ border: 0 !important;
+ bottom: auto !important;
+ float: none !important;
+ height: auto !important;
+ left: auto !important;
+ line-height: 1.1em !important;
+ margin: 0 !important;
+ outline: 0 !important;
+ overflow: visible !important;
+ padding: 0 !important;
+ position: static !important;
+ right: auto !important;
+ text-align: left !important;
+ top: auto !important;
+ vertical-align: baseline !important;
+ width: auto !important;
+ box-sizing: content-box !important;
+ font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
+ font-weight: normal !important;
+ font-style: normal !important;
+ font-size: 1em !important;
+ min-height: inherit !important;
+ min-height: auto !important;
+}
+
+.syntaxhighlighter {
+ width: 100% !important;
+ margin: 1em 0 1em 0 !important;
+ position: relative !important;
+ overflow: auto !important;
+ font-size: 1em !important;
+}
+.syntaxhighlighter.source {
+ overflow: hidden !important;
+}
+.syntaxhighlighter .bold {
+ font-weight: bold !important;
+}
+.syntaxhighlighter .italic {
+ font-style: italic !important;
+}
+.syntaxhighlighter .line {
+ white-space: pre !important;
+}
+.syntaxhighlighter table {
+ width: 100% !important;
+}
+.syntaxhighlighter table caption {
+ text-align: left !important;
+ padding: .5em 0 0.5em 1em !important;
+}
+.syntaxhighlighter table td.code {
+ width: 100% !important;
+}
+.syntaxhighlighter table td.code .container {
+ position: relative !important;
+}
+.syntaxhighlighter table td.code .container textarea {
+ box-sizing: border-box !important;
+ position: absolute !important;
+ left: 0 !important;
+ top: 0 !important;
+ width: 100% !important;
+ height: 100% !important;
+ border: none !important;
+ background: white !important;
+ padding-left: 1em !important;
+ overflow: hidden !important;
+ white-space: pre !important;
+}
+.syntaxhighlighter table td.gutter .line {
+ text-align: right !important;
+ padding: 0 0.5em 0 1em !important;
+}
+.syntaxhighlighter table td.code .line {
+ padding: 0 1em !important;
+}
+.syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
+ padding-left: 0em !important;
+}
+.syntaxhighlighter.show {
+ display: block !important;
+}
+.syntaxhighlighter.collapsed table {
+ display: none !important;
+}
+.syntaxhighlighter.collapsed .toolbar {
+ padding: 0.1em 0.8em 0em 0.8em !important;
+ font-size: 1em !important;
+ position: static !important;
+ width: auto !important;
+ height: auto !important;
+}
+.syntaxhighlighter.collapsed .toolbar span {
+ display: inline !important;
+ margin-right: 1em !important;
+}
+.syntaxhighlighter.collapsed .toolbar span a {
+ padding: 0 !important;
+ display: none !important;
+}
+.syntaxhighlighter.collapsed .toolbar span a.expandSource {
+ display: inline !important;
+}
+.syntaxhighlighter .toolbar {
+ position: absolute !important;
+ right: 1px !important;
+ top: 1px !important;
+ width: 11px !important;
+ height: 11px !important;
+ font-size: 10px !important;
+ z-index: 10 !important;
+}
+.syntaxhighlighter .toolbar span.title {
+ display: inline !important;
+}
+.syntaxhighlighter .toolbar a {
+ display: block !important;
+ text-align: center !important;
+ text-decoration: none !important;
+ padding-top: 1px !important;
+}
+.syntaxhighlighter .toolbar a.expandSource {
+ display: none !important;
+}
+.syntaxhighlighter.ie {
+ font-size: .9em !important;
+ padding: 1px 0 1px 0 !important;
+}
+.syntaxhighlighter.ie .toolbar {
+ line-height: 8px !important;
+}
+.syntaxhighlighter.ie .toolbar a {
+ padding-top: 0px !important;
+}
+.syntaxhighlighter.printing .line.alt1 .content,
+.syntaxhighlighter.printing .line.alt2 .content,
+.syntaxhighlighter.printing .line.highlighted .number,
+.syntaxhighlighter.printing .line.highlighted.alt1 .content,
+.syntaxhighlighter.printing .line.highlighted.alt2 .content {
+ background: none !important;
+}
+.syntaxhighlighter.printing .line .number {
+ color: #bbbbbb !important;
+}
+.syntaxhighlighter.printing .line .content {
+ color: black !important;
+}
+.syntaxhighlighter.printing .toolbar {
+ display: none !important;
+}
+.syntaxhighlighter.printing a {
+ text-decoration: none !important;
+}
+.syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
+ color: black !important;
+}
+.syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
+ color: #008200 !important;
+}
+.syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
+ color: blue !important;
+}
+.syntaxhighlighter.printing .keyword {
+ color: #006699 !important;
+ font-weight: bold !important;
+}
+.syntaxhighlighter.printing .preprocessor {
+ color: gray !important;
+}
+.syntaxhighlighter.printing .variable {