mirror of
https://github.com/python-escpos/python-escpos
synced 2025-08-24 09:03:34 +00:00
modernize and cleanup documentation (#542)
* disable system packages on rtd * install pycups on rtd * enable cups binding in documentation * document CupsPrinter * fix formatting * revise methods and installation * revise user/printers * revise raspi section * further revise
This commit is contained in:
@@ -1,23 +1,32 @@
|
||||
Contributing
|
||||
============
|
||||
|
||||
This project is open to any kind of contribution. You can help with improving the documentation, adding fixes to the
|
||||
code, providing test cases in code or as a description or just spreading the word. Please feel free to create an
|
||||
issue or pull request.
|
||||
In order to reduce the amount of work for everyone please try to adhere to good practice.
|
||||
:Last Reviewed: 2023-08-10
|
||||
|
||||
The pull requests and issues will be prefilled with templates. Please fill in your information where applicable.
|
||||
This project is open to any kind of contribution.
|
||||
You can help with improving the documentation, adding fixes to the
|
||||
code, providing test cases in code or as a description or just
|
||||
spreading the word.
|
||||
Please feel free to create an issue or pull request.
|
||||
In order to reduce the amount of work for everyone please try
|
||||
to adhere to good practice.
|
||||
|
||||
This project uses `semantic versioning <https://semver.org/>`_ and tries to adhere to the proposed rules as
|
||||
well as possible.
|
||||
The pull requests and issues will be prefilled with templates.
|
||||
Please fill in your information where applicable.
|
||||
|
||||
This project uses `semantic versioning <https://semver.org/>`_
|
||||
and tries to adhere to the proposed rules as well as possible.
|
||||
|
||||
Author-list
|
||||
-----------
|
||||
|
||||
This project keeps a list of authors. This can be auto-generated by calling `./doc/generate-authors.sh`.
|
||||
When contributing the first time, please include a commit with the output of this script in place.
|
||||
This project keeps a list of authors.
|
||||
This can be auto-generated by calling `./doc/generate-authors.sh`.
|
||||
When contributing the first time, please include a commit with
|
||||
the output of this script in place.
|
||||
|
||||
When you change your username or mail-address, please also update the `.mailmap` and the authors-list.
|
||||
When you change your username or mail-address, please also
|
||||
update the `.mailmap` and the authors-list.
|
||||
You can find a good documentation on the mapping-feature in the
|
||||
`documentation of git-shortlog <https://git-scm.com/docs/git-shortlog#_mapping_authors>`_.
|
||||
|
||||
@@ -33,31 +42,42 @@ Please format your contributions with black, otherwise they will be rejected.
|
||||
|
||||
GIT
|
||||
^^^
|
||||
The master-branch contains the main development of the project. A release to PyPi is marked with a tag
|
||||
corresponding to the version. Issues are closed when they have been resolved by merging into the master-branch.
|
||||
When you have a change to make, begin by creating a new branch from the HEAD of `python-escpos/master`.
|
||||
The master-branch contains the main development of the project.
|
||||
A release to PyPi is marked with a tag corresponding to the version.
|
||||
Issues are closed when they have been resolved by merging
|
||||
into the master-branch.
|
||||
When you have a change to make, begin by creating a new branch
|
||||
from the HEAD of `python-escpos/master`.
|
||||
|
||||
Please try to group your commits into logical units. If you need to tidy up your branch, you can make use of a
|
||||
git feature called an 'interactive rebase' before making a pull request. A small, self-contained change-set is
|
||||
easier to review, and improves the chance of your code being merged.
|
||||
Please also make sure that before creating your PR, your branch is rebased on a recent commit or you merged a recent
|
||||
commit into your branch. This way you can ensure that your PR is without merge conflicts.
|
||||
Please try to group your commits into logical units.
|
||||
If you need to tidy up your branch, you can make use of a
|
||||
git feature called an 'interactive rebase' before making a pull request.
|
||||
A small, self-contained change-set is easier to review, and
|
||||
improves the chance of your code being merged.
|
||||
Please also make sure that before creating your PR, your branch
|
||||
is rebased on a recent commit or you merged a recent
|
||||
commit into your branch.
|
||||
This way you can ensure that your PR is without merge conflicts.
|
||||
|
||||
Docstrings
|
||||
^^^^^^^^^^
|
||||
This project tries to have a good documentation.
|
||||
Please add a docstring to every method and class. Have a look at existing methods and classes for the style.
|
||||
Please add a docstring to every method and class.
|
||||
Have a look at existing methods and classes for the style.
|
||||
We use basically standard rst-docstrings for Sphinx.
|
||||
|
||||
Test
|
||||
^^^^
|
||||
Try to write tests whenever possible. Our goal for the future is 100% coverage.
|
||||
You can copy the structure from other testcases. Please remember to adapt the docstrings.
|
||||
Try to write tests whenever possible.
|
||||
Our goal for the future is 100% coverage.
|
||||
You can copy the structure from other testcases.
|
||||
Please remember to adapt the docstrings.
|
||||
|
||||
Further reading
|
||||
^^^^^^^^^^^^^^^
|
||||
For further best practices and hints on contributing please see the
|
||||
`contribution-guide <https://www.contribution-guide.org/>`_. Should there be any contradictions between this guide
|
||||
`contribution-guide <https://www.contribution-guide.org/>`_.
|
||||
Should there be any contradictions between this guide
|
||||
and the linked one, please stick to this text.
|
||||
Aside from that feel free to create an issue or write an email if anything is unclear.
|
||||
|
||||
|
Reference in New Issue
Block a user