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

Getting 404 on Module Index page #4465

Closed
mertyildiran opened this Issue Aug 3, 2018 · 9 comments

Comments

Projects
None yet
2 participants
@mertyildiran

mertyildiran commented Aug 3, 2018

Details

Expected Result

On my local machine, I'm building the documentation with:

sphinx-quickstart
sphinx-apidoc -f -o source/ ../dragonfire/
make html

and Module Index page is working perfectly fine:

Actual Result

But when I build the documentation on Read the Docs side, I get 404 on Module Index page: https://dragonfire.readthedocs.io/en/latest/py-modindex.html

I tried to remove non-ASCII characters with:
DragonComputer/Dragonfire@e45a11e
DragonComputer/Dragonfire@b1818c4
and removed Markdown support with:
DragonComputer/Dragonfire@2a31dc1

but none of them solved the issue.

@stsewd stsewd added the Support label Aug 3, 2018

@stsewd

This comment has been minimized.

Show comment
Hide comment
@stsewd
Member

stsewd commented Aug 3, 2018

Sorry but I don't see the file in your repo https://github.com/DragonComputer/Dragonfire/tree/master/docs/source

@mertyildiran

This comment has been minimized.

Show comment
Hide comment
@mertyildiran

mertyildiran Aug 3, 2018

make html generates it by looking up for docstrings in the whole project:

I did what you said in here but did not change anything.

mertyildiran commented Aug 3, 2018

make html generates it by looking up for docstrings in the whole project:

I did what you said in here but did not change anything.

@stsewd

This comment has been minimized.

Show comment
Hide comment
@stsewd

stsewd Aug 3, 2018

Member

RTD execute the sphinx-build command only, it doesn't execute the make file nor the sphinx-apidodc command. See #1139

Member

stsewd commented Aug 3, 2018

RTD execute the sphinx-build command only, it doesn't execute the make file nor the sphinx-apidodc command. See #1139

@mertyildiran

This comment has been minimized.

Show comment
Hide comment
@mertyildiran

mertyildiran Aug 3, 2018

@stsewd I removed the build directory with rm -rf build/ and ran:

sphinx-build -b html source/ build/

It gave me exactly the same result with make html. I don't understand your point?

mertyildiran commented Aug 3, 2018

@stsewd I removed the build directory with rm -rf build/ and ran:

sphinx-build -b html source/ build/

It gave me exactly the same result with make html. I don't understand your point?

@stsewd

This comment has been minimized.

Show comment
Hide comment
@stsewd

stsewd Aug 3, 2018

Member

You executed this command sphinx-apidoc -f -o source/ ../dragonfire/, which places the output inside the source/ dir

Member

stsewd commented Aug 3, 2018

You executed this command sphinx-apidoc -f -o source/ ../dragonfire/, which places the output inside the source/ dir

@mertyildiran

This comment has been minimized.

Show comment
Hide comment
@mertyildiran

mertyildiran Aug 3, 2018

@stsewd sphinx-apidoc -f -o source/ ../dragonfire/ generates the .rst files according to my module structure right? So what's the relevance of sphinx-apidoc to generating .html documents from those .rst files?

mertyildiran commented Aug 3, 2018

@stsewd sphinx-apidoc -f -o source/ ../dragonfire/ generates the .rst files according to my module structure right? So what's the relevance of sphinx-apidoc to generating .html documents from those .rst files?

@stsewd

This comment has been minimized.

Show comment
Hide comment
@stsewd

stsewd Aug 3, 2018

Member

The modindex or py-modindex is still missing there, not sure how apidoc works here, can you check if this happens in a new virtualenv executing the same steps that rtd does?

Member

stsewd commented Aug 3, 2018

The modindex or py-modindex is still missing there, not sure how apidoc works here, can you check if this happens in a new virtualenv executing the same steps that rtd does?

@mertyildiran

This comment has been minimized.

Show comment
Hide comment
@mertyildiran

mertyildiran Aug 3, 2018

@stsewd please look at this repository for example: https://github.com/goldsmith/Wikipedia/tree/master/docs/source

It does not have any modindex.rst file, py-modindex.rst file or anything like that but it has http://wikipedia.readthedocs.io/en/latest/py-modindex.html available in its documentation.

mertyildiran commented Aug 3, 2018

@stsewd please look at this repository for example: https://github.com/goldsmith/Wikipedia/tree/master/docs/source

It does not have any modindex.rst file, py-modindex.rst file or anything like that but it has http://wikipedia.readthedocs.io/en/latest/py-modindex.html available in its documentation.

@mertyildiran

This comment has been minimized.

Show comment
Hide comment
@mertyildiran

mertyildiran Aug 3, 2018

@stsewd I realized that the build was actually failing due to some missing dependencies and/or post-install scripts(when I noticed the "View raw" link on Read the Docs):

WARNING: autodoc: failed to import module 'dragonfire.api'; the following exception was raised:
No module named 'nltk'
WARNING: autodoc: failed to import module 'dragonfire.arithmetic'; the following exception was raised:
No module named 'nltk'
WARNING: autodoc: failed to import module 'dragonfire.config'; the following exception was raised:
No module named 'nltk'
...

So after dealing some problems like excessive memory consumption, mocking out Python C extension, including Markdown into reStructuredText, etc. and after 23 commits/builds I finally achieved what I want:

DragonComputer/Dragonfire@67068f1

https://dragonfire.readthedocs.io/en/latest/py-modindex.html (Working 👍 )

Thanks for the help! 🏆

mertyildiran commented Aug 3, 2018

@stsewd I realized that the build was actually failing due to some missing dependencies and/or post-install scripts(when I noticed the "View raw" link on Read the Docs):

WARNING: autodoc: failed to import module 'dragonfire.api'; the following exception was raised:
No module named 'nltk'
WARNING: autodoc: failed to import module 'dragonfire.arithmetic'; the following exception was raised:
No module named 'nltk'
WARNING: autodoc: failed to import module 'dragonfire.config'; the following exception was raised:
No module named 'nltk'
...

So after dealing some problems like excessive memory consumption, mocking out Python C extension, including Markdown into reStructuredText, etc. and after 23 commits/builds I finally achieved what I want:

DragonComputer/Dragonfire@67068f1

https://dragonfire.readthedocs.io/en/latest/py-modindex.html (Working 👍 )

Thanks for the help! 🏆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment