Skip to content

Commit c1d8618

Browse files
Sheppard, KevinSheppard, Kevin
authored andcommitted
DOC: Improve documentation
Add parallel-specific functions to docs Improve theme
1 parent 74f2874 commit c1d8618

File tree

8 files changed

+43
-9
lines changed

8 files changed

+43
-9
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
*.xml
22
*.so
33
pcg.c
4-
*.html
54
pcg-c-0.94
65
*.o
76
pcg/core-rng

doc/source/_static/style-changes.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
a{color: #180CD2;}
2+
table a:not(.btn), .table a:not(.btn) {text-decoration: none;}

doc/source/_templates/layout.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{# Import the theme's layout. #}
2+
{% extends "!layout.html" %}
3+
4+
{# Custom CSS overrides #}
5+
{% set bootswatch_css_custom = ['_static/style-changes.css'] %}

doc/source/conf.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import sys
1717
import os
1818
import shlex
19+
import sphinx_bootstrap_theme
1920

2021
# If extensions (or modules to document with autodoc) are in another directory,
2122
# add these directories to sys.path here. If the directory is relative to the
@@ -62,9 +63,9 @@
6263
# built documents.
6364
#
6465
# The short X.Y version.
65-
version = '0'
66+
version = '1.10'
6667
# The full version, including alpha/beta/rc tags.
67-
release = '.1'
68+
release = '0'
6869

6970
# The language for content autogenerated by Sphinx. Refer to documentation
7071
# for a list of supported languages.
@@ -115,17 +116,20 @@
115116

116117
# The theme to use for HTML and HTML Help pages. See the documentation for
117118
# a list of builtin themes.
118-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
119+
html_theme = 'bootstrap'
120+
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
119121

120-
if not on_rtd: # only import and set the theme if we're building docs locally
121-
import sphinx_rtd_theme
122-
html_theme = 'sphinx_rtd_theme'
123-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
122+
#on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
123+
#
124+
#if not on_rtd: # only import and set the theme if we're building docs locally
125+
# import sphinx_rtd_theme
126+
# html_theme = 'sphinx_rtd_theme'
127+
# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
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 = {'bootswatch_theme': 'flatly'}
129133

130134
# Add any paths that contain custom themes here, relative to this directory.
131135
#html_theme_path = []

doc/source/pcg32.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ Random generator
1616
get_state
1717
set_state
1818

19+
Parallel generation
20+
===================
21+
.. autosummary::
22+
:toctree: generated/
23+
24+
advance
1925

2026
Simple random data
2127
==================

doc/source/pcg64.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ Random generator
1616
get_state
1717
set_state
1818

19+
Parallel generation
20+
===================
21+
.. autosummary::
22+
:toctree: generated/
23+
24+
advance
1925

2026
Simple random data
2127
==================

doc/source/xorshift1024.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ Random generator
1616
get_state
1717
set_state
1818

19+
Parallel generation
20+
===================
21+
.. autosummary::
22+
:toctree: generated/
23+
24+
jump
1925

2026
Simple random data
2127
==================

doc/source/xorshift128.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ Random generator
1616
get_state
1717
set_state
1818

19+
Parallel generation
20+
===================
21+
.. autosummary::
22+
:toctree: generated/
23+
24+
jump
1925

2026
Simple random data
2127
==================

0 commit comments

Comments
 (0)