Skip to content

Commit

Permalink
Merge pull request #101 from dh-tech/feature/rename-formatter-converter
Browse files Browse the repository at this point in the history
Rename formatters submodule and classes to converters
  • Loading branch information
rlskoeser authored Nov 8, 2024
2 parents 2b26e45 + 37d8623 commit ee26ed1
Show file tree
Hide file tree
Showing 26 changed files with 398 additions and 286 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@
}

# turn on relative links; make sure both github and sphinx links work
myst_enable_extensions = ["linkify"]
# myst_enable_extensions = ["linkify"] # disabling because not found
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ undate documentation
:caption: Contents:

readme
undate
undate/index
CONTRIBUTING
DEVELOPER_NOTES
CONTRIBUTORS
Expand Down
11 changes: 0 additions & 11 deletions docs/undate.rst

This file was deleted.

30 changes: 30 additions & 0 deletions docs/undate/converters.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Converters
==========

.. automodule:: undate.converters.base
:members:
:undoc-members:

ISO8601
-------

.. automodule:: undate.converters.iso8601
:members:
:undoc-members:

Extended Date-Time Format (EDTF)
--------------------------------

.. automodule:: undate.converters.edtf.converter
:members:
:undoc-members:

.. automodule:: undate.converters.edtf.parser
:members:
:undoc-members:

.. transformer is more of an internal, probably doesn't make sense to include
.. .. automodule:: undate.converters.edtf.transformer
.. :members:
.. :undoc-members:
22 changes: 22 additions & 0 deletions docs/undate/core.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Undate objects
==============

undates and undate intervals
------------------------------

.. autoclass:: undate.undate.Undate
:members:

.. autoclass:: undate.undate.UndateInterval
:members:

date, timedelta, and date precision
-----------------------------------

.. autoclass:: undate.date.Date
:members:

.. autoclass:: undate.date.Timedelta
:members:

.. autoclass:: undate.date.DatePrecision
9 changes: 9 additions & 0 deletions docs/undate/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
API documentation
=================

.. toctree::
:maxdepth: 2
:caption: Contents:

core
converters
Loading

0 comments on commit ee26ed1

Please sign in to comment.