Skip to content

Commit 0fe01c4

Browse files
Fix issues in doc
1 parent ac90e63 commit 0fe01c4

File tree

3 files changed

+11
-40
lines changed

3 files changed

+11
-40
lines changed

.github/workflows/build_docs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
run: pip install -e .
3838

3939
- name: Generate Documentation
40-
shell: bash -l {0}
41-
run: pdoc synaptic_reconstruction -o doc/
40+
shell: bash -l {0}
41+
run: pdoc synaptic_reconstruction -d google -o doc/
4242

4343
- name: Verify Documentation Output
4444
run: ls -la doc/
@@ -68,6 +68,6 @@ jobs:
6868

6969
- name: Deploy to GiHub Pages
7070
uses: actions/deploy-pages@v4
71-
# with:
71+
# with:
7272
# artifact_name: documentation
7373

build_doc.py

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,16 @@
11
import argparse
2-
import glob
3-
import os
4-
import warnings
5-
62
from subprocess import run
73

84

9-
def check_docs_completeness():
10-
"""@private
11-
All markdown and RST documentation files **SHOULD** be included in the module
12-
docstring at micro_sam/__init__.py
13-
"""
14-
import micro_sam
15-
16-
# We don't search in subfolders anymore, to allow putting additional documentation
17-
# (e.g. for bioimage.io mdoels) that should not be included in the main documentation here.
18-
markdown_doc_files = glob.glob("doc/*.md", recursive=True)
19-
rst_doc_files = glob.glob("doc/*.rst", recursive=True)
20-
all_doc_files = markdown_doc_files + rst_doc_files
21-
missing_from_docs = [f for f in all_doc_files if os.path.basename(f) not in micro_sam.__doc__]
22-
if len(missing_from_docs) > 0:
23-
warnings.warn(
24-
"Documentation files missing! Please add include statements "
25-
"to the docstring in micro_sam/__init__.py for every file, eg:"
26-
"'.. include:: ../doc/filename.md'. "
27-
"List of missing files: "
28-
f"{missing_from_docs}"
29-
)
30-
31-
325
if __name__ == "__main__":
33-
check_docs_completeness()
34-
356
parser = argparse.ArgumentParser()
367
parser.add_argument("--out", "-o", action="store_true")
378
args = parser.parse_args()
389

39-
logo_url = "https://raw.githubusercontent.com/computational-cell-analytics/micro-sam/master/doc/logo/logo_and_text.png"
40-
cmd = ["pdoc", "--docformat", "google", "--logo", logo_url]
10+
cmd = ["pdoc", "--docformat", "google"]
4111

4212
if args.out:
4313
cmd.extend(["--out", "tmp/"])
44-
cmd.append("micro_sam")
14+
cmd.append("synaptic_reconstruction")
4515

46-
run(cmd)
16+
run(cmd)

doc/start_page.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
SynapseNet is a tool for automatic segmentation and analysis of synapses in electron micrographs.
44
It provides deep neural networks for:
55
- Synaptic vesicle segmentation in ssTEM (2d data) and (cryo-)electron tomography (3d data)
6-
- Active zone membrane segmentation in electron tomography
7-
- Mitochondrion segmentation in electron tomography
8-
- Synaptic compartment segmentation in electron tomography
9-
- Synaptic ribbon and pre-synaptic density segmentation for ribbon synapses in electron tomography
6+
- Active zone membrane segmentation in electron tomography.
7+
- Mitochondrion segmentation in electron tomography.
8+
- Synaptic compartment segmentation in electron tomography.
9+
- Synaptic ribbon and pre-synaptic density segmentation for ribbon synapses in electron tomography.
10+
1011
It also offers functionality for quantifying synaptic ultrastructure based on segmentation results, for example by measuring vesicle or structure morphology, measuring distances between vesicles and structures, or assigning vesicles into different pools.
1112
SynapseNet mainly targets electron tomography, but can also be appled to other types of electron microscopy,
1213
especially throught the [domain adaptation](domain-adaptation) functionality.

0 commit comments

Comments
 (0)