Skip to content

Commit

Permalink
Fix missing ccs files
Browse files Browse the repository at this point in the history
  • Loading branch information
dvianello committed Jan 31, 2018
1 parent af520a2 commit 3de317e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,8 @@
# 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']

html_static_path = ['_static']

html_context = {
'css_files': [
'_static/theme_overrides.css', # override wide tables in RTD theme
],
}

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
Expand Down Expand Up @@ -192,13 +185,19 @@

source_suffix = ['.rst', '.md']
github_doc_root = 'github.com/EMBL-EBI-TSI/cloud-portal-documentation/tree/dev/doc'

def setup(app):
## Support Markdown via recommonmark
app.add_config_value('recommonmark_config', {
'url_resolver': lambda url: github_doc_root + url,
'auto_toc_tree_section': 'Contents',
}, True)
app.add_transform(AutoStructify)

## Load stylesheet to fix non wrapping text in
## tables
app.add_stylesheet("theme_overrides.css")


# -- Add rst_epilog for common replacement via | |
rst_epilog_fn = os.path.join(os.path.dirname(__file__),'epilog.rst')
Expand Down

0 comments on commit 3de317e

Please sign in to comment.