Skip to content

Commit

Permalink
Merge pull request #118 from siapy/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
janezlapajne authored Aug 20, 2024
2 parents ec24722 + 5e5383d commit 72e1d5b
Show file tree
Hide file tree
Showing 28 changed files with 66 additions and 44 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Deploy MkDocs

on:
workflow_run:
workflows: ["Publish To PyPI"]
push:
branches: [main]
pull_request:
branches: [main]
types:
- completed
- closed

permissions:
contents: write
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ jobs:
id: check_title
run: |
if [[ "${{ github.event.pull_request.title }}" == "chore(main): release"* ]]; then
echo "::set-output name=is_chore_main_release::true"
echo "is_chore_main_release=true" >> $GITHUB_OUTPUT
else
echo "::set-output name=is_chore_main_release::false"
fi
echo "is_chore_main_release=false" >> $GITHUB_OUTPUT
pypi-publish:
needs: check-pr-title
Expand Down
2 changes: 2 additions & 0 deletions docs/api/core/configs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

::: siapy.core.configs
1 change: 1 addition & 0 deletions docs/api/core/logger.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.core.logger
2 changes: 2 additions & 0 deletions docs/api/core/types.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

::: siapy.core.types
1 change: 1 addition & 0 deletions docs/api/datasets/helpers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.datasets.helpers
1 change: 1 addition & 0 deletions docs/api/datasets/schemas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.datasets.schemas
1 change: 1 addition & 0 deletions docs/api/datasets/tabular.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.datasets.tabular
2 changes: 2 additions & 0 deletions docs/api/entities/images.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

::: siapy.entities.images
1 change: 1 addition & 0 deletions docs/api/entities/imagesets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.entities.imagesets
1 change: 1 addition & 0 deletions docs/api/entities/pixels.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.entities.pixels
File renamed without changes.
1 change: 1 addition & 0 deletions docs/api/entities/signatures.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.entities.signatures
1 change: 1 addition & 0 deletions docs/api/features/features.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.features.features
1 change: 1 addition & 0 deletions docs/api/features/helpers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.features.helpers
1 change: 1 addition & 0 deletions docs/api/features/spectral_indices.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.features.spectral_indices
1 change: 1 addition & 0 deletions docs/api/models/metrics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.models.metrics
1 change: 1 addition & 0 deletions docs/api/optimizers/configs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.optimizers.configs
1 change: 1 addition & 0 deletions docs/api/optimizers/optimizers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.optimizers.optimizers
1 change: 1 addition & 0 deletions docs/api/optimizers/parameters.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.optimizers.parameters
1 change: 1 addition & 0 deletions docs/api/optimizers/scorers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.optimizers.scorers
1 change: 1 addition & 0 deletions docs/api/transformations/corregistrator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.transformations.corregistrator
1 change: 1 addition & 0 deletions docs/api/transformations/image.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.transformations.image
1 change: 1 addition & 0 deletions docs/api/utils/evaluators.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.utils.evaluators
1 change: 1 addition & 0 deletions docs/api/utils/images.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.utils.images
1 change: 1 addition & 0 deletions docs/api/utils/plots.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: siapy.utils.plots
36 changes: 1 addition & 35 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,35 +1 @@

<p align="center">
<img src="https://github.com/siapy/siapy-lib/blob/main/docs/images/logo.png?raw=true" alt="Sublime's custom image" width="300"/>
</p>

<p align="center">
<em>Spectral imaging analysis for Python (SiaPy) is a tool for efficient processing of spectral images</em>
</p>
<p align="center">
<a href="https://github.com/siapy/siapy-lib/actions?query=workflow%3ATest+event%3Apull_request+branch%3Amain" target="_blank">
<img src="https://github.com/siapy/siapy-lib/actions/workflows/test.yml/badge.svg?branch=main" alt="Test">
</a>
<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/siapy/siapy-lib" target="_blank">
<img src="https://coverage-badge.samuelcolvin.workers.dev/siapy/siapy-lib.svg" alt="Coverage">
</a>
<a href="https://pypi.org/project/siapy" target="_blank">
<img src="https://img.shields.io/pypi/v/siapy?color=%2334D058&label=pypi%20package" alt="Package version">
</a>
<a href="https://zenodo.org/doi/10.5281/zenodo.7409193"><img src="https://zenodo.org/badge/491829141.svg" alt="DOI"></a>
<a href="https://pypi.org/project/siapy" target="_blank">
<img src="https://img.shields.io/pypi/pyversions/siapy.svg?color=%2334D058" alt="Supported Python versions">
</a>
</p>

---

__Source Code__: <https://github.com/siapy/siapy-lib>

__Bug Report / Feature Request__: <https://github.com/siapy/siapy-lib/issues/new/choose>

<!-- **Tutorials**: <a href="https://github.com/Agricultural-institute/SiaPy/tree/master/tutorials" target="_blank">https://github.com/Agricultural-institute/SiaPy/tree/master/tutorials</a> -->

__Documentation__: <https://github.com/siapy/siapy-lib/tree/main/docs>

{{ version }}.
{{ external_markdown('https://raw.githubusercontent.com/siapy/siapy-lib/main/README.md', '') }}
35 changes: 32 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,38 @@ nav:
- Welcome to Siapy: index.md
- Installation: install.md
- API Documentation:
# - Entities:
# - Shapes: api/entities/shapes.md
# - Pixels: api/entities/pixels.md
- Core:
- Configs: api/core/configs.md
- Logger: api/core/logger.md
- Types: api/core/types.md
- Datasets:
- Helpers: api/datasets/helpers.md
- Schemas: api/datasets/schemas.md
- Tabular: api/datasets/tabular.md
- Entities:
- Images: api/entities/images.md
- Image Sets: api/entities/imagesets.md
- Pixels: api/entities/pixels.md
- Shapes: api/entities/shapes.md
- Signatures: api/entities/signatures.md
- Features:
- Features: api/features/features.md
- Helpers: api/features/helpers.md
- Spectral Indices: api/features/spectral_indices.md
- Models:
- Metrics: api/models/metrics.md
- Optimizers:
- Configs: api/optimizers/configs.md
- Optimizers: api/optimizers/optimizers.md
- Parameters: api/optimizers/parameters.md
- Scorers: api/optimizers/scorers.md
- Transformations:
- Corregistrator: api/transformations/corregistrator.md
- Image: api/transformations/image.md
- Utils:
- Evaluators: api/utils/evaluators.md
- Images: api/utils/images.md
- Plots: api/utils/plots.md
- Contributing: contributing.md
- Release Notes: changelog.md

Expand Down

0 comments on commit 72e1d5b

Please sign in to comment.