Skip to content

Commit

Permalink
ENH, DOC: add a chanelog system
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-huberty committed Apr 16, 2024
1 parent a321c0d commit 6b74e9a
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/changes/devel.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. _current:

.. towncrier-draft-entries:: Version |release| (development)
3 changes: 3 additions & 0 deletions docs/changes/devel/6.newfeature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. _Scott Huberty: https://github.com/scott-huberty

Setup a changelog, using `towncrier <https://towncrier.readthedocs.io/en/stable/index.html>`_. by `Scott Huberty`_
16 changes: 15 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

from pathlib import Path

# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
curpath = Path(__file__).parent.resolve(strict=True)

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

Expand All @@ -18,10 +27,11 @@
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
"sphinxemoji.sphinxemoji",
"sphinxcontrib.towncrier.ext",
]

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', "changes/devel"]



Expand Down Expand Up @@ -78,3 +88,7 @@
}

numpydoc_xref_ignore = {"of", "A",}

# -- sphinxcontrib-towncrier configuration -----------------------------------

towncrier_draft_working_directory = str(curpath.parent)
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ It copies much of the EDF (EyeLink Data Format) reading code.
usage
contributing
API
roadmap
roadmap
whats_new
11 changes: 11 additions & 0 deletions docs/whats_new.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _whats_new:

What's new
==========

Changes for each version of EyelinkIO are listed below.

.. toctree::
:maxdepth: 1

./changes/devel.rst
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ strict = false

[tool.towncrier]
package = "eyelinkio"
directory = "doc/changes/devel/"
filename = "doc/changes/devel.rst"
directory = "docs/changes/devel/"
filename = "docs/changes/devel.rst"
title_format = "{version} ({project_date})"
issue_format = "`#{issue} <https://github.com/scott-huberty/eyelinkio/pulls/{issue}>`__"

Expand Down

0 comments on commit 6b74e9a

Please sign in to comment.