-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local build of docs differs from web documentation #32
Comments
So it works for me locally; I notice two differences in our workflow:
If I add
|
Updating Sphinx to v1.7.0 made no difference to what occurs on my end. Uninstalling and re-installing netcdftime in develop mode with pip install -e also made no difference. |
What version of Cython do you have installed? |
Cython version is 0.27.3. |
Despite Sphinx saying otherwise, date2num and num2date are in fact in the netcdftime namespace.
|
Actually, that was incorrect. They were only in the namespace because I was running ipython in the netcdftime directory. This is what happens in my home directory:
|
I tried doing it with Python 2.7 rather than 3.6...but it still works just fine for me:
I'm out of ideas as to what the problem is...though the fact that your |
@mcgibbon do you happen to have If that's the case, for now I recommend creating a separate environment for editing / building the |
Ah, yes, that would do it. Another option for testing is:
|
That's almost certainly it. However, that raises an important concern - if a user has netCDF4 installed, does that mean they can't use this netcdftime stand-alone package? Does the netCDF4 package have all the functionality of this package? |
Great. Closing this issue. |
The next release (1.3.2) of netcdf4-python will have netcdftime removed. |
I'm looking to submit a documentation PR, but am having trouble getting documentation to build locally with the same result as the web docs.
Steps I am following:
python setup.py build
python setup.py install
cd docs && make html
Result I expect: The docs in _build/html should be the same as on the web.
Result I get: During build, this is the log:
In the resulting html docs, date2num and num2date are missing.
Further to all this, if I add
netcdftime.datetime
to the list of automodule members on netcdftime, I get the docstring "alias of DatetimeProlepticGregorian", rather than the docstring I get in IPython:The text was updated successfully, but these errors were encountered: