-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from xmnlab/master
Add rtd theme and xnd.io visual identity.
- Loading branch information
Showing
7 changed files
with
57 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
|
||
|
||
|
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
sphinx | ||
sphinx_rtd_theme |