Skip to content

Commit

Permalink
Merge pull request #85 from philippmeisberger/feature/read-the-docs
Browse files Browse the repository at this point in the history
API documentation on readthedocs.io
  • Loading branch information
bastianraschke authored Jan 16, 2020
2 parents 7ccd609 + 7a8bcf4 commit ea727b1
Show file tree
Hide file tree
Showing 5 changed files with 298 additions and 146 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Python library for ZFM fingerprint sensors

[![Documentation Status](https://readthedocs.org/projects/pyfingerprint/badge/?version=latest)](https://pyfingerprint.readthedocs.io/en/latest/?badge=latest)

The PyFingerprint library allows to use ZhianTec ZFM-20, ZFM-60, ZFM-70 and ZFM-100 fingerprint sensors on the Raspberry Pi or other Linux machines. Some other models like R302, R303, R305, R306, R307, R551 and FPM10A also work.

**Note:** The library is inspired by the C++ library from Adafruit Industries:
Expand Down
9 changes: 6 additions & 3 deletions doc/conf.py → docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@

import datetime
import sys
sys.path.insert(0, '../src/files/')
import os
sys.path.append(os.path.join(os.path.dirname(__name__), '../src/files/'))

import pyfingerprint

project = u'PyFingerprint'
master_doc = 'PyFingerprint'
master_doc = 'index'
author = 'Bastian Raschke <bastian.raschke@posteo.de>'
copyright = '2014-{}, {}'.format(datetime.date.today().year, author)
version = pyfingerprint.__version__
Expand All @@ -19,6 +20,8 @@
'.DS_Store'
]
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.napoleon',
]
autoclass_content = "both"
autodoc_mock_imports = ["serial"]
html_theme = "sphinx_rtd_theme"
6 changes: 2 additions & 4 deletions doc/PyFingerprint.rst → docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
PyFingerprint
=============

Python 2 and 3 library for ZFM fingerprint sensors.

.. toctree::
:maxdepth: 2

.. topic:: Abstract

Python 2 and 3 library for ZFM fingerprint sensors.

API Documentation
*****************

Expand Down
2 changes: 1 addition & 1 deletion src/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ override_dh_auto_build:
dh_auto_build

## Build API documentation
sphinx-build -b html ../doc ./build/html
sphinx-build -b singlehtml ../docs ./build/html
Loading

0 comments on commit ea727b1

Please sign in to comment.