Skip to content

Commit ce55a72

Browse files
authored
Documentation & adjustments (#48)
Documentation for API's and methods --------- Signed-off-by: Alexander Piskun <[email protected]>
1 parent 54b3800 commit ce55a72

32 files changed

+615
-106
lines changed

.github/workflows/analysis-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
branches: [main]
1414
paths:
1515
- '.github/workflows/analysis-coverage.yml'
16-
- 'pillow_heif/*.*'
16+
- 'nc_py_api/*.*'
1717
- 'tests/**'
1818
- 'setup.*'
1919
- 'pyproject.toml'

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## [0.0.26 - 2023-0x-xx]
5+
## [0.0.26 - 2023-07-xx]
66

77
### Added
88

9-
- First Examples.
109
- More documentation.
1110
- First `Notifications` APIs.
1211

12+
### Changed
13+
14+
- Reworked `User Status API`
15+
- Reworked return type for `weather_status.get_location`
16+
1317
## [0.0.25 - 2023-07-25]
1418

1519
### Added

docs/Nextcloud.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.. py:currentmodule:: nc_py_api.nextcloud
2+
3+
Nextcloud
4+
=========
5+
6+
The two main classes provided by the library for working with the Nextcloud.
7+
8+
All required functionality is incorporated in them, they contains all other classes required to work with the Nextcloud.
9+
10+
Client
11+
------
12+
13+
.. autoclass:: Nextcloud
14+
:inherited-members:
15+
:members:
16+
17+
18+
Application
19+
-----------
20+
21+
.. autoclass:: NextcloudApp
22+
:inherited-members:
23+
:members:

docs/Options.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.. _options:
2+
3+
``Currently, this section is `under construction` and will be changed in the near future.``
4+
5+
Options
6+
-------
7+
8+
.. autodata:: nc_py_api.options.XDEBUG_SESSION
9+
.. autodata:: nc_py_api.options.TIMEOUT
10+
.. autodata:: nc_py_api.options.TIMEOUT_DAV
11+
.. autodata:: nc_py_api.options.DAV_URL_SUFFIX
12+
.. autodata:: nc_py_api.options.VERIFY_NC_CERTIFICATE

docs/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
# Default is False. You can activate this mode temporarily using the -n command-line
5858
# switch.
5959
nitpicky = True
60+
nitpick_ignore_regex = [(r"py:class", r"starlette\.requests\.Request")]
61+
62+
autodoc_member_order = "bysource"
6063

6164

6265
def setup(app):

docs/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Have a great time with Python and Nextcloud!
2727
.. toctree::
2828
:maxdepth: 1
2929

30+
Nextcloud
31+
Options
3032
reference/index.rst
3133
benchmarks/AppEcosystem.rst
3234

docs/reference/Apps.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. py:currentmodule:: nc_py_api.apps
2+
3+
Applications Management API
4+
---------------------------
5+
6+
.. autoclass:: AppAPI
7+
:members:
8+
9+
.. autoclass:: ExAppInfo
10+
:members:

docs/reference/constants.rst renamed to docs/reference/Constants.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
Constants
44
=========
55

6+
.. autoclass:: ApiScope
7+
:members:
8+
9+
.. autoclass:: LogLvl
10+
:members:
11+
612
.. autoclass:: SharePermissions
713
:members:
814

docs/reference/Exceptions.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. py:currentmodule:: nc_py_api.exceptions
2+
3+
Exceptions
4+
==========
5+
6+
.. autoclass:: NextcloudException
7+
:members:
8+
9+
.. autoclass:: NextcloudExceptionNotFound
10+
:members:

docs/reference/Session.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
1+
.. py:currentmodule:: nc_py_api._session
2+
3+
Session Structures
4+
==================
5+
6+
.. autoclass:: ServerVersion
7+
:members:
8+
9+
.. autoclass:: nc_py_api.theming.ThemingInfo
10+
:members:
11+
12+
.. autoclass:: AppConfig
13+
:members:
14+
115
Sessions Internal
216
=================
317

418
Currently Session API is private, and not exposed.
519

6-
.. autoclass:: nc_py_api._session.NcSessionBasic
20+
.. autoclass:: NcSessionBasic
721
:members:

0 commit comments

Comments
 (0)