Skip to content

Commit

Permalink
Update docs structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Kulynych committed Mar 24, 2018
1 parent d4bc93e commit 4e121fb
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 18 deletions.
1 change: 1 addition & 0 deletions docs/source/_static/hippiepug.svg
15 changes: 15 additions & 0 deletions docs/source/_templates/layout.html
@@ -0,0 +1,15 @@
{% extends "!layout.html" %}
{% block footer %} {{ super() }}

<style>
/* Sidebar header (and topbar for mobile) */
.wy-side-nav-search, .wy-nav-top {
background: #62d112;
}
/* Sidebar */
.wy-nav-side {
background: #231f1b;
}
</style>
{% endblock %}

6 changes: 1 addition & 5 deletions docs/source/api.rst
@@ -1,35 +1,31 @@
***
API
***

=====
Chain
=====

.. automodule:: hippiepug.chain
:members:

====
Tree
====

.. automodule:: hippiepug.tree
:members:

================
Basic containers
================

.. automodule:: hippiepug.struct
:members:

=====
Store
=====

.. automodule:: hippiepug.store
:members:

=============
Serialization
=============

Expand Down
25 changes: 20 additions & 5 deletions docs/source/conf.py
Expand Up @@ -20,6 +20,8 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('../../'))

from hippiepug.meta import __version__, __author__, description

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down Expand Up @@ -50,16 +52,16 @@
# General information about the project.
project = u'hippiepug'
copyright = u'2018, Bogdan Kulynych, EPFL SPRING Lab'
author = u'Bogdan Kulynych'
author = __author__

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = u'1.0'
version = __version__
# The full version, including alpha/beta/rc tags.
release = u'1.0'
release = __version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -225,7 +227,7 @@
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'hippiepug.tex', u'hippiepug Documentation',
u'Bogdan Kulynych', 'manual'),
author, 'manual'),
]

# The name of an image file (relative to this directory) to place at the top of
Expand Down Expand Up @@ -269,7 +271,7 @@
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'hippiepug', u'hippiepug Documentation',
author, 'hippiepug', 'hippiepug library',
author, 'hippiepug', description,
'Miscellaneous'),
]

Expand All @@ -284,3 +286,16 @@

# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False

# -- Readthedocs ---------------------------------------------------------


html_theme_options = {
# 'logo_only': False,
'display_version': False,
'collapse_navigation': False,
'sticky_navigation': True,
'navigation_depth': 2,
}


4 changes: 4 additions & 0 deletions docs/source/index.rst
@@ -1,3 +1,7 @@
.. image:: _static/hippiepug.svg
:width: 150px
:align: right

---------
hippiepug
---------
Expand Down
5 changes: 5 additions & 0 deletions hippiepug/meta.py
@@ -0,0 +1,5 @@
__version__ = '0.1'
__author__ = 'Bogdan Kulynych'

description = ('Sublinear-traversal blockchains and efficient key-value '
'Merkle trees with a flexible storage backend.')
11 changes: 3 additions & 8 deletions setup.py
Expand Up @@ -2,7 +2,7 @@
import os

from setuptools import setup

from hippiepug.meta import __author__, __version__, description

install_requires = [
'six>=1.11.0',
Expand All @@ -25,22 +25,17 @@
]


description = ('Sublinear-traversal blockchains and efficient key-value '
'Merkle trees with a flexible storage backend.')


here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
long_description = f.read()



setup(
name='hippiepug',
version=0.1,
version=__version__,
description=description,
long_description=long_description,
author='Bogdan Kulynych',
author=__author__,
author_email='hello@bogdankulynych.me',
packages=['hippiepug'],
license="AGPL",
Expand Down

0 comments on commit 4e121fb

Please sign in to comment.