Skip to content

Commit 5853033

Browse files
committed
Simplify docs
1 parent 6465417 commit 5853033

10 files changed

+29
-339
lines changed

.github/workflows/docs.yml

-32
This file was deleted.

.gitignore

-5
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_lif.*rst
74-
docs/modules.rst
75-
7671
# PyBuilder
7772
target/
7873

CONTRIBUTING.md

-2
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

+1-25
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

2726
# install dependencies, setup pre-commit, download test resources
2827
setup-dev:
@@ -43,29 +42,6 @@ build:
4342
just lint
4443
just test
4544

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

README.md

+28-11
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,50 @@
11
# bioio-lif
22

33
[![Build Status](https://github.com/bioio-devs/bioio-lif/actions/workflows/ci.yml/badge.svg)](https://github.com/bioio-devs/bioio-lif/actions)
4-
[![Documentation](https://github.com/bioio-devs/bioio-lif/actions/workflows/docs.yml/badge.svg)](https://bioio-devs.github.io/bioio-lif)
4+
[![PyPI version](https://badge.fury.io/py/bioio-lif.svg)](https://badge.fury.io/py/bioio-lif)
5+
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
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 LIF (Leica Image File) images.
8+
A BioIO reader plugin for reading LIF (Leica) images using `readlif`
79

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

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+
1119
## Installation
1220

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

16-
## Quickstart
24+
## Example Usage (see full documentation for more examples)
1725

26+
Install bioio-lif alongside bioio:
27+
28+
`pip install bioio bioio-lif`
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.
1836
```python
19-
from bioio_lif import Reader
37+
from bioio import BioImage
38+
import bioio_lif
2039

21-
r = Reader("my-image.ext")
22-
r.dims
40+
img = BioImage("my_file.lif", reader=bioio_lif.Reader)
41+
img.data
2342
```
2443

25-
## 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.
2646

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

2948
## Development
3049

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

docs/conf.py

-186
This file was deleted.

docs/contributing.rst

-1
This file was deleted.

docs/index.rst

-14
This file was deleted.

0 commit comments

Comments
 (0)