Skip to content

Commit

Permalink
Simplify docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanLeRoy committed Dec 4, 2023
1 parent ae7c0cc commit 45522be
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 339 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/docs.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ instance/
# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/
docs/bioio_dv.*rst
docs/modules.rst

# PyBuilder
target/

Expand Down
2 changes: 0 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,9 @@ Available recipes:
build # run lint and then run tests
clean # clean all build, python, and lint files
default # list all available commands
generate-docs # generate Sphinx HTML documentation
install # install with all deps
lint # lint, format, and check all files
release # release a new version
serve-docs # generate Sphinx HTML documentation and serve to browser
tag-for-release version # tag a new version
test # run tests
update-from-cookiecutter # update this repo using latest cookiecutter-bioio-reader
Expand Down
26 changes: 1 addition & 25 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ default:
# clean all build, python, and lint files
clean:
rm -fr build
rm -fr docs/_build
rm -fr dist
rm -fr .eggs
find . -name '*.egg-info' -exec rm -fr {} +
Expand All @@ -22,7 +21,7 @@ clean:

# install with all deps
install:
pip install -e .[lint,test,docs]
pip install -e .[lint,test]
pre-commit install

# lint, format, and check all files
Expand All @@ -38,29 +37,6 @@ build:
just lint
just test

# generate Sphinx HTML documentation
generate-docs:
rm -f docs/bioio_dv*.rst
rm -f docs/modules.rst
sphinx-apidoc -o docs bioio_dv **/tests
python -msphinx "docs" "docs/_build"


# Generate project URI for browser opening
# We replace here to handle windows paths
# Windows paths are normally `\` separated but even in the browser they use `/`
# https://stackoverflow.com/a/61991869
project_uri := if "os_family()" == "unix" {
justfile_directory()
} else {
replace(justfile_directory(), "\\", "/")
}

# generate Sphinx HTML documentation and serve to browser
serve-docs:
just generate-docs
python -mwebbrowser -t "file://{{project_uri}}/docs/_build/index.html"

# tag a new version
tag-for-release version:
git tag -a "{{version}}" -m "{{version}}"
Expand Down
39 changes: 28 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,50 @@
# bioio-dv

[![Build Status](https://github.com/bioio-devs/bioio-dv/actions/workflows/ci.yml/badge.svg)](https://github.com/bioio-devs/bioio-dv/actions)
[![Documentation](https://github.com/bioio-devs/bioio-dv/actions/workflows/docs.yml/badge.svg)](https://bioio-devs.github.io/bioio-dv)
[![PyPI version](https://badge.fury.io/py/bioio-dv.svg)](https://badge.fury.io/py/bioio-dv)
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![Python 3.9+](https://img.shields.io/badge/python-3.9,3.10,3.11-blue.svg)](https://www.python.org/downloads/release/python-390/)

A BioIO reader plugin for reading Digital Video (DV) files.
A BioIO reader plugin for reading dv (deltavision) files using `mrc`

This plugin is intended to be used in conjunction with [bioio](https://github.com/bioio-devs/bioio)
---


## Documentation

[See the full documentation on our GitHub pages site](https://bioio-devs.github.io/bioio/OVERVIEW.html) - the generic use and installation instructions there will work for this package.

Information about the base reader this package relies on can be found in the `bioio-base` repository [here](https://github.com/bioio-devs/bioio-base)

## Installation

**Stable Release:** `pip install bioio-dv`<br>
**Development Head:** `pip install git+https://github.com/bioio-devs/bioio-dv.git`

## Quickstart
## Example Usage (see full documentation for more examples)

Install bioio-dv alongside bioio:

`pip install bioio bioio-dv`


This example shows a simple use case for just accessing the pixel data of the image
by explicitly passing this `Reader` into the `BioImage`. Passing the `Reader` into
the `BioImage` instance is optional as `bioio` will automatically detect installed
plug-ins and auto-select the most recently installed plug-in that supports the file
passed in.
```python
from bioio_dv import Reader
from bioio import BioImage
import bioio_dv

r = Reader("my-image.ext")
r.dims
img = BioImage("my_file.dv", reader=bioio_dv.Reader)
img.data
```

## Documentation
## Issues
[_Click here to view all open issues in bioio-devs organization at once_](https://github.com/search?q=user%3Abioio-devs+is%3Aissue+is%3Aopen&type=issues&ref=advsearch) or check this repository's issue tab.

For full package documentation please visit [bioio-devs.github.io/bioio-dv](https://bioio-devs.github.io/bioio-dv).

## Development

See [CONTRIBUTING.md](CONTRIBUTING.md) for information related to developing the code.

**MIT License**
186 changes: 0 additions & 186 deletions docs/conf.py

This file was deleted.

1 change: 0 additions & 1 deletion docs/contributing.rst

This file was deleted.

14 changes: 0 additions & 14 deletions docs/index.rst

This file was deleted.

Loading

0 comments on commit 45522be

Please sign in to comment.