Skip to content

Commit 0f89cd8

Browse files
committed
Revert docs action
1 parent dbe9e3c commit 0f89cd8

File tree

3 files changed

+23
-29
lines changed

3 files changed

+23
-29
lines changed

.github/workflows/build_docs.yml

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,22 @@ on:
77
- cy/docs-action
88

99
jobs:
10-
sphinx_docs_to_gh-pages:
10+
build:
11+
1112
runs-on: ubuntu-latest
12-
name: Sphinx docs to gh-pages
13+
1314
steps:
14-
- uses: actions/checkout@v3
15-
with:
16-
fetch-depth: 0
17-
- name: Make conda environment
18-
uses: conda-incubator/setup-miniconda@v2
19-
with:
20-
python-version: 3.9 # Python version to build the html sphinx documentation
21-
environment-file: devtools/conda-envs/docs_env.yaml # Path to the documentation conda environment
22-
auto-update-conda: false
23-
auto-activate-base: false
24-
show-channel-urls: true
25-
- name: Installing the library
26-
shell: bash -l {0}
27-
run: |
28-
python setup.cfg install
29-
- name: Running the Sphinx to gh-pages Action
30-
uses: uibcdf/[email protected]
31-
with:
32-
branch: main
33-
dir_docs: docs
34-
sphinxapiopts: '--separate -o . ../'
35-
sphinxapiexclude: '../*setup* ../*.ipynb'
36-
sphinxopts: ''
15+
- run: sudo apt-get update && sudo apt-get install libgl1
16+
- uses: actions/checkout@v3
17+
# Standard drop-in approach that should work for most people.
18+
- uses: ammaraskar/sphinx-action@master
19+
with:
20+
pre-build-command: "pip install -r requirements.txt napari-cellseg3d opencv-python-headless"
21+
docs-folder: "docs/"
22+
23+
- name: GitHub Pages action
24+
uses: peaceiris/[email protected]
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
publish_dir: ./docs/_build/html
28+

napari_cellseg3d/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
LOGGER = logging.getLogger(__name__)
1515
###############
1616
# Global logging level setting
17-
LOGGER.setLevel(logging.DEBUG)
18-
# LOGGER.setLevel(logging.INFO)
17+
# LOGGER.setLevel(logging.DEBUG)
18+
LOGGER.setLevel(logging.INFO)
1919
###############
2020

2121
"""
@@ -161,7 +161,7 @@ def align_array_sizes(array_shape, target_shape):
161161
for i in range(len(targets)):
162162
targets[i] = reverse_mapping[targets[i]]
163163
infos = np.unique(origins, return_index=True, return_counts=True)
164-
info_dict = {"origins": infos[0], "index": infos[1], "counts": infos[2]}
164+
{"origins": infos[0], "index": infos[1], "counts": infos[2]}
165165
# print(info_dict)
166166

167167
final_orig = []

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
requires = ["setuptools", "wheel"]
33
build-backend = "setuptools.build_meta"
44

5-
5+
[tool.ruff]
6+
# Never enforce `E501` (line length violations).
7+
ignore = ["E501"]
68

79
[tool.black]
810
line-length = 79

0 commit comments

Comments
 (0)