Permalink
Browse files

Initial version.

  • Loading branch information...
nawroth committed Apr 4, 2011
0 parents commit e8c866dcd8d6d163790bf620976cbd54dbca6c06
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
@@ -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
+
Oops, something went wrong.

0 comments on commit e8c866d

Please sign in to comment.