You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge commit '18ed6790e53e124d2b562bf3b7a7c1714b538705' into docs/editorial-review-1
* commit '18ed6790e53e124d2b562bf3b7a7c1714b538705':
Move PegdownMarkdownFormatter to docs class
Fix setup.py dependency, fix rf_rasterize signature regression in unit test
reverse sort
Deterministic pymd file order
Update docs readme
Fix broken ref, attempt trigger circle build for docs/* branches
Copy file name to clipboardExpand all lines: docs/README.md
+24-6Lines changed: 24 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,21 @@ The build constructs in `<src-root>/docs` are (due to legacy reasons) the top-le
25
25
}
26
26
```
27
27
28
+
## Building the docs
29
+
30
+
To build the static site locally:
31
+
32
+
sbt makeSite
33
+
34
+
The site will be at `<src-root>/docs/target/site/index.html`.
35
+
36
+
37
+
To start an interactive server running the docs:
38
+
39
+
sbt previewSite
40
+
41
+
The sbt server log a message with an address to view the site.
42
+
28
43
## Content Development Process
29
44
30
45
Start with one of the existing files in `<src-root>/pyrasterframes/src/main/python/docs` as a template. [`local-algebra.pymd`](../pyrasterframes/src/main/python/docs/local-algebra.pymd) is a good example. If the content will have code blocks you want evaluated an results injected into the output, use the file extension `.pymd`. If the content doesn't use evaluatable code blocks, use `.md`.
@@ -44,9 +59,9 @@ To set up an environment whereby you can easily test/evaluate your code blocks d
44
59
[info] Set current project to RasterFrames (in build file:<src-root>/)
45
60
sbt:RasterFrames>
46
61
```
47
-
2. The first time you check out the code, or whenever RasterFrames code is updated, you need to build the project artifacts so they are available for Pweave.
62
+
2. The first time you check out the code, or whenever RasterFrames code is updated, you need to build the project artifacts so they are available for Pweave. Some docs also refer to test resources, so the easiest way to do it is to run the unit tests.
48
63
```
49
-
sbt:RasterFrames> pyrasterframes/package
64
+
sbt:RasterFrames> pyrasterframes/test
50
65
[info] Compiling 4 Scala sources to <src-root>/core/target/scala-2.11/classes ...
51
66
... lots of noise ...
52
67
[info] PyRasterFrames assembly written to '<src-root>/pyrasterframes/target/python/deps/jars/pyrasterframes-assembly-0.8.0-SNAPSHOT.jar'
@@ -66,7 +81,7 @@ To set up an environment whereby you can easily test/evaluate your code blocks d
66
81
sbt:RasterFrames> pyrasterframes/doc
67
82
```
68
83
There's a command alias for this last step: `pyDocs`.
69
-
4. To evaluate a single `.pymd` file, you pass the `-s` option and the filename relative to the `python` directory:
84
+
4. To evaluate a single `.pymd` file, you pass the `-s` option and the filename relative to the `pyraterframes/src/main/python` directory. You can also specify the output [format](http://mpastell.com/pweave/formats.html) with the `-f` argument.
[info] Synchronizing 44 files to '<src-root>/pyrasterframes/target/python'
@@ -82,7 +97,7 @@ To set up an environment whereby you can easily test/evaluate your code blocks d
82
97
Weaved docs/getting-started.pymd to docs/getting-started.md
83
98
```
84
99
5. The _output_ Markdown files are written to `<src-root>/pyrasterframes/target/python/docs`. _Note_: don't edit any files in the `pyrasterframes/target` directory... they will get overwritten each time `sbt` runs a command.
85
-
6. During content development it's sometimes helpful to see the output rendered as basic HTML. To do this, add the `-d html` option to the pweave command:
100
+
6. During content development it's sometimes helpful to see the output rendered as basic HTML. To do this, add the `-f html` option to the pweave command:
86
101
```
87
102
sbt:RasterFrames> pyrasterframes/pySetup pweave -f html -s docs/getting-started.pymd
88
103
[info] Synchronizing 54 files to '<src-roog>/pyrasterframes/target/python'
@@ -103,8 +118,11 @@ To set up an environment whereby you can easily test/evaluate your code blocks d
103
118
104
119
## Notebooks
105
120
106
-
The `rf-notebooks` sub-project creates a Docker image with Jupyter Notebooks pre-configured with RasterFrames. Any `.pymd` file under `.../python/docs/` is converted to an evaluated Jupyter Notebook and included as a part of the build (an additional bonus of the Pweave tool).
121
+
The `rf-notebooks` sub-project creates a Docker image with Jupyter Notebooks pre-configured with RasterFrames. Any `.pymd` file under `.../python/docs/` is converted to an evaluated Jupyter Notebook and included as a part of the build.
107
122
108
123
## Submission Process
109
124
110
-
Submit new and updated documentation as a PR against locationtech/rasterframes. Make sure you've signed the Eclipse Foundation ECA and you ["Signed-off-by:"](https://stackoverflow.com/questions/1962094/what-is-the-sign-off-feature-in-git-for) each commit in the PR. The "Signed-off-by" address needs to be the exact same one as registered with the [Eclipse Foundation](https://wiki.eclipse.org/Development_Resources/Contributing_via_Git).
125
+
Submit new and updated documentation as a PR against locationtech/rasterframes. Make sure you've signed the Eclipse Foundation ECA and you ["Signed-off-by:"](https://stackoverflow.com/questions/1962094/what-is-the-sign-off-feature-in-git-for) each commit in the PR. The "Signed-off-by" email address needs to be the exact same one as registered with the [Eclipse Foundation](https://wiki.eclipse.org/Development_Resources/Contributing_via_Git).
126
+
127
+
If you are using circle CI, the circle configuration is set up to build the docs with `sbt makeSite` for branch names matching `feature/.*docs.*` or `docs/.*`
0 commit comments