Skip to content

Commit

Permalink
Merge pull request #637 from collective/631-docs-enhance-api
Browse files Browse the repository at this point in the history
Enhance documentation of API
  • Loading branch information
niccokunzmann committed Jun 21, 2024
2 parents b0d8e54 + ed7de76 commit 675102d
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ Breaking changes:
import icalendar
icalendar.use_pytz()
- Replaced ``pkg_resources.get_distribution`` with ``importlib.metadata`` in
``docs/conf.py`` to allow building docs on Python 3.12.

New features:

- ...
- Added missing public classes and functions to API documentation.

Bug fixes:

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ files.
.. _`BSD`: https://github.com/collective/icalendar/issues/2

Quick start guide
-----------
-----------------

``icalendar`` enables you to **create**, **inspect** and **modify**
calendaring information with Python.
Expand Down
30 changes: 30 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,38 @@ icalendar.cal
.. automodule:: icalendar.cal
:members:

icalendar.caselessdict
++++++++++++++++++++++

.. automodule:: icalendar.caselessdict
:members:

icalendar.cli
+++++++++++++

.. automodule:: icalendar.cli
:members:

icalendar.parser
++++++++++++++++

.. automodule:: icalendar.parser
:members:

icalendar.parser_tools
++++++++++++++++++++++

.. automodule:: icalendar.parser_tools
:members:

icalendar.prop
++++++++++++++

.. automodule:: icalendar.prop
:members:

icalendar.tools
+++++++++++++++

.. automodule:: icalendar.tools
:members:
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# icalendar documentation build configuration file
import pkg_resources
import importlib.metadata
import datetime
import os

Expand Down Expand Up @@ -28,7 +28,7 @@
project = 'icalendar'
this_year = datetime.date.today().year
copyright = f'{this_year}, Plone Foundation'
version = pkg_resources.get_distribution('icalendar').version
version = importlib.metadata.version('icalendar')
release = version

exclude_patterns = ['_build', 'lib', 'bin', 'include', 'local']
Expand Down
1 change: 1 addition & 0 deletions docs/credits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ icalendar contributors
- Matt Lewis <git@semiprime.com>
- Felix Stupp <felix.stupp@banananet.work>
- Bastian Wegge <wegge@crossbow.de>
- `Steve Piercy <https://github.com/stevepiercy>`_

Find out who contributed::

Expand Down
1 change: 1 addition & 0 deletions src/icalendar/prop.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
prefer) for the classes/datatypes that are used in iCalendar:
###########################################################################
# This module defines these property value data types and property parameters
4.2 Defined property parameters are:
Expand Down

0 comments on commit 675102d

Please sign in to comment.