Skip to content

Commit

Permalink
docs: change to sphinx build/source structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jolars committed Nov 29, 2023
1 parent b4a5bac commit ed9ab31
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 17 deletions.
6 changes: 3 additions & 3 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build
SOURCEDIR = source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
Expand Down
4 changes: 2 additions & 2 deletions docs/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=.
set BUILDDIR=_build
set SOURCEDIR=source
set BUILDDIR=build

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
Expand Down
6 changes: 0 additions & 6 deletions docs/slope.rst

This file was deleted.

10 changes: 10 additions & 0 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
################
Main Functions
################

.. currentmodule:: sortedl1

.. autosummary::
:toctree: generated/

slope
6 changes: 4 additions & 2 deletions docs/conf.py → docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
import os
import sys

sys.path.insert(0, os.path.abspath(".."))
sys.path.insert(0, os.path.abspath("../.."))

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = "sortedl1"
copyright = "2023, Johan Larsson"
author = "Johan Larsson"
release = "0.1.0"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.doctest",
"sphinx.ext.napoleon",
]
templates_path = ["_templates"]
Expand All @@ -24,7 +27,6 @@
".DS_Store",
]


# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

Expand Down
6 changes: 6 additions & 0 deletions docs/source/generated/sortedl1.slope.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sortedl1.slope
==============

.. currentmodule:: sortedl1

.. autofunction:: slope
4 changes: 3 additions & 1 deletion docs/index.rst → docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
..
sortedl1 documentation master file, created by
sphinx-quickstart on Tue Nov 28 15:58:40 2023.
sphinx-quickstart on Tue Nov 28 20:48:55 2023.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Expand All @@ -12,6 +12,8 @@
:maxdepth: 2
:caption: Contents:

api

####################
Indices and tables
####################
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions docs/sortedl1.rst → docs/source/sortedl1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ sortedl1 package
Submodules
----------

sortedl1.slope module
---------------------
sortedl1.models module
----------------------

.. automodule:: sortedl1.slope
.. automodule:: sortedl1.models
:members:
:undoc-members:
:show-inheritance:
Expand Down

0 comments on commit ed9ab31

Please sign in to comment.