-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate docs to be generated via antora (#421)
Migrate docs to be generated via antora, so we can include them in the neo4j labs docs. * use generated examples from code * add simple server to serve antora docs for local testing
- Loading branch information
Showing
108 changed files
with
3,938 additions
and
1,094 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,9 @@ jobs: | |
- name: Update README.md | ||
run: sed -i "s|<version>.*</version>|<version>${{ env.VERSION }}</version>|g" README.md | ||
|
||
- name: Update Docs | ||
run: 'sed -i "s|docs-version: .*|docs-version: ${{ env.VERSION }}|g" docs/docs/antora.yml' | ||
|
||
- name: Commit release POM and Tag | ||
run: | | ||
git config --local user.email "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,3 @@ target | |
/bin | ||
LineString.* | ||
results.* | ||
docs/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/build | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
site: | ||
title: Neo4j-Spatial User Guide | ||
url: /neo4j-spatial-docs | ||
content: | ||
sources: | ||
- url: ../ | ||
start_path: docs/docs | ||
branches: HEAD | ||
ui: | ||
bundle: | ||
url: https://static-content.neo4j.com/build/ui-bundle.zip | ||
snapshot: true | ||
asciidoc: | ||
attributes: | ||
page-theme: docs | ||
page-cdn: /_/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: neo4j-spatial | ||
version: 5.0 | ||
title: Neo4j-Spatial User Guide | ||
nav: | ||
- modules/ROOT/nav.adoc | ||
|
||
asciidoc: | ||
attributes: | ||
docs-version: 5.20 | ||
copyright: Neo4j Inc. | ||
page-product: Neo4j Spatial | ||
page-type: Neo4j Spatial Manual | ||
page-canonical-root: /labs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../../src/test/java/org/neo4j/gis/spatial/pipes/GeoPipesDocTest.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../../src/test/java/org/neo4j/gis/spatial/TestsForDocs.java |
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+171 KB
docs/docs/modules/ROOT/images/Geoserver-13-layers-preview-with-styles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+2.05 KB
...enerated/step1_break_up_all_geometries_into_points_and_make_density_islands.png
Oops, something went wrong.
Binary file added
BIN
+3.05 KB
...enerated/step2_break_up_all_geometries_into_points_and_make_density_islands.png
Oops, something went wrong.
Binary file added
BIN
+2.52 KB
...enerated/step3_break_up_all_geometries_into_points_and_make_density_islands.png
Oops, something went wrong.
Binary file added
BIN
+2.64 KB
...enerated/step4_break_up_all_geometries_into_points_and_make_density_islands.png
Oops, something went wrong.
Binary file added
BIN
+6.21 KB
...enerated/step5_break_up_all_geometries_into_points_and_make_density_islands.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* xref:overview/introduction.adoc[] | ||
* xref::dev/index.adoc[] | ||
** Examples | ||
*** xref:geo-pipes/index.adoc[] | ||
* xref:appendix/index.adoc[] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
src/docs/dev/udig.adoc → ...ocs/modules/ROOT/pages/appendix/udig.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/docs/dev/index.adoc → docs/docs/modules/ROOT/pages/dev/index.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
:toclevels: 1 | ||
= Development | ||
:leveloffset: 1 | ||
|
||
include::indexing.adoc[] | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[[spatial-layers]] | ||
= Layers and GeometryEncoders | ||
|
||
The primary type that defines a collection of geometries is the `Layer`. | ||
A layer contains an index for querying. | ||
In addition, a `Layer` can be an `EditableLayer` if it is possible to add and modify geometries in the layer. | ||
The next most important interface is the GeometryEncoder. | ||
|
||
The `DefaultLayer` is the standard layer, making use of the `WKBGeometryEncoder` for storing all geometry types as `byte[]` properties of one node per geometry instance. | ||
|
||
The `OSMLayer` is a special layer supporting Open Street Map and storing the OSM model as a single fully connected graph. | ||
The set of `Geometries` provided by this layer includes `Points`, `LineStrings` and `Polygons`, and as such cannot be exported to Shapefile format, since that format only allows a single `Geometry` per layer. | ||
However, `OMSLayer` extends `DynamicLayer`, which allow it to provide any number of sub-layers, each with a specific geometry type and in addition based on an OSM tag filter. | ||
For example, you can have a layer providing all cycle paths as `LineStrings`, or a layer providing all lakes as `Polygons`. | ||
Underneath these are all still backed by the same fully connected graph, but exposed dynamically as apparently separate geometry layers. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
...docs/modules/ROOT/pages/geo-pipes/examples/generated/affine-transformation.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// DO NOT MODIFY, THIS FILE IS AUTO GENERATED! | ||
[[examples-affine-transformation]] | ||
== Affine Transformation | ||
|
||
This pipe applies an affine transformation to every geometry. | ||
|
||
Example: | ||
|
||
[source,java,indent=0] | ||
---- | ||
include::example$GeoPipesDocTest.java[tags=s_affine_transformation] | ||
---- | ||
|
||
Output: | ||
|
||
image::generated/affine_transformation.png[] | ||
|
||
|
18 changes: 18 additions & 0 deletions
18
docs/docs/modules/ROOT/pages/geo-pipes/examples/generated/boundary.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// DO NOT MODIFY, THIS FILE IS AUTO GENERATED! | ||
[[examples-boundary]] | ||
== Boundary | ||
|
||
The boundary pipe calculates boundary of every geometry in the pipeline. | ||
|
||
Example: | ||
|
||
[source,java,indent=0] | ||
---- | ||
include::example$GeoPipesDocTest.java[tags=s_boundary] | ||
---- | ||
|
||
Output: | ||
|
||
image::generated/boundary.png[] | ||
|
||
|
34 changes: 34 additions & 0 deletions
34
...les/generated/break-up-all-geometries-into-points-and-make-density-islands.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// DO NOT MODIFY, THIS FILE IS AUTO GENERATED! | ||
[[examples-break-up-all-geometries-into-points-and-make-density-islands]] | ||
== Break up all geometries into points and make density islands | ||
|
||
This example demonstrates the some pipes chained together to make a full geoprocessing pipeline. | ||
|
||
Example: | ||
|
||
[source,java,indent=0] | ||
---- | ||
include::example$GeoPipesDocTest.java[tags=s_break_up_all_geometries_into_points_and_make_density_islands] | ||
---- | ||
|
||
Step 1 - startOsm: | ||
|
||
image::generated/step1_break_up_all_geometries_into_points_and_make_density_islands.png[] | ||
|
||
Step 2 - extractOsmPoints: | ||
|
||
image::generated/step2_break_up_all_geometries_into_points_and_make_density_islands.png[] | ||
|
||
Step 3 - groupByDensityIslands: | ||
|
||
image::generated/step3_break_up_all_geometries_into_points_and_make_density_islands.png[] | ||
|
||
Step 4 - toConvexHull: | ||
|
||
image::generated/step4_break_up_all_geometries_into_points_and_make_density_islands.png[] | ||
|
||
Step 5- toBuffer: | ||
|
||
image::generated/step5_break_up_all_geometries_into_points_and_make_density_islands.png[] | ||
|
||
|
18 changes: 18 additions & 0 deletions
18
docs/docs/modules/ROOT/pages/geo-pipes/examples/generated/buffer.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// DO NOT MODIFY, THIS FILE IS AUTO GENERATED! | ||
[[examples-buffer]] | ||
== Buffer | ||
|
||
This pipe applies a buffer to geometries. | ||
|
||
Example: | ||
|
||
[source,java,indent=0] | ||
---- | ||
include::example$GeoPipesDocTest.java[tags=s_buffer] | ||
---- | ||
|
||
Output: | ||
|
||
image::generated/buffer.png[] | ||
|
||
|
18 changes: 18 additions & 0 deletions
18
docs/docs/modules/ROOT/pages/geo-pipes/examples/generated/centroid.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// DO NOT MODIFY, THIS FILE IS AUTO GENERATED! | ||
[[examples-centroid]] | ||
== Centroid | ||
|
||
This pipe calculates geometry centroid. | ||
|
||
Example: | ||
|
||
[source,java,indent=0] | ||
---- | ||
include::example$GeoPipesDocTest.java[tags=s_centroid] | ||
---- | ||
|
||
Output: | ||
|
||
image::generated/centroid.png[] | ||
|
||
|
18 changes: 18 additions & 0 deletions
18
docs/docs/modules/ROOT/pages/geo-pipes/examples/generated/convex-hull.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// DO NOT MODIFY, THIS FILE IS AUTO GENERATED! | ||
[[examples-convex-hull]] | ||
== Convex Hull | ||
|
||
This pipe calculates geometry convex hull. | ||
|
||
Example: | ||
|
||
[source,java,indent=0] | ||
---- | ||
include::example$GeoPipesDocTest.java[tags=s_convex_hull] | ||
---- | ||
|
||
Output: | ||
|
||
image::generated/convex_hull.png[] | ||
|
||
|
19 changes: 19 additions & 0 deletions
19
docs/docs/modules/ROOT/pages/geo-pipes/examples/generated/densify.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// DO NOT MODIFY, THIS FILE IS AUTO GENERATED! | ||
[[examples-densify]] | ||
== Densify | ||
|
||
This pipe inserts extra vertices along the line segments in the geometry. | ||
The densified geometry contains no line segment which is longer than the given distance tolerance. | ||
|
||
Example: | ||
|
||
[source,java,indent=0] | ||
---- | ||
include::example$GeoPipesDocTest.java[tags=s_densify] | ||
---- | ||
|
||
Output: | ||
|
||
image::generated/densify.png[] | ||
|
||
|
Oops, something went wrong.