Skip to content

Commit

Permalink
Merge pull request #465 from azavea/rde/feature/docs
Browse files Browse the repository at this point in the history
Documentation
  • Loading branch information
lossyrob committed Oct 10, 2018
2 parents 8a1acb7 + 92d7e72 commit 3b61d12
Show file tree
Hide file tree
Showing 107 changed files with 14,823 additions and 322 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ deployment/ansible/*.retry
*~
.#*

# Generated pb2 files
rastervision/protos/**/*_pb2.py

# Vim
.*.sw*

Expand Down
8 changes: 7 additions & 1 deletion .travis/test
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#!/bin/bash

# Check no uncompiled protobufs
docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it raster-vision-cpu $(pwd)/scripts/compile
if [ ! -z "$(git status --porcelain)" ]; then
echo "Protobuf files need to be compiled. Run scripts/compile."
exit 1
fi

docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it raster-vision-cpu rm -f $(pwd)/.coverage $(pwd)/coverage.xml
docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it raster-vision-cpu $(pwd)/scripts/style_tests && \
docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it raster-vision-cpu $(pwd)/scripts/compile && \
docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it raster-vision-cpu $(pwd)/scripts/unit_tests && \
docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it raster-vision-cpu $(pwd)/scripts/integration_tests
4 changes: 4 additions & 0 deletions Dockerfile-cpu
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ ENV PYTHONPATH=/opt/src:/opt/tf-models:/opt/tf-models/slim:$PYTHONPATH
COPY ./requirements-dev.txt /opt/src/requirements-dev.txt
RUN pip install -r requirements-dev.txt

# Install docs/requirements.txt
COPY ./docs/requirements.txt /opt/src/docs/requirements.txt
RUN pip install -r docs/requirements.txt

# Install extras_requirements.json
# Don't install tensorflow
COPY ./extras_requirements.json /opt/src/extras_requirements.json
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile-gpu
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ ENV PYTHONPATH=/opt/src:/opt/tf-models:/opt/tf-models/slim:$PYTHONPATH
COPY ./requirements-dev.txt /opt/src/requirements-dev.txt
RUN pip install -r requirements-dev.txt

# Install docs/requirements.txt
COPY ./docs/requirements.txt /opt/src/docs/requirements.txt
RUN pip install -r docs/requirements.txt

# Install extras_requirements.json
# Don't install tensorflow
COPY ./extras_requirements.json /opt/src/extras_requirements.json
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

![Release Coming October 2018](/release-notice.png "RELEASE COMING OCTOBER 2018")
 
![Raster Vision Logo](/logo_dark.png)
![Raster Vision Logo](/docs/_static/logo_dark.png)
 

The overall goal of Raster Vision is to make it easy to train and run machine learning models over imagery, including aerial and satellite imagery. It includes functionality for making training data, training models, making predictions, and evaluating models for the tasks of object detection (implemented via the Tensorflow Object Detection API), chip classificaiton (implemented via Keras), and semantic segmentation (implemented via Deep Lab). It also supports running experimental workflows using AWS Batch. The library is designed to be easy to extend to new data sources, machine learning tasks, and machine learning implementation.
Expand Down
6 changes: 5 additions & 1 deletion docker/console
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ do
RUNTIME="--runtime=nvidia"
shift # past argument
;;
--docs)
DOCS="-p 8000:8000"
shift # past argument
;;
--name)
shift
NAME="--name $1"
Expand All @@ -61,7 +65,7 @@ set -- "${POSITIONAL[@]}" # restore positional parameters

if [ "${BASH_SOURCE[0]}" = "${0}" ]
then
docker run ${RUNTIME} ${NAME} --rm -it ${TENSORBOARD} ${AWS} \
docker run ${RUNTIME} ${NAME} --rm -it ${TENSORBOARD} ${AWS} ${DOCS} \
-v ${HOME}/.rastervision:/root/.rastervision \
-v "$PROJECT_ROOT":/opt/src \
-v ${RASTER_VISION_DATA_DIR}:/opt/data \
Expand Down
30 changes: 30 additions & 0 deletions docker/doc-server
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

set -e

if [[ -n "${RASTER_VISION_DEBUG}" ]]; then
set -x
fi

SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
SCRIPTS_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
PROJECT_ROOT="$( cd -P "$( dirname "$SCRIPTS_DIR" )" && pwd )"

function usage() {
echo -n \
"Usage: $(basename "$0") (--local|--remote)
Run a livehtml server to serve out documentation
"
}

if [ "${BASH_SOURCE[0]}" = "${0}" ]
then
docker run --rm -it \
-v "$PROJECT_ROOT":/opt/src \
-p 8000:8000 \
raster-vision-cpu \
/bin/bash -c \
"cd docs && make livehtml"
fi
fi
8 changes: 4 additions & 4 deletions docs/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ as it will make the process of accepting changes smoother.
Everyone who contributes code to Raster Vision will be asked to sign the
Azavea CLA, which is based off of the Apache CLA.

1. Download a copy of the [Raster Vision Individual Contributor License
Agreement](docs/cla/2018_04_17-Raster-Vision-Open-Source-Contributor-Agreement-Individual.pdf)
or the [Raster Vision Corporate Contributor License
Agreement](docs/cla/2018_04_18-Raster-Vision-Open-Source-Contributor-Agreement-Corporate.pdf)
1. Download a copy of the `Raster Vision Individual Contributor License
Agreement <_static/cla/2018_04_17-Raster-Vision-Open-Source-Contributor-Agreement-Individual.pdf>`_
or the `Raster Vision Corporate Contributor License
Agreement <_static/cla/2018_04_18-Raster-Vision-Open-Source-Contributor-Agreement-Corporate.pdf>`_

2. Print out the CLAs and sign them, or use PDF software that allows placement of a signature image.

Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

livehtml:
sphinx-autobuild `pwd` `pwd`/_build/html
sphinx-autobuild --host 0.0.0.0 `pwd` `pwd`/_build/html

.PHONY: help Makefile

Expand Down
19 changes: 19 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Raster Vision Documentation

This directory contains the Sphinx documentation for Raster Vision.

### Developing

All commands are issued in this directory.

You'll need to install the required packages:

```
> pip install -r requirements.txt
```

To run a live local server that updates with changes, run:

```
> make livehtml
```
Binary file added docs/_static/codebase-config-vs-entity.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/commands-chain-workflow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/commands-tree-workflow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/experiments-experiment.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/experiments-scene.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/overview-raster-vision-workflow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/qgis/icon-configure.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/qgis/icon-experiment.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/qgis/icon-predict.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/qgis/icon-profiles.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/qgis/qgis-configure.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/qgis/qgis-experiment-loaded.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/qgis/qgis-experiment-preload.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/qgis/qgis-plugin-xview.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/qgis/qgis-predict.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/qgis/qgis-style-profiles.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/raster-vision-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/raster-vision-logo-index.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
46 changes: 46 additions & 0 deletions docs/_static/rastervision.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.underline {
text-decoration: underline;
}

body, pre, code {
font-family: "Menlo", "Ubuntu Mono", "Consolas", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace;
font-size: 16px;
}

div.body {
padding: 0px 75px;
}

div.admonition, div.topic {
padding: 15px;
font-size: 14px;
}

div.admonition p.admonition-title,
div.topic p.topic-title {
font-weight: bold;
font-size: 18px;
margin: 0 0 10px 0;
padding: 0;
line-height: 1;
display: inline;
}

div.admonition, div.note {
background-color: #fffff0;
border-color: #f0f0a8;
}

/* override table width restrictions */
@media screen and (min-width: 767px) {

.wy-table-responsive table td {
/* !important prevents the common CSS stylesheets from overriding
this as on RTD they are loaded after this stylesheet */
white-space: normal !important;
}

.wy-table-responsive {
overflow: visible !important;
}
}
13 changes: 0 additions & 13 deletions docs/_static/theme_overrides.css

This file was deleted.

0 comments on commit 3b61d12

Please sign in to comment.