Skip to content

Commit

Permalink
Change doc organization to diataxis approach
Browse files Browse the repository at this point in the history
  • Loading branch information
KybernetikJo committed Jan 18, 2024
1 parent 396f287 commit ffb0916
Show file tree
Hide file tree
Showing 20 changed files with 297 additions and 184 deletions.
4 changes: 2 additions & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# 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
45 changes: 0 additions & 45 deletions doc/check_names.py

This file was deleted.

37 changes: 0 additions & 37 deletions doc/create_names_for_reference.py

This file was deleted.

4 changes: 2 additions & 2 deletions doc/make.bat
100755 → 100644
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: 1 addition & 5 deletions doc/conf.py → doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@

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

import os
import sys
sys.path.insert(0, os.path.abspath('../slycot'))

import subprocess
subprocess.run(["python", "check_names.py"])

master_doc = "index"
from datetime import date
project = 'Slycot'
copyright = f'{date.today().year}, Slycot Developers'
Expand All @@ -29,7 +26,6 @@

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


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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
**********************
Contributing to Slycot
**********************
.. this page is referenced from the front page but it's unnecessary as a navigation section for now.
:orphan:

Contributing to Slycot
======================

Development process and tools
=============================
-----------------------------

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>`_.
You should be familiar with following topics:
Expand All @@ -17,13 +19,12 @@ You should be familiar with following topics:
- `f2py <https://numpy.org/devdocs/f2py/index.html>`_

numpydoc
========
--------

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

F2PY
====
----

Slycot heavily relias on `F2PY <https://numpy.org/devdocs/f2py/index.html>`_.
`F2PY`_ is currently a part of `NumPy <http://www.numpy.org>`_.
Slycot heavily relias on `F2PY <https://numpy.org/devdocs/f2py/index.html>`_, which is currently a part of `NumPy <http://www.numpy.org>`_.
10 changes: 0 additions & 10 deletions doc/source/dev/index.rst

This file was deleted.

1 change: 0 additions & 1 deletion doc/source/examples/ab13dd_nb.ipynb

This file was deleted.

10 changes: 0 additions & 10 deletions doc/source/examples/ad13dd_example.rst

This file was deleted.

21 changes: 0 additions & 21 deletions doc/source/examples/index.rst

This file was deleted.

12 changes: 12 additions & 0 deletions doc/source/explanation/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. this page is referenced from the front page but it's unnecessary as a navigation section for now.
:orphan:

Inspect
=======

.. toctree::
:maxdepth: 1

inspect_slycot
inspect_slicot_slycot
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit ffb0916

Please sign in to comment.