New Sphinx theme and better docs
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
author = 'decentral1se'
|
||||
copyright = '2019, decentral1se'
|
||||
html_static_path = ['_static']
|
||||
html_theme = 'alabaster'
|
||||
html_theme = 'sphinx_rtd_theme'
|
||||
master_doc = 'index'
|
||||
project = 'hypercore-crypto'
|
||||
templates_path = ['_templates']
|
||||
|
13
documentation/source/example.rst
Normal file
13
documentation/source/example.rst
Normal file
@ -0,0 +1,13 @@
|
||||
.. _example:
|
||||
|
||||
*******
|
||||
Example
|
||||
*******
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from hypercore_crypto import key_pair, sign, verify
|
||||
|
||||
public_key, secret_key = key_pair()
|
||||
signature = sign(b'hello world', secret_key)
|
||||
verify(message, signature, public_key)
|
@ -1,12 +1,13 @@
|
||||
.. include:: ../../README.rst
|
||||
:end-before: _documentation
|
||||
|
||||
Table of Contents
|
||||
*****************
|
||||
:end-before: _documentation
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:hidden:
|
||||
|
||||
install
|
||||
upgrade
|
||||
example
|
||||
modules-api
|
||||
other-impls
|
||||
contribute
|
||||
|
@ -1,7 +1,11 @@
|
||||
.. _other-implementations:
|
||||
|
||||
*********************
|
||||
Other Implementations
|
||||
*********************
|
||||
|
||||
* https://github.com/mafintosh/hypercore-crypto
|
||||
* https://github.com/datcxx/hypercore-crypto
|
||||
* `mafintosh/hypercore-crypto`_
|
||||
* `datcxx/hypercore-crypto`_
|
||||
|
||||
.. _mafintosh/hypercore-crypto: https://github.com/mafintosh/hypercore-crypto
|
||||
.. _datcxx/hypercore-crypto: https://github.com/datcxx/hypercore-crypto
|
||||
|
7
documentation/source/upgrade.rst
Normal file
7
documentation/source/upgrade.rst
Normal file
@ -0,0 +1,7 @@
|
||||
*******
|
||||
Upgrade
|
||||
*******
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ pip install --upgrade hypercore-crypto
|
Reference in New Issue
Block a user