Skip to content

Commit 7bd444d

Browse files
committed
Change doc organization to diataxis approach
1 parent c08b251 commit 7bd444d

File tree

20 files changed

+297
-184
lines changed

20 files changed

+297
-184
lines changed

doc/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# from the environment for the first two.
66
SPHINXOPTS ?=
77
SPHINXBUILD ?= sphinx-build
8-
SOURCEDIR = .
9-
BUILDDIR = _build
8+
SOURCEDIR = source
9+
BUILDDIR = build
1010

1111
# Put it first so that "make" without argument is like "make help".
1212
help:

doc/check_names.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

doc/create_names_for_reference.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

doc/make.bat

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ REM Command file for Sphinx documentation
77
if "%SPHINXBUILD%" == "" (
88
set SPHINXBUILD=sphinx-build
99
)
10-
set SOURCEDIR=.
11-
set BUILDDIR=_build
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
1212

1313
%SPHINXBUILD% >NUL 2>NUL
1414
if errorlevel 9009 (

doc/conf.py renamed to doc/source/conf.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55

66
# -- Project information -----------------------------------------------------
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
8-
98
import os
109
import sys
1110
sys.path.insert(0, os.path.abspath('../slycot'))
1211

13-
import subprocess
14-
subprocess.run(["python", "check_names.py"])
15-
12+
master_doc = "index"
1613
from datetime import date
1714
project = 'Slycot'
1815
copyright = f'{date.today().year}, Slycot Developers'
@@ -29,7 +26,6 @@
2926

3027
print("version %s, release %s" % (version, release))
3128

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
**********************
2-
Contributing to Slycot
3-
**********************
1+
.. this page is referenced from the front page but it's unnecessary as a navigation section for now.
2+
3+
:orphan:
44

5+
Contributing to Slycot
6+
======================
57

68
Development process and tools
7-
=============================
9+
-----------------------------
810

911
The development process is currently described on the `slycot github repo <https://github.com/python-control/Slycot>`_ and the `slycot github wiki <https://github.com/python-control/Slycot/wiki>`_.
1012
You should be familiar with following topics:
@@ -17,13 +19,12 @@ You should be familiar with following topics:
1719
- `f2py <https://numpy.org/devdocs/f2py/index.html>`_
1820

1921
numpydoc
20-
========
22+
--------
2123

2224
Slycot uses numpydoc for the docstring style in order to provide support the Numpy docstring format in sphinx,
2325
`see numpydoc example <https://numpydoc.readthedocs.io/en/latest/example.html>`_.
2426

2527
F2PY
26-
====
28+
----
2729

28-
Slycot heavily relias on `F2PY <https://numpy.org/devdocs/f2py/index.html>`_.
29-
`F2PY`_ is currently a part of `NumPy <http://www.numpy.org>`_.
30+
Slycot heavily relias on `F2PY <https://numpy.org/devdocs/f2py/index.html>`_, which is currently a part of `NumPy <http://www.numpy.org>`_.

doc/source/dev/index.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

doc/source/examples/ab13dd_nb.ipynb

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/source/examples/ad13dd_example.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

doc/source/examples/index.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)