Skip to content

Commit d95c43d

Browse files
authored
Merge branch 'main' into 3.3.0
2 parents 731fabd + 454b2cc commit d95c43d

File tree

9 files changed

+108
-152
lines changed

9 files changed

+108
-152
lines changed

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,10 @@
88
Modular image processing pipelines for Astronomy
99
<br>
1010
<p align="center">
11-
<a href="https://github.com/lgrcia/prose">
12-
<img src="https://img.shields.io/badge/github-lgrcia/prose-03A487.svg?style=flat" alt="github"/>
13-
</a>
14-
<a href="https://github.com/lgrcia/prose/blob/main/LICENSE">
15-
<img src="https://img.shields.io/badge/license-MIT-lightgray.svg?style=flat" alt="license"/>
16-
</a>
17-
<a href="https://arxiv.org/abs/2111.02814">
18-
<img src="https://img.shields.io/badge/paper-B166A9.svg?style=flat" alt="paper"/>
19-
</a>
20-
<a href="https://prose.readthedocs.io/en/latest">
21-
<img src="https://img.shields.io/badge/documentation-black.svg?style=flat" alt="documentation"/>
22-
</a>
11+
<a href="https://github.com/lgrcia/prose"><img src="https://img.shields.io/badge/github-lgrcia/prose-03A487.svg?style=flat" alt="github"/></a>
12+
<a href="https://github.com/lgrcia/prose/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-lightgray.svg?style=flat" alt="license"/></a>
13+
<a href="https://arxiv.org/abs/2111.02814"><img src="https://img.shields.io/badge/paper-B166A9.svg?style=flat" alt="paper"/></a>
14+
<a href="https://prose.readthedocs.io/en/latest"><img src="https://img.shields.io/badge/documentation-black.svg?style=flat" alt="documentation"/></a>
2315
</p>
2416
</p>
2517

docs/conf.py

Lines changed: 4 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,32 @@
1-
# Configuration file for the Sphinx documentation builder.
2-
#
3-
# This file only contains a selection of the most common options. For a full
4-
# list see the documentation:
5-
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6-
7-
# -- Path setup --------------------------------------------------------------
8-
9-
# If extensions (or modules to document with autodoc) are in another directory,
10-
# add these directories to sys.path here. If the directory is relative to the
11-
# documentation root, use os.path.abspath to make it absolute, like shown here.
12-
#
13-
# import os
14-
# import sys
15-
# sys.path.insert(0, os.path.abspath('.'))
16-
17-
18-
# -- Project information -----------------------------------------------------
1+
import toml
192

203
project = "prose"
214
copyright = "2023, Lionel Garcia"
225
author = "Lionel Garcia"
236

24-
25-
# -- General configuration ---------------------------------------------------
26-
27-
# Add any Sphinx extension module names here, as strings. They can be
28-
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
29-
# ones.
307
extensions = [
318
"myst_nb",
329
"sphinx_copybutton",
3310
"sphinx.ext.autodoc",
3411
"sphinx.ext.napoleon",
3512
"sphinx.ext.autosummary",
13+
"sphinx.ext.viewcode",
3614
"sphinx_design",
3715
]
3816

39-
40-
# Add any paths that contain templates here, relative to this directory.
4117
templates_path = ["_templates"]
42-
43-
# List of patterns, relative to source directory, that match files and
44-
# directories to ignore when looking for source files.
45-
# This pattern also affects html_static_path and html_extra_path.
4618
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
4719

4820

49-
# -- Options for HTML output -------------------------------------------------
50-
51-
# The theme to use for HTML and HTML Help pages. See the documentation for
52-
# a list of builtin themes.
53-
#
5421
html_theme = "sphinx_book_theme"
55-
56-
# Add any paths that contain custom static files (such as style sheets) here,
57-
# relative to this directory. They are copied after the builtin static files,
58-
# so a file named "default.css" will overwrite the builtin "default.css".
5922
html_static_path = ["_static"]
6023

61-
# Title
62-
# get version number from pyproject.toml
63-
# --------------------------------------
64-
import toml
65-
6624
pyproject = toml.load("../pyproject.toml")
6725
version = pyproject["tool"]["poetry"]["version"]
6826
html_short_title = "prose"
6927
html_title = f"{html_short_title}"
70-
# -----
28+
29+
# html_logo = "_static/prose3.png"
7130

7231
source_suffix = {
7332
".rst": "restructuredtext",
@@ -152,27 +111,3 @@
152111
"""
153112

154113
open("md/all_blocks.rst", "w").write(all_blocks)
155-
156-
# check if blocks are tested
157-
# --------------------------
158-
# import os
159-
160-
# from prose.core.block import is_tested
161-
# from prose.utils import get_all_blocks
162-
163-
# os.chdir("..")
164-
# tested = []
165-
# tested.append("# Tested blocks\n")
166-
# tested.append("| Block | Tested |")
167-
# tested.append("| ----- | ------ |")
168-
# blocks = get_all_blocks()
169-
# blocks = sorted(blocks, key=lambda block: block.__name__.lower())
170-
171-
# for block in blocks:
172-
# _is = is_tested(block.__name__)
173-
# tested.append(
174-
# f" | [`{block.__name__}`]({block.__module__}.{block.__name__}) | {'✅' if _is else '❌'} |"
175-
# )
176-
# os.chdir("docs")
177-
178-
# open("./tested_blocks.md", "w").write("\n".join(tested))

docs/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ A Python package to build modular image processing pipelines for Astronomy.
2323
```
2424

2525
```{toctree}
26-
:maxdepth: 0
26+
:maxdepth: 1
2727
:caption: Get started
2828
2929
md/installation
@@ -33,7 +33,7 @@ ipynb/acknowledgement
3333
```
3434

3535
```{toctree}
36-
:maxdepth: 0
36+
:maxdepth: 1
3737
:caption: Tutorials
3838
3939
ipynb/fitsmanager
@@ -44,7 +44,7 @@ ipynb/catalogs
4444

4545

4646
```{toctree}
47-
:maxdepth: 0
47+
:maxdepth: 1
4848
:caption: Case studies
4949
5050
ipynb/casestudies/transit.ipynb
@@ -54,7 +54,7 @@ ipynb/casestudies/satellite.ipynb
5454
```
5555

5656
```{toctree}
57-
:maxdepth: 0
57+
:maxdepth: 1
5858
:caption: Reference
5959
6060
ipynb/sources

docs/ipynb/quickstart.ipynb

Lines changed: 12 additions & 13 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)