Skip to content

Commit 613207a

Browse files
committed
Package maintenance
1 parent 2146612 commit 613207a

6 files changed

Lines changed: 50 additions & 55 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020-2023 Tomas Stolker
3+
Copyright (c) 2026 Tomas Stolker
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Contributions are welcome so please consider `forking <https://help.github.com/e
2525
License
2626
-------
2727

28-
Copyright 2025 Tomas Stolker
28+
Copyright 2026 Tomas Stolker
2929

3030
*diskmap* is distributed under the MIT License. See the LICENSE file for the terms and conditions.
3131

docs/conf.py

Lines changed: 42 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7,80 +7,74 @@
77
# -- Path setup --------------------------------------------------------------
88

99
# 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.
10+
# add these directories to sys.path here.
1211

13-
import os
1412
import sys
15-
sys.path.insert(0, os.path.abspath('../'))
13+
14+
from pathlib import Path
15+
16+
sys.path.insert(0, str(Path(__file__).parent.parent.resolve()))
1617

1718
# -- Project information -----------------------------------------------------
1819

19-
project = 'diskmap'
20-
copyright = '2025, Tomas Stolker'
21-
author = 'Tomas Stolker'
20+
project = "diskmap"
21+
copyright = "2026, Tomas Stolker"
22+
author = "Tomas Stolker"
2223

2324
# -- General configuration ---------------------------------------------------
2425

2526
# Add any Sphinx extension module names here, as strings. They can be
26-
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
27+
# extensions coming with Sphinx (named "sphinx.ext.*") or your custom
2728
# ones.
29+
2830
extensions = [
29-
'sphinx.ext.autodoc',
30-
'sphinx.ext.napoleon',
31-
'sphinx.ext.viewcode',
32-
'sphinx_automodapi.automodapi',
33-
'nbsphinx'
31+
"sphinx.ext.autodoc",
32+
"sphinx.ext.autosummary",
33+
"sphinx.ext.napoleon",
34+
"sphinx.ext.viewcode",
35+
"sphinx_automodapi.automodapi",
36+
"nbsphinx"
3437
]
3538

39+
# List of patterns, relative to source directory, that match files and
40+
# directories to ignore when looking for source files.
41+
# This pattern also affects html_static_path and html_extra_path.
42+
43+
exclude_patterns = ["_build",
44+
"Thumbs.db",
45+
".DS_Store",
46+
".ipynb_checkpoints/*"]
47+
3648
# Disable notebook timeout
3749
nbsphinx_timeout = -1
3850

3951
# Allow errors from notebooks
4052
nbsphinx_allow_errors = True
4153

42-
autoclass_content = 'both'
43-
44-
# Add any paths that contain templates here, relative to this directory.
45-
templates_path = []
46-
47-
# List of patterns, relative to source directory, that match files and
48-
# directories to ignore when looking for source files.
49-
# This pattern also affects html_static_path and html_extra_path.
50-
exclude_patterns = ['_build',
51-
'Thumbs.db',
52-
'.DS_Store',
53-
'.ipynb_checkpoints/*']
54+
autoclass_content = "both"
5455

5556
# -- Options for HTML output -------------------------------------------------
5657

57-
# The theme to use for HTML and HTML Help pages. See the documentation for
58-
# a list of builtin themes.
59-
#
60-
html_theme = 'sphinx_book_theme'
58+
html_theme = "sphinxawesome_theme"
6159

6260
html_theme_options = {
63-
'path_to_docs': 'docs',
64-
'repository_url': 'https://github.com/tomasstolker/diskmap',
65-
'repository_branch': 'main',
66-
'launch_buttons': {
67-
'notebook_interface': 'jupyterlab',
61+
"show_breadcrumbs": True,
62+
"show_scrolltop": True,
63+
"show_prev_next": True,
64+
"main_nav_links": {
65+
"GitHub": "https://github.com/tomasstolker/diskmap",
66+
"PyPI": "https://pypi.org/project/diskmap/",
6867
},
69-
'use_edit_page_button': True,
70-
'use_issues_button': True,
71-
'use_repository_button': True,
72-
'use_download_button': True,
7368
}
7469

75-
# Add any paths that contain custom static files (such as style sheets) here,
76-
# relative to this directory. They are copied after the builtin static files,
77-
# so a file named "default.css" will overwrite the builtin "default.css".
78-
html_static_path = []
70+
html_context = {
71+
"github_user": "tomasstolker",
72+
"github_repo": "diskmap",
73+
"github_version": "main",
74+
"doc_path": "docs",
75+
}
7976

80-
html_logo = 'logo.png'
81-
html_search_language = 'en'
77+
html_static_path = []
8278

83-
html_context = {'display_github': True,
84-
'github_user': 'tomasstolker',
85-
'github_repo': 'diskmap',
86-
'github_version': 'main/docs/'}
79+
html_logo = "logo.png"
80+
html_search_language = "en"

docs/index.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
Documentation for *diskmap*
44
===========================
55

6-
*diskmap* is a tool for scattered light mapping of protoplanetary disks.
6+
*diskmap* is a tool for scattered light mapping of protoplanetary disks
77

88
.. toctree::
9-
:maxdepth: 2
9+
:maxdepth: 1
10+
:hidden:
1011

1112
installation
1213
tutorial.ipynb

docs/tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Tutorial for *diskmap*"
7+
"# Tutorial"
88
]
99
},
1010
{
@@ -686,7 +686,7 @@
686686
"name": "python",
687687
"nbconvert_exporter": "python",
688688
"pygments_lexer": "ipython3",
689-
"version": "3.10.0"
689+
"version": "3.13.7"
690690
}
691691
},
692692
"nbformat": 4,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ docs = [
3131
"pandoc",
3232
"sphinx",
3333
"sphinx-automodapi",
34-
"sphinx_book_theme",
34+
"sphinxawesome-theme",
3535
]
3636
test = [
3737
"black",

0 commit comments

Comments
 (0)