Skip to content

Commit caabebd

Browse files
committed
Updating layout and templates
1 parent 34a5fcf commit caabebd

8 files changed

+53
-43
lines changed

AUTHORS.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
==========
2+
Developers
3+
==========
4+
5+
- Quantum Resistant Ledger Developers

AUTHORS.rst

-5
This file was deleted.

CHANGES.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
=========
2+
Changelog
3+
=========
4+
5+
Version 0.X
6+
===========
7+
8+
- DESCRIBE IMPORTANT CHANGES
9+

CHANGES.rst

-10
This file was deleted.

docs/authors.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
.. _authors:
2-
.. include:: ../AUTHORS.rst
2+
.. include:: ../AUTHORS.md

docs/changes.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
.. _changes:
2-
.. include:: ../CHANGES.rst
2+
.. include:: ../CHANGES.md

docs/conf.py

+33-18
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
# add these directories to sys.path here. If the directory is relative to the
2222
# documentation root, use os.path.abspath to make it absolute, like shown here.
2323
# sys.path.insert(0, os.path.abspath('.'))
24+
import sphinx_rtd_theme
25+
from recommonmark.parser import CommonMarkParser
26+
from recommonmark.transform import AutoStructify
27+
2428
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
2529
if on_rtd:
2630
import inspect
@@ -57,7 +61,7 @@
5761
templates_path = ['_templates']
5862

5963
# The suffix of source filenames.
60-
source_suffix = '.rst'
64+
source_suffix = ['.rst', '.md']
6165

6266
# The encoding of source files.
6367
# source_encoding = 'utf-8-sig'
@@ -120,15 +124,16 @@
120124

121125
# The theme to use for HTML and HTML Help pages. See the documentation for
122126
# a list of builtin themes.
123-
html_theme = 'bizstyle'
127+
html_theme = "sphinx_rtd_theme"
124128

125129
# Theme options are theme-specific and customize the look and feel of a theme
126130
# further. For a list of options available for each theme, see the
127131
# documentation.
128-
# html_theme_options = {}
132+
html_theme_options = {
133+
}
129134

130135
# Add any paths that contain custom themes here, relative to this directory.
131-
# html_theme_path = []
136+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
132137

133138
# The name for this set of Sphinx documents. If None, it defaults to
134139
# "<project> v<release> documentation".
@@ -201,25 +206,24 @@
201206
# Output file base name for HTML help builder.
202207
htmlhelp_basename = 'core-doc'
203208

204-
205209
# -- Options for LaTeX output --------------------------------------------------
206210

207211
latex_elements = {
208-
# The paper size ('letterpaper' or 'a4paper').
209-
# 'papersize': 'letterpaper',
212+
# The paper size ('letterpaper' or 'a4paper').
213+
# 'papersize': 'letterpaper',
210214

211-
# The font size ('10pt', '11pt' or '12pt').
212-
# 'pointsize': '10pt',
215+
# The font size ('10pt', '11pt' or '12pt').
216+
# 'pointsize': '10pt',
213217

214-
# Additional stuff for the LaTeX preamble.
215-
# 'preamble': '',
218+
# Additional stuff for the LaTeX preamble.
219+
# 'preamble': '',
216220
}
217221

218222
# Grouping the document tree into LaTeX files. List of tuples
219223
# (source start file, targematplot name, title, author, documentclass [howto/manual]).
220224
latex_documents = [
221-
('index', 'user_guide.tex', u'QRL Documentation',
222-
u'The Quantum Resistant Ledger', 'manual'),
225+
('index', 'user_guide.tex', u'QRL Documentation',
226+
u'The Quantum Resistant Ledger', 'manual'),
223227
]
224228

225229
# The name of an image file (relative to this directory) to place at the top of
@@ -247,9 +251,20 @@
247251
intersphinx_mapping = {
248252
'sphinx': ('http://sphinx.pocoo.org', None),
249253
'python': ('http://docs.python.org/' + python_version, None),
250-
# 'matplotlib': ('http://matplotlib.sourceforge.net', None),
251-
# 'numpy': ('http://docs.scipy.org/doc/numpy', None),
252-
# 'sklearn': ('http://scikit-learn.org/stable', None),
253-
# 'pandas': ('http://pandas.pydata.org/pandas-docs/stable', None),
254-
# 'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
254+
# 'matplotlib': ('http://matplotlib.sourceforge.net', None),
255+
# 'numpy': ('http://docs.scipy.org/doc/numpy', None),
256+
# 'sklearn': ('http://scikit-learn.org/stable', None),
257+
# 'pandas': ('http://pandas.pydata.org/pandas-docs/stable', None),
258+
# 'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
255259
}
260+
261+
source_parsers = {
262+
'.md': CommonMarkParser,
263+
}
264+
265+
266+
def setup(app):
267+
app.add_config_value('recommonmark_config', {
268+
'enable_eval_rst': True,
269+
}, True)
270+
app.add_transform(AutoStructify)

docs/index.rst

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
===
2-
QRL
2+
Quantum Resistant Ledger
33
===
44

55
This is the documentation of **QRL**.
66

77
.. note::
88

99
This is the main page of your project's `Sphinx <http://sphinx-doc.org/>`_
10-
documentation. It is formatted in `reStructuredText
11-
<http://sphinx-doc.org/rest.html>`__. Add additional pages by creating
12-
rst-files in ``docs`` and adding them to the `toctree
13-
<http://sphinx-doc.org/markup/toctree.html>`_ below. Use then
14-
`references <http://sphinx-doc.org/markup/inline.html>`__ in order to link
15-
them from this page, e.g. :ref:`authors <authors>` and :ref:`changes`.
10+
documentation.
1611

1712
It is also possible to refer to the documentation of other Python packages
1813
with the `Python domain syntax
@@ -48,7 +43,8 @@ Contents
4843
Authors <authors>
4944
Changelog <changes>
5045
Module Reference <api/modules>
51-
46+
Blog <https://medium.com/the-quantum-resistant-ledger>
47+
QRL Whitepaper <https://github.com/theQRL/Whitepaper/blob/master/QRL_whitepaper.pdf>
5248

5349
Indices and tables
5450
==================

0 commit comments

Comments
 (0)