Skip to content

Commit

Permalink
Make documentation pages wider and fix links in the list of eo tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomislijepcevic committed Jul 16, 2018
1 parent 9a0a69a commit 1adbe61
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/source/_static/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.wy-nav-content {
/* max-width: none; */
max-width: 1200px !important;
}
4 changes: 4 additions & 0 deletions docs/source/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% extends "!layout.html" %}
{% block extrahead %}
<link href="{{ pathto("_static/style.css", True) }}" rel="stylesheet" type="text/css">
{% endblock %}
7 changes: 4 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ['_static']
html_static_path = ['_static']

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
Expand Down Expand Up @@ -235,7 +235,7 @@ def get_eotasks():

for eotask_cls in get_eotasks():
eopackage = eotask_cls.__module__.split('.')[1]
eotask = eotask_cls.__name__
eotask = eotask_cls.__module__ + '.' + eotask_cls.__name__

if eopackage not in eopackage_tasks:
eopackage_tasks[eopackage] = []
Expand All @@ -256,6 +256,7 @@ def get_eotasks():
eotasks.sort()

for eotask in eotasks:
f.write('\t' + eotask + '\n')
# tilde is used to show only the class name without the module
f.write('\t~' + eotask + '\n')

f.write('\n')

0 comments on commit 1adbe61

Please sign in to comment.