Skip to content

Commit

Permalink
Merge pull request #2 from xmnlab/master
Browse files Browse the repository at this point in the history
Add rtd theme and xnd.io visual identity.
  • Loading branch information
skrah committed Jul 26, 2018
2 parents 4376206 + 2856cc3 commit 6214a16
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 7 deletions.
1 change: 1 addition & 0 deletions doc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
4 changes: 2 additions & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ BUILDDIR = build
default: html

html:
sphinx-build -b html -d build/doctrees . build/html
${SPHINXBUILD} -b html -d build/doctrees . build/html

doctest:
sphinx-build -b doctest -d build/doctrees . build/html
${SPHINXBUILD} -b doctest -d build/doctrees . build/html

clean:
rm -rf $(BUILDDIR)/*
7 changes: 7 additions & 0 deletions doc/_static/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.wy-side-nav-search {
background-color: #e9ecef;
}

.wy-side-nav-search>div.version {
color: #333333;
}
2 changes: 2 additions & 0 deletions doc/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{% extends "!layout.html" %}
{% set css_files = css_files + ["_static/style.css"] %}
48 changes: 43 additions & 5 deletions doc/conf.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,64 @@
import sys, os, docutils


extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.doctest']
extensions = [
'sphinx.ext.intersphinx',
'sphinx.ext.doctest',
'sphinx.ext.extlinks'
]

source_suffix = '.rst'
master_doc = 'index'
project = 'ndtypes'
project = 'Plures'
copyright = '2017-2018, Plures Project'
version = 'v0.2.0dev3'
release = 'v0.2.0dev3'
exclude_patterns = ['doc', 'build']
pygments_style = 'sphinx'

html_static_path = ['_static']
templates_path = ['_templates']

primary_domain = 'py'
add_function_parentheses = False

html_theme = "sphinx_rtd_theme"
html_theme_path = ["_themes", ]

html_theme_options = {
'canonical_url': 'https://xnd.io/',
'analytics_id': '',
'logo_only': True,
'display_version': True,
'prev_next_buttons_location': 'bottom',
# Toc options
'collapse_navigation': True,
'sticky_navigation': True,
'navigation_depth': 4,
'includehidden': True,
'titles_only': False,
}

html_context = {
"display_github": False, # Add 'Edit on Github' link instead of 'View page source'
"last_updated": True,
"commit": False,
}

html_show_sourcelink = False

extlinks = {
'issue': ('https://github.com/plures/xnd/issues/%s', 'GH#'),
'pr': ('https://github.com/plures/xnd/pull/%s', 'GH#')
}

html_logo = "images/xndlogo.png"


def setup(app):
app.add_crossref_type('topic', 'topic', 'single: %s',
docutils.nodes.strong)
app.add_crossref_type(
'topic', 'topic', 'single: %s', docutils.nodes.strong
)
app.add_javascript("copybutton.js")



Binary file added doc/images/xndlogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sphinx
sphinx_rtd_theme

0 comments on commit 6214a16

Please sign in to comment.