read-the-docs

PyQt 4 import in read-the-docs

ⅰ亾dé卋堺 提交于 2019-12-07 11:12:52
问题 I am currently in the process of getting the documentation of my code online via read-the-docs, however, getting read-the-docs to process my PyQt4 dependent modules seems problematic. My project has the following structure: pkg pkg/__init__.py pkg/modules/ pkg/modules/__init__.py pkg/modules/somemodules.py pkg/gui/__init__.py pkg/gui/someGUImodules.py I am using sphinx-autodoc to build a html representation of the docstring of the different modules. On my local machine everything works fine,

use a private git repository with read the docs

眉间皱痕 提交于 2019-12-07 06:02:57
问题 I installed read-the-docs to produce documentation starting from projects on a private git repository which needs user/password authentication. When import manually a project, how can I put user and password to allow read-the-docs to clone the repo? Many thanks, Max 回答1: I've recently faced the same problem. There's one more question like this here Why can't I clone a git repo for readthedocs to build the documentation? where the author gave his own conclusion about the problem. As it's

How to pre-process source files while a Sphinx run?

僤鯓⒐⒋嵵緔 提交于 2019-12-06 21:38:34
问题 I have set up a Sphinx documentation for my project and would like to extract doc strings for the source files and embed them into the final documentation. Unfortunately, the source file's language (VHDL) is not supported by Sphinx. There seems to be no Sphinx domain for VHDL. So my ideas is as follows: Hook into the Sphinx run and execute some Python code before Sphinx The Python codes extracts text blocks from each source file (the top-most multi-line comment block) and assembles one reST

How do I configure Read the Docs to use sphinx-autodoc-annotation?

杀马特。学长 韩版系。学妹 提交于 2019-12-06 08:19:15
I'm using sphinx-autodoc-annotation to read the function annotations in my Python code and use that to generate the appropriate expected argument types and return types. It's working great on my local machine, but I had to pip install sphinx-autodoc-annotation of course. I'm trying to generate the same documentation using Read the Docs , but it gives me an error: Could not import extension sphinx_autodoc_annotation (exception: No module named sphinx_autodoc_annotation) Is it possible to configure Read the Docs to work with sphinx-autodoc-annotation, and if so, how do I make it work? Activate

PyQt 4 import in read-the-docs

孤人 提交于 2019-12-05 16:07:07
I am currently in the process of getting the documentation of my code online via read-the-docs, however, getting read-the-docs to process my PyQt4 dependent modules seems problematic. My project has the following structure: pkg pkg/__init__.py pkg/modules/ pkg/modules/__init__.py pkg/modules/somemodules.py pkg/gui/__init__.py pkg/gui/someGUImodules.py I am using sphinx-autodoc to build a html representation of the docstring of the different modules. On my local machine everything works fine, however, since I need to mock PyQt4 on read-the-docs, I ran into the following problem: In one of my

How to hide the sidebar using Sphinx RTD theme when making htmlhelp

只谈情不闲聊 提交于 2019-12-04 04:49:59
问题 Is it possible to hide the sidebar when using Sphinx with the ReadTheDocs theme? Extending the question a bit more, can I have it include the sidebar when issuing a command: $ make html and not include it issuing a command: $ make htmlhelp without altering code? Maybe add something in the layout.html. 回答1: First of all, it is poor form to ask two questions in one post. Next time, create a separate question. For your first question, I am not sure what the option collapse_navigation actually

Sphinx: Linking to Embedded Binary Files (PDFs)

≡放荡痞女 提交于 2019-12-04 04:39:32
问题 I'm using sphinx and RST to generate some tech documentation as HTML and having issues getting a local PDF reference to work as a hyperlink. I've seen people use :download: to link to local PDFs, but I'm embedding the PDFs inside a /docs directory for reference. I don't like :download: because it doesn't display the PDF inline in the browser which requires an extra step on the users' behalf for consumption. sphinx-build -b html does not copy any files unless they are specified in config.py

Mock with submodules for ReadTheDocs

冷暖自知 提交于 2019-12-04 03:57:30
I'm trying to document a Python project with ReadTheDocs. Initially, the build process would die when it got to: from osgeo import gdal, osr I've read the rtd faq and used mock for the osgeo module that was giving me trouble. Now the build process makes it past that import but chokes on: from osgeo.gdalconst import * With this rather unhelpful error: RuntimeError: sys.path must be a list of directory names I'm completely new to using mock but I think the problem is that osgeo is a mock module and therefore does not have the submodule gdalconst . How do I get around that? Is there a way to mock

Show entire toctree in Read The Docs sidebar

99封情书 提交于 2019-12-03 11:11:43
It's my understanding the new Read The Docs theme generates the sidebar from the toctree with a depth of 2. My documentation is relatively deep, and a depth of 2 is not enough for it to be useful. How can I increase this limit, or preferably remove it entirely? If that's not reasonably possible, how can I use local ToC's instead of the global toctree? Note: The previous answer was outdated. As @Ariel notes in a comment, the maxdepth is now configurable by setting navigation_depth in html_theme_options . As per the README , change this in your project's conf.py: html_theme_options = {

Change the colors of the Sphinx Read The Docs theme?

非 Y 不嫁゛ 提交于 2019-12-03 02:08:20
I'm building documentation for my API library and I'm having readthedocs.io host the documentation, and is backed with Sphinx. I have the Read The Docs theme installed for Sphinx using pip install , and the Read the Docs website currently has the documentation running. I would like to change the colors of my documentation. I have done some searching through their GitHub repository GitHub.com and have seen some talk that editing the sass files. However, I can't seem to find where these files are located. Example of a Read The Docs with other colors Any help is appreciated! I believe the