Codebase list netcdf4-python / 2b96493a-b732-44c2-b943-1674d9a96d46/upstream create_docs.sh
2b96493a-b732-44c2-b943-1674d9a96d46/upstream

Tree @2b96493a-b732-44c2-b943-1674d9a96d46/upstream (Download .tar.gz)

create_docs.sh @2b96493a-b732-44c2-b943-1674d9a96d46/upstreamraw · history · blame

1
2
3
4
5
6
7
8
9
# Uses pdoc (https://github.com/mitmproxy/pdoc)
# to create html docs from docstrings in Cython source.
pdoc -o 'docs' netCDF4 
# use resulting docs/netCDF4/_netCDF4.html
cp docs/netCDF4.html docs/index.html
sed -i -e 's!href="../netCDF4.html!href="./index.html!g' docs/index.html
sed -i -e 's!/../netCDF4.html!/index.html!g' docs/index.html
sed -i -e 's!._netCDF4 API! API!g' docs/index.html
sed -i -e 's!netCDF4</a>._netCDF4</h1>!netCDF4</a></h1>!g' docs/index.html