Skip to content

Commit c6a081d

Browse files
authored
Update docs rendering (#89)
* . * . * . * Restrict * . * v1.2.8 * Another shoul dnot release * . * 1.2.9 test * 1.2.10 test * bump * Very painful process * 1.3.0 attemped direct release to pypi * Test improvement * Docs update
1 parent 1d57d5b commit c6a081d

File tree

13 files changed

+142
-76
lines changed

13 files changed

+142
-76
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ dev/pyinstaller/build
6161
._*
6262
_*
6363
!_custom_build/
64+
!docs/_templates/
65+
!docs/_static/
6466
.Spotlight-V100
6567
.Trashes
6668
ehthumbs.db

docs/Samples/Tank.ipynb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
"cell_type": "markdown",
55
"id": "83344e81",
66
"metadata": {},
7-
"source": [
8-
"## Sample Program:\n",
9-
"\n",
10-
"Function to automatically create a representative horizontal vessel in the process industry given a volume."
11-
]
7+
"source": "## Tank Design and Weight Estimation\n\nSample program demonstrating how to automatically create a representative horizontal vessel in the process industry given a volume."
128
},
139
{
1410
"cell_type": "code",
@@ -689,4 +685,4 @@
689685
},
690686
"nbformat": 4,
691687
"nbformat_minor": 5
692-
}
688+
}

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
@@ -163,6 +163,9 @@
163163
# so a file named "default.css" will overwrite the builtin "default.css".
164164
html_static_path = ["_static"]
165165

166+
# Custom CSS files
167+
html_css_files = ["custom.css"]
168+
166169
# Add any extra paths that contain custom files (such as robots.txt or
167170
# .htaccess) here, relative to this directory. These files are copied
168171
# directly to the root of the documentation.

docs/developers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Type hints are a work in progress. After numerous years supporting old python ve
8989

9090
Supported Python Versions
9191
-------------------------
92-
Fluids targets Python 3.9 and up as well as PyPy3. Additionally, fluids has been tested by the author at various points to load in Micropython.
92+
Fluids targets Python 3.9 and up as well as PyPy3. Additionally, Fluids has been tested by the author at various points to load in Micropython.
9393

9494
Unfortunately there is no CI infrastructure for these other Python implementations.
9595
For Micropython there is no NumPy/SciPy which means there is no hope of passing the whole test suite on them either; indeed pytest won't load on any of them.
@@ -100,7 +100,7 @@ Over the years the development speed of Python and IronPython have diverged sign
100100
Although a Python 3 IronPython was released at the end of 2022, the Python version implemented (3.4) was already dropped from support by Fluids; the CI could no longer work with it.
101101
At this point it would probably be recommended to use an old version of fluids with IronPython and the library will probably fail to load in IronPython due to the use of modern syntax.
102102

103-
Micropython is designed to run on limited RAM, and fluids is too large for most microprocessors.
103+
Micropython is designed to run on limited RAM, and Fluids is too large for most microprocessors.
104104
You will likely have to copy/paste the specific parts of `fluids` you want to use on a microprocessor.
105105

106106
Packaging

docs/examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Solved Fluids Mechanics Problems
22
================================
33

4-
A collection of problems from Crane TP 410 have been solved using the fluids library.
4+
A collection of problems from Crane TP 410 have been solved using the Fluids library.
55
These are industrially relevant problems. Crane TP 410 is used extensively as a source in
6-
fluids, although often there are better correlations that are implemented and chosen as default methods.
6+
Fluids, although often there are better correlations that are implemented and chosen as default methods.
77
All problems include a description of the problems, but Crane TP 410 includes schematics that are
88
not included here. A copy can be obtained from your local library or bought `here <https://store.flowoffluids.com/Book-CraneTP410.html>`_.
99

docs/fluids.rst

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

docs/index.rst

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,46 @@ other flow meters, ejectors, relief valves, and more.
1717
Module Contents:
1818

1919
.. toctree::
20-
:maxdepth: 2
21-
20+
:maxdepth: 1
21+
:caption: Tutorial
22+
2223
tutorial.rst
23-
modules.rst
24+
25+
.. toctree::
26+
:maxdepth: 1
27+
:caption: API
28+
29+
fluids.atmosphere
30+
fluids.compressible
31+
fluids.control_valve
32+
fluids.core
33+
fluids.drag
34+
fluids.filters
35+
fluids.fittings
36+
fluids.flow_meter
37+
fluids.friction
38+
fluids.geometry
39+
fluids.jet_pump
40+
fluids.mixing
41+
fluids.numba
42+
fluids.open_flow
43+
fluids.packed_bed
44+
fluids.packed_tower
45+
fluids.particle_size_distribution
46+
fluids.piping
47+
fluids.pump
48+
fluids.safety_valve
49+
fluids.separator
50+
fluids.saltation
51+
fluids.two_phase
52+
fluids.two_phase_voidage
53+
fluids.units
54+
fluids.vectorized
55+
56+
.. toctree::
57+
:maxdepth: 1
58+
:caption: Additional Resources
59+
2460
examples.rst
2561
data.rst
2662
sample_programs.rst
@@ -68,15 +104,15 @@ To get the git version, run:
68104
Latest source code
69105
------------------
70106

71-
The latest development version of fluids's sources can be obtained at
107+
The latest development version of Fluids's sources can be obtained at
72108

73109
https://github.com/CalebBell/fluids
74110

75111

76112
Bug reports
77113
-----------
78114

79-
To report bugs, please use the fluids's Bug Tracker at:
115+
To report bugs, please use the Fluids's Bug Tracker at:
80116

81117
https://github.com/CalebBell/fluids/issues
82118

docs/modules.rst

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

0 commit comments

Comments
 (0)