Skip to content

Commit 45d87dd

Browse files
committed
fix docs
1 parent 4bf0a40 commit 45d87dd

File tree

3 files changed

+25
-65
lines changed

3 files changed

+25
-65
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Overture to ArcGIS
22

3+
<!--start-->
34
Utility for easily getting data from Overture into ArcGIS Pro.
45

56
## Getting Started
@@ -14,10 +15,19 @@ Utility for easily getting data from Overture into ArcGIS Pro.
1415

1516
3 - Try it out!
1617

18+
There is a toolbox file for use within ArcGIS Pro at `./arcgis/overture_to_arcgis.pyt`. Use the `Make Overture Feature Class` tool to create a feature class from Overture data.
19+
20+
You can also use this utility directly from Python. Here is an example of getting a spatially enabled dataframe for places within a given extent.
21+
1722
``` python
1823
from arcgis_overture import get_spatially_enabled_dataframe
1924

2025
extent = (-119.911,48.3852,-119.8784,48.4028)
2126

2227
df = get_spatially_enabled_dataframe('places', extent)
23-
```
28+
```
29+
30+
!!! note
31+
All extents must be in the format `(xmin, ymin, xmax, ymax)` and use WGS84 decimal degrees coordinates.
32+
33+
<!--end-->

docsrc/mkdocs.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,19 @@ plugins:
7070
- mkdocs-jupyter:
7171
include_source: True
7272

73+
# extension to include markdown files within other markdown files
74+
- include-markdown:
75+
encoding: ascii
76+
preserve_includer_indent: false
77+
dedent: false
78+
trailing_newlines: true
79+
comments: true
80+
rewrite_relative_urls: true
81+
heading_offset: 0
82+
start: <!--start-->
83+
end: <!--end-->
84+
recursive: true
85+
7386
# extension handling pulling docstrings from Python package
7487
- mkdocstrings:
7588

docsrc/mkdocs/index.md

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -3,67 +3,4 @@ title: Home
33
---
44
# Overture to ArcGIS 0.1.0.dev0 Documentation
55

6-
This is the documentation for Overture to ArcGIS. All the Markdown (`md`) files in
7-
`./docsrc/mkdocs` become the documentation pages.
8-
9-
## Notebooks
10-
11-
Any Jupyter Noteoboks located in `./docsrc/mkdocs/notebooks` will be converted into documentation pages able to be
12-
included in your table of contents specified in `./docsrc/mkdocs.yml`. You will need to manually move any Jupyter
13-
Notebooks you want included in the documentation into this directory.
14-
15-
!!! note
16-
17-
I used to automatically copy Jupyter Notebooks from `./notebooks` into the documentation, but this created two problems.
18-
First, a LOT of the notebooks were copied, which were not needed in the documentation. Second, frequently I did something
19-
to alter the Notebook I did not really want in the documentation.
20-
21-
Hence, to avoid these two issues, now the template requires deliberately moving the Jupyter Notebooks you want to include
22-
in the documentation from `./notebooks` to `./docsrc/mkdocs/notebooks`.
23-
24-
## MkDocs
25-
26-
Documentation is built using MkDocs with a few extensions.
27-
28-
- [MkDocs: Writing Your Docs](https://www.mkdocs.org/user-guide/writing-your-docs/) - this is a great place to start
29-
understanding how to write and structure your documentation
30-
- [MkDocStrings: Usage](https://mkdocstrings.github.io/usage/#autodoc-syntax) - Extension creating docstrings directly
31-
from docstrings in the Python package built with your project. This is configured to use Google docstring conventions.
32-
- [MkDocs-Jupyter](https://mkdocs-jupyter.danielfrg.com/) - Extension enabling inclusion of Notebooks directly in the
33-
documentation.
34-
- [MkDocs-Material](https://squidfunk.github.io/mkdocs-material/) - Theme used for the documentation. Useful
35-
information for customizing the theme if you want.
36-
- [Admonitions](https://squidfunk.github.io/mkdocs-material/reference/admonitions/) - How to add Notes, etc.
37-
38-
39-
## Commands
40-
41-
Here are a few commonly used commands for efficient project configuration and use.
42-
43-
* `make env` - creates a Conda environment in the project directory in `./env` with resources needed for project development
44-
* `make jupyter` - run Jupyter notebook with options enabling connecting from another computer on the same network if desired
45-
* `make data` - build data using the file `./scripts/make_data.py` using the Conda environment `./env` created with the command
46-
`make env`
47-
* `make docs` - builds documentation in `./docs` from resources in `./docsrc`.
48-
* `make docserve` - runs live server on http://127.0.0.1:8000/ to see updates to docs in real
49-
time. This is extremely useful when building the documentation to see how it will look.
50-
51-
!!! note
52-
53-
These commands are defined in `./make.cmd` if you want to examine, modify or extend this capability.
54-
55-
## Documentation layout
56-
57-
Files in the `./docsrc` directory are used to build the documentation. The following files are included by
58-
default.
59-
60-
mkdocs.yml # MkDocs configuration file. This is where navigation is set up.
61-
mkdocs/
62-
index.md # Documentation homepage.
63-
api.md # API (Python package) documentation generated from docstrings using MkDocStrings
64-
notebooks/ # Directory to put Jupyter Notebooks
65-
... # Other markdown pages, images and files.
66-
67-
!!! note
68-
69-
The structure of the documentation pages is derived directly from the way files are organized in this directory. This is well explained in the [MkDocs: File Layout](https://www.mkdocs.org/user-guide/writing-your-docs/#file-layout) documentation.
6+
{% include "../../README.md" %}

0 commit comments

Comments
 (0)