1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +00:00

DOC improve the documentation

* make API-doc more legible
* improve comments in methods
This commit is contained in:
Patrick Kanzler
2016-01-05 17:30:40 +01:00
parent e5cd37bfbc
commit 8b8ca76af6
12 changed files with 289 additions and 132 deletions

View File

@@ -1,46 +0,0 @@
escpos package
==============
Submodules
----------
escpos.constants module
-----------------------
.. automodule:: escpos.constants
:members:
:undoc-members:
:show-inheritance:
escpos.escpos module
--------------------
.. automodule:: escpos.escpos
:members:
:undoc-members:
:show-inheritance:
escpos.exceptions module
------------------------
.. automodule:: escpos.exceptions
:members:
:undoc-members:
:show-inheritance:
escpos.printer module
---------------------
.. automodule:: escpos.printer
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: escpos
:members:
:undoc-members:
:show-inheritance:

10
doc/api/constants.rst Normal file
View File

@@ -0,0 +1,10 @@
Constants
---------
Module :py:mod:`escpos.constants`
.. automodule:: escpos.constants
:members:
:inherited-members:
:undoc-members:
:show-inheritance:
:member-order: bysource

10
doc/api/escpos.rst Normal file
View File

@@ -0,0 +1,10 @@
Esc/Pos
-------
Module :py:mod:`escpos.escpos`
.. automodule:: escpos.escpos
:members:
:inherited-members:
:undoc-members:
:show-inheritance:
:member-order: bysource

9
doc/api/exceptions.rst Normal file
View File

@@ -0,0 +1,9 @@
Exceptions
----------
Module :py:mod:`escpos.exceptions`
.. automodule:: escpos.exceptions
:members:
:inherited-members:
:show-inheritance:
:member-order: bysource

10
doc/api/printer.rst Normal file
View File

@@ -0,0 +1,10 @@
Printer implementations
-----------------------
Module :py:mod:`escpos.printer`
.. automodule:: escpos.printer
:members:
:inherited-members:
:undoc-members:
:show-inheritance:
:member-order: bysource

View File

@@ -25,8 +25,8 @@ sending my PayPal info so you can donate.
Thank you!
User Documentation:
-------------------
User Documentation
------------------
.. toctree::
:maxdepth: 1
@@ -39,13 +39,16 @@ User Documentation:
user/todo
user/usage
API:
----
API
---
.. toctree::
:maxdepth: 1
api
api/escpos
api/printer
api/constants
api/exceptions
Indices and tables
==================

View File

@@ -2,7 +2,8 @@
Methods
*******
.. note:: **TODO** Merge this page into the API-description.
.. note:: **TODO** Merge this page with the API-description. (Make the API-description more pretty and then
replace this with the API-description.)
Escpos class
------------

View File

@@ -21,6 +21,7 @@ Testing
~~~~~~~
* Test on many printers as possible (USB, Serial, Network)
* automate testing
Design
~~~~~~
@@ -32,4 +33,6 @@ Design
* Windows compatibility (hidapi instead libusb?)
* PDF417 support
* use something similar to the `capabilities` in escpos-php