Skip to content

Commit

Permalink
Renamed to [console], added a title in the example.
Browse files Browse the repository at this point in the history
  • Loading branch information
nawroth committed Apr 10, 2012
1 parent 33cb188 commit 7ca0e9f
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -167,7 +167,7 @@ docbook-html: manpages copyimages
#
#
mkdir -p "$(BUILDDIR)"
"$(ASCIIDOC)" $(ASCIIDOC_FLAGS) --backend docbook --attribute docinfo1 --attribute cypherconsole=1 --doctype book --conf-file="$(CONFDIR)/asciidoc.conf" --conf-file="$(CONFDIR)/docbook45.conf" --conf-file="$(CONFDIR)/linkedimages.conf" --out-file "$(DOCBOOKFILEHTML)" "$(SRCFILE)" 2>&1 | "$(SCRIPTDIR)/outputcheck-includefiles.sh"
"$(ASCIIDOC)" $(ASCIIDOC_FLAGS) --backend docbook --attribute docinfo1 --attribute console=1 --doctype book --conf-file="$(CONFDIR)/asciidoc.conf" --conf-file="$(CONFDIR)/docbook45.conf" --conf-file="$(CONFDIR)/linkedimages.conf" --out-file "$(DOCBOOKFILEHTML)" "$(SRCFILE)" 2>&1 | "$(SCRIPTDIR)/outputcheck-includefiles.sh"
xmllint --nonet --noout --xinclude --postvalid "$(DOCBOOKFILEHTML)"

pdf: docbook-shortinfo copyimages
Expand Down
12 changes: 12 additions & 0 deletions src/bin/resources/console/console.conf
@@ -0,0 +1,12 @@
#
# AsciiDoc console filter configuration file.
#

[console-filter-style]
console-style=template="console-block",filter='console.py "{console}" {title?"{title}"}'

[blockdef-listing]
template::[console-filter-style]

[console-block]
template::[openblock]
File renamed without changes.
12 changes: 0 additions & 12 deletions src/bin/resources/cypherconsole/cypherconsole.conf

This file was deleted.

9 changes: 6 additions & 3 deletions src/main/resources/community/docs.txt
Expand Up @@ -466,13 +466,15 @@ include::{importdir}/neo4j-examples-docs-jar/dev/examples/hello-world-sample-cha

== Integrated Live Console ==

A live console can be added and will show up in the online HTML version.
An interactive console can be added and will show up in the online HTML version.
An optional title can be added, which will be used for the text of the button.

This is how to do it, using Geoff to define the data, with an empty line to separate it from the query:

[source]
----
[cypherconsole]
.Interactive Matrix Example
[console]
----
(A) {"name" : "Neo"};
(B) {"name" : "Trinity"};
Expand All @@ -485,7 +487,8 @@ This is how to do it, using Geoff to define the data, with an empty line to sepa

And this is the result:

[cypherconsole]
.Interactive Matrix Example
[console]
----
(A) {"name" : "Neo"};
(B) {"name" : "Trinity"};
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/neo4j-manual.txt
Expand Up @@ -7,7 +7,7 @@ The Neo4j Manual v{revnumber}

:lucene-version: 3_5_0

:cypherconsole: 0
:console: 0

include::preface/preface.txt[]

Expand Down

0 comments on commit 7ca0e9f

Please sign in to comment.