Skip to content

Commit b9ebc7e

Browse files
committed
Simplify docs
1 parent f191c5c commit b9ebc7e

File tree

10 files changed

+29
-341
lines changed

10 files changed

+29
-341
lines changed

.github/workflows/docs.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ instance/
6868
# Scrapy stuff:
6969
.scrapy
7070

71-
# Sphinx documentation
72-
docs/_build/
73-
docs/bioio_sldy.*rst
74-
docs/modules.rst
75-
7671
# PyBuilder
7772
target/
7873

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,9 @@ Available recipes:
6666
build # run lint and then run tests
6767
clean # clean all build, python, and lint files
6868
default # list all available commands
69-
generate-docs # generate Sphinx HTML documentation
7069
install # install with all deps
7170
lint # lint, format, and check all files
7271
release # release a new version
73-
serve-docs # generate Sphinx HTML documentation and serve to browser
7472
tag-for-release version # tag a new version
7573
test # run tests
7674
update-from-cookiecutter # update this repo using latest cookiecutter-bioio-reader

Justfile

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ default:
55
# clean all build, python, and lint files
66
clean:
77
rm -fr build
8-
rm -fr docs/_build
98
rm -fr dist
109
rm -fr .eggs
1110
find . -name '*.egg-info' -exec rm -fr {} +
@@ -22,7 +21,7 @@ clean:
2221

2322
# install with all deps
2423
install:
25-
pip install -e .[lint,test,docs]
24+
pip install -e .[lint,test]
2625
pre-commit install
2726

2827
# install dependencies, setup pre-commit, download test resources
@@ -44,29 +43,6 @@ build:
4443
just lint
4544
just test
4645

47-
# generate Sphinx HTML documentation
48-
generate-docs:
49-
rm -f docs/bioio_sldy*.rst
50-
rm -f docs/modules.rst
51-
sphinx-apidoc -o docs bioio_sldy **/tests
52-
python -msphinx "docs" "docs/_build"
53-
54-
55-
# Generate project URI for browser opening
56-
# We replace here to handle windows paths
57-
# Windows paths are normally `\` separated but even in the browser they use `/`
58-
# https://stackoverflow.com/a/61991869
59-
project_uri := if "os_family()" == "unix" {
60-
justfile_directory()
61-
} else {
62-
replace(justfile_directory(), "\\", "/")
63-
}
64-
65-
# generate Sphinx HTML documentation and serve to browser
66-
serve-docs:
67-
just generate-docs
68-
python -mwebbrowser -t "file://{{project_uri}}/docs/_build/index.html"
69-
7046
# tag a new version
7147
tag-for-release version:
7248
git tag -a "{{version}}" -m "{{version}}"

README.md

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,50 @@
11
# bioio-sldy
22

33
[![Build Status](https://github.com/bioio-devs/bioio-sldy/actions/workflows/ci.yml/badge.svg)](https://github.com/bioio-devs/bioio-sldy/actions)
4-
[![Documentation](https://github.com/bioio-devs/bioio-sldy/actions/workflows/docs.yml/badge.svg)](https://bioio-devs.github.io/bioio-sldy)
4+
[![PyPI version](https://badge.fury.io/py/bioio-sldy.svg)](https://badge.fury.io/py/bioio-sldy)
5+
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
6+
[![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/)
57

6-
A BioIO reader plugin for reading 3i slidebook (SLDY) images.
7-
8-
This plugin is intended to be used in conjunction with [bioio](https://github.com/bioio-devs/bioio)
8+
A BioIO reader plugin for reading 3i Slidebook files
99

1010
---
1111

12+
13+
## Documentation
14+
15+
[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.
16+
17+
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)
18+
1219
## Installation
1320

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

17-
## Quickstart
24+
## Example Usage (see full documentation for more examples)
1825

26+
Install bioio-sldy alongside bioio:
27+
28+
`pip install bioio bioio-sldy`
29+
30+
31+
This example shows a simple use case for just accessing the pixel data of the image
32+
by explicitly passing this `Reader` into the `BioImage`. Passing the `Reader` into
33+
the `BioImage` instance is optional as `bioio` will automatically detect installed
34+
plug-ins and auto-select the most recently installed plug-in that supports the file
35+
passed in.
1936
```python
20-
from bioio_sldy import Reader
37+
from bioio import BioImage
38+
import bioio_sldy
2139

22-
r = Reader("my-image.ext")
23-
r.dims
40+
img = BioImage("my_file.sld", reader=bioio_ome_tiff.Reader)
41+
img.data
2442
```
2543

26-
## Documentation
44+
## Issues
45+
[_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.
2746

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

3048
## Development
3149

3250
See [CONTRIBUTING.md](CONTRIBUTING.md) for information related to developing the code.
33-
34-
**MIT License**

docs/conf.py

Lines changed: 0 additions & 186 deletions
This file was deleted.

docs/contributing.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/index.rst

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)