Skip to content

Commit de7d72e

Browse files
committed
Improved documentation
1 parent bfc9b56 commit de7d72e

File tree

8 files changed

+37
-144
lines changed

8 files changed

+37
-144
lines changed

docs/_static/basic.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,3 +681,23 @@ span.changed {
681681
padding: 5px;
682682
}
683683

684+
dl.class, dl.exception, dl.data, dl.function {
685+
/* background: #fbe3e4 ;*/
686+
border: 1px solid grey;
687+
border-top-style: none;
688+
border-left-style: none;
689+
border-right-style: none;
690+
/* padding: 3px;*/
691+
}
692+
693+
dt.py {
694+
background: #f8f8f8;
695+
/* border: 2px solid #aacc99;*/
696+
/* border: 2px solid #ffcccc; /*#ffd324;*/
697+
/* border: 2px solid #fbc2c4;*/
698+
border: 1px solid #e1e1e8;
699+
border-top-style: none;
700+
border-left-style: none;
701+
/* border-right-style: none; */
702+
padding: 2px 5px;
703+
}

docs/buffer.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,11 @@ data of various data type.
1313

1414
MemoryBuffer
1515
============
16-
1716
.. autoclass:: MemoryBuffer
1817

1918
Buffer factories
2019
================
21-
2220
.. autoclass:: BufferFactory
23-
24-
-------------
25-
2621
.. autoclass:: BytesBufferFactory
27-
28-
--------------
29-
3022
.. autoclass:: CTypesBufferFactory
3123

docs/changelog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ Changelog
1010
- Added internal functions `_decompose` and `_power_of_two` from stdlib `.enum` module,
1111
because they were removed in Python 3.11.
1212

13+
* `~firebird.base.protobuf` module:
14+
15+
- Use :ref:`importlib.metadata.entry_points <entry-points>` instead `pkg_resources.iter_entry_points`.
16+
17+
* Improved documentation.
18+
1319
Version 1.4.2
1420
=============
1521

docs/collections.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,12 @@ Types for type hints & annotations
4040

4141
Collections
4242
===========
43-
4443
.. autoclass:: BaseObjectCollection
45-
46-
--------
47-
4844
.. autoclass:: DataList
49-
50-
--------
51-
5245
.. autoclass:: Registry
5346

5447
Functions
5548
=========
56-
5749
.. autofunction:: make_lambda
5850

5951

docs/config.txt

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -326,107 +326,38 @@ Application Directory Scheme
326326
.. versionchanged:: 1.2.0
327327

328328
.. autoclass:: DirectoryScheme
329-
330-
-----
331-
332329
.. autoclass:: WindowsDirectoryScheme
333-
334-
-----
335-
336330
.. autoclass:: LinuxDirectoryScheme
337-
338-
-----
339-
340331
.. autoclass:: MacOSDirectoryScheme
341-
342-
-----
343-
344332
.. autofunction:: get_directory_scheme
345333

346334
Config
347335
======
348-
349336
.. autoclass:: Config
350337

351338
Options
352339
=======
353-
354340
.. autoclass:: Option
355-
356-
-----
357-
358341
.. autoclass:: StrOption
359-
360-
-----
361-
362342
.. autoclass:: IntOption
363-
364-
-----
365-
366343
.. autoclass:: FloatOption
367-
368-
-----
369-
370344
.. autoclass:: DecimalOption
371-
372-
-----
373-
374345
.. autoclass:: BoolOption
375-
376-
-----
377-
378346
.. autoclass:: ZMQAddressOption
379-
380-
-----
381-
382347
.. autoclass:: EnumOption
383-
384-
-----
385-
386348
.. autoclass:: FlagOption
387-
388-
-----
389-
390349
.. autoclass:: UUIDOption
391-
392-
-----
393-
394350
.. autoclass:: MIMEOption
395-
396-
-----
397-
398351
.. autoclass:: ListOption
399-
400-
-----
401-
402352
.. autoclass:: DataclassOption
403-
404-
-----
405-
406353
.. autoclass:: PathOption
407-
408-
-----
409-
410354
.. autoclass:: PyExprOption
411-
412-
-----
413-
414355
.. autoclass:: PyCodeOption
415-
416-
-----
417-
418356
.. autoclass:: PyCallableOption
419-
420-
-----
421-
422357
.. autoclass:: ConfigOption
423-
424-
-----
425-
426358
.. autoclass:: ConfigListOption
427359

428360
Functions
429361
=========
430-
431362
.. autofunction:: create_config
432363

docs/hooks.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -142,19 +142,9 @@ Output from sample code::
142142

143143
Functions
144144
=========
145-
146145
.. autofunction:: register_class
147-
148-
-------------
149-
150146
.. autofunction:: register_name
151-
152-
--------
153-
154147
.. autofunction:: add_hook
155-
156-
-------------
157-
158148
.. autofunction:: get_callbacks
159149

160150
Classes

docs/logging.txt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -282,43 +282,26 @@ The following program is an example of small but complex enough code that you ca
282282

283283
Enums & Flags
284284
=============
285-
286285
.. autoclass:: LogLevel
287-
288-
--------
289-
290286
.. autoclass:: BindFlag
291287

292288
Functions
293289
=========
294-
295290
.. autofunction:: bind_logger
296-
297-
----------
298-
299291
.. autofunction:: get_logger
300-
301-
--------------
302-
303292
.. autofunction:: get_logging_id
304-
305-
-------------------
306-
307293
.. autofunction:: install_null_logger
308294

309295
Logger adapter
310296
==============
311-
312297
.. autoclass:: FBLoggerAdapter
313298

314299
Logging manager
315300
===============
316-
317301
.. autoclass:: LoggingManager
318302

319303
Mixins
320304
======
321-
322305
.. autoclass:: LoggingIdMixin
323306

324307
Globals

docs/protobuf.txt

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,52 +13,31 @@ The generated `*_pb2.py` protobuf files could be registered using `register_decr
1313
or `load_registered` function. The registry could be then used to obtain information
1414
about protobuf messages or enum types, or to create message instances or enum values.
1515

16-
Functions
16+
Constants
1717
=========
18+
.. autodata:: PROTO_EMPTY
19+
.. autodata:: PROTO_ANY
20+
.. autodata:: PROTO_DURATION
21+
.. autodata:: PROTO_TIMESTAMP
22+
.. autodata:: PROTO_STRUCT
23+
.. autodata:: PROTO_VALUE
24+
.. autodata:: PROTO_LISTVALUE
25+
.. autodata:: PROTO_FIELDMASK
1826

27+
Functions
28+
=========
1929
.. autofunction:: register_decriptor
20-
21-
---------------
22-
2330
.. autofunction:: load_registered
24-
25-
-----------------
26-
2731
.. autofunction:: is_msg_registered
28-
29-
------------------
30-
3132
.. autofunction:: is_enum_registered
32-
33-
-------------
34-
3533
.. autofunction:: get_enum_type
36-
37-
-------------------
38-
3934
.. autofunction:: get_enum_value_name
40-
41-
--------------
42-
4335
.. autofunction:: create_message
44-
45-
-------------------
46-
4736
.. autofunction:: get_enum_field_type
48-
49-
-----------
50-
5137
.. autofunction:: struct2dict
52-
53-
-----------
54-
5538
.. autofunction:: dict2struct
5639

5740
Data classes
5841
============
59-
6042
.. autoclass:: ProtoMessageType
61-
62-
-------------
63-
6443
.. autoclass:: ProtoEnumType

0 commit comments

Comments
 (0)