Skip to content

Commit

Permalink
Fixing Read the Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gbayarri committed Oct 30, 2023
1 parent 1ee1cad commit 8835b18
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ sphinx:

python:
install:
- requirements: biobb_structure_utils/docs/requirements.txt
- method: pip
path: .
3 changes: 3 additions & 0 deletions biobb_structure_utils/docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# docutils==0.17.1
sphinx_rtd_theme
recommonmark
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ a:visited { color:#9e8830; }

.highlight { background: #fffae4; }

.rst-content dl:not(.docutils) dt { background: #d5f0f1; color: #29b3b5; border-top: solid 3px #29b3b5; }
.rst-content dl:not(.docutils) dt { background: #d5f0f1!important; color: #29b3b5!important; border-top: solid 3px #29b3b5!important; }
.rst-content .viewcode-link, .rst-content .viewcode-back { color: #dcbc3c; }
.rst-versions .rst-current-version { color: #29b3b5; }

Expand Down
6 changes: 3 additions & 3 deletions biobb_structure_utils/docs/source/_static/theme_overrides.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
$(document).ready(function() {
var path = '';

if($('.icon.icon-home').attr('href') == '../index.html') path = '../';
else if($('.icon.icon-home').attr('href') == '../../index.html') path = '../../';
if($('.wy-side-nav-search .icon.icon-home').attr('href') == '../index.html') path = '../';
else if($('.wy-side-nav-search .icon.icon-home').attr('href') == '../../index.html') path = '../../';

$('.icon.icon-home').html('<img src="' + path + '_static/logo.png" class="logo" alt="Logo">');
$('.wy-side-nav-search .icon.icon-home').html('<img src="' + path + '_static/logo.png" class="logo" alt="Logo">');
});
5 changes: 3 additions & 2 deletions biobb_structure_utils/docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
'sphinx.ext.napoleon',

'sphinx_rtd_theme',
'recommonmark'
]

# Using Google docstring style
Expand Down Expand Up @@ -123,7 +124,7 @@

# -- Options for HTML output ----------------------------------------------
def setup(app):
app.add_stylesheet('theme_overrides.css')
app.add_css_file('theme_overrides.css')
app.add_js_file('theme_overrides.js')


Expand Down

0 comments on commit 8835b18

Please sign in to comment.