mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-01 03:00:13 -04:00
Clean up the included fluid rst files a bit
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -99,10 +99,11 @@ List of Fluids
|
||||
--------------
|
||||
|
||||
.. note::
|
||||
You can click on the fluid name to get more information about the fluid
|
||||
You can click on the fluid name to get more information about the fluid, or click on a bracketed reference to be taken to the reference for the fluid
|
||||
|
||||
.. csv-table:: All the fluids included in CoolProp
|
||||
:header-rows: 1
|
||||
:widths: 40, 10, 10, 10, 10, 10
|
||||
:file: PurePseudoPure.csv
|
||||
|
||||
References
|
||||
@@ -112,8 +113,5 @@ References
|
||||
:filter: docname in docnames
|
||||
:style: unsrt
|
||||
|
||||
|
||||
.. toctree::
|
||||
:hidden:
|
||||
|
||||
fluids/index
|
||||
|
||||
.. include:: fluidstoc.rst
|
||||
|
||||
@@ -6,7 +6,7 @@ import CoolProp
|
||||
web_dir = os.path.abspath(os.path.join(os.path.dirname(__file__),'..'))
|
||||
root_dir = os.path.abspath(os.path.join(web_dir, '..'))
|
||||
csvfile = os.path.join(web_dir,'fluid_properties','PurePseudoPure.csv')
|
||||
indexfile = os.path.join(web_dir,'fluid_properties','fluids', 'index.rst')
|
||||
indexfile = os.path.join(web_dir,'fluid_properties', 'fluidstoc.rst')
|
||||
|
||||
class Dossier:
|
||||
def __init__(self):
|
||||
@@ -78,4 +78,4 @@ with open(csvfile,'w') as fp:
|
||||
with open(indexfile,'w') as fp:
|
||||
fp.write('.. toctree::\n :hidden:\n\n')
|
||||
for index, row in df.iterrows():
|
||||
fp.write(' ' + row['name'] + '.rst\n')
|
||||
fp.write(' fluids/' + row['name'] + '.rst\n')
|
||||
|
||||
Reference in New Issue
Block a user