Skip to content

Commit

Permalink
docs: clean up documentation and add copybutton
Browse files Browse the repository at this point in the history
  • Loading branch information
jolars committed Dec 11, 2023
1 parent 6071f9d commit 4e51a29
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 31 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ docs:
sphinx-apidoc -o docs/source sortedl1 ;\
cd docs ;\
make html

.PHONY: autodoc
autodoc:
sphinx-autobuild docs/source docs/build

.PHONY: update-libslope
update-libslope:
@mkdir -p tmp
@curl -L $(LIBSLOPE_RELEASE) | tar -xz --strip-components=1 -C tmp
@rm -rf src/slope
@cp -ri tmp/src/slope src/
@rm -rf tmp

@rm -rf src/slope @cp -ri tmp/src/slope src/ @rm -rf tmp
6 changes: 3 additions & 3 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
################
Main Functions
################
###############
API Reference
###############

.. currentmodule:: sortedl1

Expand Down
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"sphinx.ext.autosummary",
"sphinx.ext.doctest",
"sphinx.ext.napoleon",
"sphinx_copybutton",
]
templates_path = ["_templates"]
exclude_patterns = [
Expand Down
7 changes: 0 additions & 7 deletions docs/source/modules.rst

This file was deleted.

28 changes: 12 additions & 16 deletions docs/source/sortedl1.rst
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
sortedl1 package
================
##################
sortedl1 package
##################

Submodules
----------
************
Submodules
************

sortedl1.estimators module
--------------------------
****************************
sortedl1.estimators module
****************************

.. automodule:: sortedl1.estimators
:members:
:undoc-members:
:show-inheritance:

sortedl1.version module
-----------------------

.. automodule:: sortedl1.version
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------
*****************
Module contents
*****************

.. automodule:: sortedl1
:members:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Homepage = "https://jolars.github.io/sortedl1/"
Source = "https://github.com/jolars/sortedl1"

[project.optional-dependencies]
docs = ["sphinx", "furo"]
docs = ["sphinx", "furo", "sphinx-copybutton"]

[tool.scikit-build]
build-dir = "build/{wheel_tag}"
Expand Down

0 comments on commit 4e51a29

Please sign in to comment.