Clean up the included fluid rst files a bit

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-11-18 00:02:02 -05:00
parent 58758ce22d
commit 37a63e7de2
2 changed files with 6 additions and 8 deletions

View File

@@ -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

View File

@@ -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')