-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
ReadtheDocs cannot parse tables in markdown #4466
Comments
This is a problem with sphinx and markdown file, here you can see some solutions readthedocs/recommonmark#3 readthedocs/recommonmark#103, or maybe you can consider writing your docs using reStructuredText. |
Thank you for you suggestions. But I cannot get the issue solved. I don't know what files are needed or how to configure the Admin in ReadtheDocS. Some says that the setup.py is needed or the requirements.txt is needed. I am not sure how to handle this. Could you help me on this ? Thanks |
@stsewd I don't know what files are needed or how to configure the Admin in ReadtheDocS. Some says that the setup.py is needed or the requirements.txt is needed. I am not sure how to handle this. Could you help me on this ? Thanks |
You can use the admin interface of your project to specify a requirements.txt file or use a yaml file https://docs.readthedocs.io/en/latest/yaml-config.html#requirements-file |
Thank you for your quick turnaround. But I still cannot solve my issue. The major issue is that I have many tables in md files, but these tables cannot be parsed. If you could give me a real example about what files are needed and how to configure these file, then I think I can figure out. Thanks |
In the related issue, there is a suggestion about using https://github.com/ryanfox/sphinx-markdown-tables, you may want to read those instructions |
@ I have read these instructions and did as the guide told. But the tables are still not parsed |
@stsewd Thanks |
I think you need to add a |
This should help too https://docs.readthedocs.io/en/latest/guides/specifying-dependencies.html |
@stsewd Could you please check my project and provide a reqirement.txt which is configured and ready to use? Thank you for your support. |
@stsewd |
I read your documentation on the website. It seems that the backend will read the conf.py file by default. But in this way, the table conversion is not supported. So, I tried to configure the Advanced Setting, but got stuck in it. In Advanced Setting, when I clikc the option 'Install your project inside a virtualenv using setup.py install', I have to input the requirement.txt file below the option. |
You need to create a
The link to the docs explains how to setup rtd to use the requirements.txt file.
I think that is a problem with the sphinx extension that does the markdown supports, sphinx is mainly focused in reStructuredText, you also have mkdocs, which does support markdown. BTW, your |
@stsewd |
I think you may not need a |
I just now tried to input the requirements.txt file without selecting the conf.py. But it did not work. |
@stsewd I just now tried to input the requirements.txt file without selecting the conf.py. But it did not work. |
You don't need to mock |
@stsewd Do you mean that I should delete the following codes? from unittest.mock import MagicMock class Mock(MagicMock): MOCK_MODULES = ['pygtk', 'gtk', 'gobject', 'argparse', 'numpy', 'pandas','sphinx_markdown_tables'] |
I'm not sure if your project needs to mock the other packages, but you only need to delete the |
Hi man, finally, it works! Thank you so much! By the way, if you want to know anything about China, please do not hesitate to ask me. I am a technical writer in Beijing, China. If you come to China in the near future, please contact me, I must buy a dinner. Phone number : +86 13671352506 |
haha, glad that it works! I don't have plans to go to China in the near future, but who knows, I'll keep it in mind, thanks! |
@wilsonyou how did you manage to get this working? |
@anvithks Hi, you can refer to the following link : https://github.com/bumoproject/bumo-docs-cn |
@wilsonyou thank you. I managed to get it to work. |
readthedocs/readthedocs.org#4466 Perhaps just this file will make all the types of markdown tables work. Here's hoping!
Details
I build my file from github to readthedocs but found the tables in markdown files cannot be parsed.
Could you please give an effective way to solve the issue.
This is my project address:
https://github.com/wilsonyou/hopeone
this is location for the build
https://hopeone.readthedocs.io/en/latest/generating-addresses.html
If you can provide an easy-to-understand method to solve this problem, I would really appreciate.
The text was updated successfully, but these errors were encountered: