Skip to content

Commit 052ccc6

Browse files
authored
Merge pull request #18 from CalebBell/master
Fix sidebara theme in new sphinx version
2 parents 980e160 + 85e0ee6 commit 052ccc6

File tree

9 files changed

+66
-40
lines changed

9 files changed

+66
-40
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ package-lock.json
5959
._*
6060
_*
6161
!_custom_build/
62+
!docs/_templates/
63+
!docs/_static/
6264
.Spotlight-V100
6365
.Trashes
6466
ehthumbs.db

.readthedocs.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ sphinx:
2222

2323
python:
2424
install:
25-
- requirements: requirements_docs.txt
26-
- method: setuptools
25+
- method: pip
2726
path: .
27+
extra_requirements:
28+
- docs

docs/_static/custom.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* Fix for Sphinx issue #11000: nature theme sidebar overflow with autodoc names */
2+
/* See: https://github.com/sphinx-doc/sphinx/issues/11000 */
3+
4+
/* Increase sidebar width to accommodate longer names */
5+
div.documentwrapper div.bodywrapper {
6+
margin-left: 250px;
7+
}
8+
9+
div.document div.sphinxsidebar {
10+
width: 250px;
11+
}
12+
13+
/* Add scrollbar for overflowing content */
14+
div.sphinxsidebarwrapper div {
15+
overflow: auto;
16+
}

docs/_templates/localtoc.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{# Custom local TOC template with depth limit #}
2+
{%- if display_toc %}
3+
<div>
4+
<h3><a href="{{ pathto(root_doc)|e }}">{{ _('Table of Contents') }}</a></h3>
5+
{{ toctree(maxdepth=1, collapse=False, includehidden=True) }}
6+
</div>
7+
{%- endif %}

docs/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@
181181
# so a file named "default.css" will overwrite the builtin "default.css".
182182
html_static_path = ["_static"]
183183

184+
# Custom CSS files
185+
html_css_files = ["custom.css"]
186+
184187
# Add any extra paths that contain custom files (such as robots.txt or
185188
# .htaccess) here, relative to this directory. These files are copied
186189
# directly to the root of the documentation.

docs/ht.rst

Lines changed: 0 additions & 25 deletions
This file was deleted.

docs/index.rst

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,40 @@ Among the tasks this library can be used for are:
4444
:alt: Zendo
4545
:target: https://zenodo.org/badge/latestdoi/48963057
4646

47-
Contents:
47+
Module Contents:
4848

4949
.. toctree::
50+
:maxdepth: 1
51+
:caption: Tutorial
52+
5053
tutorial
51-
modules
54+
55+
.. toctree::
56+
:maxdepth: 1
57+
:caption: API
58+
59+
ht.air_cooler
60+
ht.boiling_flow
61+
ht.boiling_nucleic
62+
ht.boiling_plate
63+
ht.condensation
64+
ht.conduction
65+
ht.conv_external
66+
ht.conv_free_immersed
67+
ht.conv_free_enclosed
68+
ht.conv_internal
69+
ht.conv_jacket
70+
ht.conv_packed_bed
71+
ht.conv_plate
72+
ht.conv_supercritical
73+
ht.conv_tube_bank
74+
ht.conv_two_phase
75+
ht.core
76+
ht.hx
77+
ht.insulation
78+
ht.numba
79+
ht.radiation
80+
ht.vectorized
5281

5382

5483
Installation

docs/modules.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/tutorial.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ heat transfer coefficient, the Nusselt number. The 'dimensional' heat transfer c
1212
.. math::
1313
h = \frac{k\cdot \text{Nu}}{L}
1414
15-
Design philosophy
15+
Design Philosophy
1616
-----------------
1717
Like all libraries, this was developed to scratch my own itches. Since its
1818
public release it has been found useful by many others, from students across
@@ -136,7 +136,7 @@ of the object and the wavelength to be considered.
136136
>>> blackbody_spectral_radiance(T=800., wavelength=4E-6)
137137
1311694129.7430933
138138

139-
Heat exchanger sizing
139+
Heat Exchanger Sizing
140140
---------------------
141141

142142
There are three popular methods of sizing heat exchangers. The log-mean temperature
@@ -150,7 +150,7 @@ supports the most types of heat exchangers; its form always requires the UA
150150
term to be guessed however.
151151

152152

153-
LMTD correction factor method
153+
LMTD Correction Factor Method
154154
-----------------------------
155155

156156
The simplest method, the log-mean temperature difference correction factor method,
@@ -193,7 +193,7 @@ provided.
193193
39.75251118049003
194194

195195

196-
Effectiveness-NTU method
196+
Effectiveness-NTU Method
197197
------------------------
198198
This method uses the formula :math:`Q=\epsilon C_{min}(T_{h,i}-T_{c,i})`. The main
199199
complication of this method is calculating effectiveness `epsilon`, which

0 commit comments

Comments
 (0)