Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
100 views

I am writing some Sphinx documentation with the Furo style. My index.rst file has: .. toctree:: :maxdepth: 4 Bounds for :math:`|\zeta(s)|` <Art06.rst> Size of :math:`L(1,\chi)` <...
Olivier Ramaré's user avatar
0 votes
1 answer
103 views

I am tasked creating accessible documentation (PDF UA) from rst. The idea was to use DocumentMetadata to enable tagging in general with something like a caption or :alt: to achieve this. However I ...
Niklas Maurer's user avatar
3 votes
1 answer
105 views

I'm working with Sphinx to transform reStructuredText (rst) documents to HTML. I've read documentation (primarily Sphinx's rST primer and Docutils rST documentation) and need clarification on the ...
StoneThrow's user avatar
  • 6,455
3 votes
1 answer
90 views

I have a GitHub Actions workflow setup with Sphinx and some extensions for document generation. I was wondering if there is any way to set up a docstring such that Sphinx will generate in superscript, ...
Kepler7894i's user avatar
1 vote
0 answers
64 views

I am already familiar with :param name: description. I am asking a different question. There are contexts in which I want to mention (as opposed to describe) a function/method parameter within a ...
Jeffrey Goldberg's user avatar
1 vote
1 answer
84 views

I have a variable defined in conf.py that holds the version and I use it everywhere else in my sphinx documentation with |version| with no issue. However it doesn't work for the versionadded ...
Anina7's user avatar
  • 103
1 vote
1 answer
136 views

The following table: .. The 'widths' is an attempt to enlarge the first row. The behavior stays the same without it. .. list-table:: :widths: 75 10 15 :header-rows: 1 * - Init system ...
user13840624's user avatar
0 votes
0 answers
52 views

I use Sphinx (Python 3.13.3) and use the 'gettext' builder to create '.pot'/'.po' files. Certain cells in a . csv-table:: should not be translated (e.g. registry keys, enum values), but they may occur ...
user30607080's user avatar
0 votes
0 answers
129 views

I'm making a sphinx web page to post work reports, mostly plotly HTML charts. I used .. raw:: html to add the graphs into my .rst file. Now, for better visualization purposes, I'm grouping my charts ...
Ramiro's user avatar
  • 49
1 vote
0 answers
48 views

I am setting up a document structure such that I have everything in one main document, then using the .. only:: directive, but able to generate project specific versions by selectively choosing what ...
Sandy's user avatar
  • 11
1 vote
1 answer
61 views

I have a simple table of content like that: .. toctree:: self doc/windows doc/macos doc/linux I want to set the title of that table, but I can't find anywhere how to do it. I have ...
tony_merguez's user avatar
0 votes
0 answers
62 views

I have a project with this structure: model_monitoring/ |-docs/ |-src/ | |-model_monitoring/ | |-class_name1/ | |-__init__.py | |-class_name1.py | |-class_name2/ | |-__init__.py |...
Donato Santacroce - Credem Est's user avatar
0 votes
1 answer
51 views

I would like to insert/embed an image from my local file system into a RhodeCode pull request comment (to aid in providing code feedback). RhodeCode uses a markup syntax/parser called reStructuredText ...
SeanTwomey's user avatar
2 votes
2 answers
58 views

I have a problem with Sphinx/Docutils not recognizing the end of a nested list of bullet points. Code follows. It has been extracted from a much larger document: .. rst-class:: level4 level Editor ---...
Jonathan's user avatar
  • 2,937
0 votes
1 answer
80 views

I am using Sphinx to generate documentation. I have few (<10) folders with a lot of (>50) generated rST files that contain descriptions, but the labels and references are not unique between ...
user29828787's user avatar
3 votes
1 answer
266 views

I have some documentation built with Sphinx, and I want my scaled images (figures) to behave the same as unscaled figures. For example, a figure declared as .. figure:: images/manual_exposure1.png ...
Douglas B's user avatar
  • 853
1 vote
1 answer
113 views

When using reStructuredText in Sphinx, how can I have optional list items using the only directive? As an example: foo bar: - a - b .. only:: Internal - c - d The problem with above is that it ...
kotakotakota's user avatar
0 votes
1 answer
196 views

I am using Sphinx with the ReadTheDocs theme (sphinx_rtd_theme), and I need to reduce the font size of a specific table while keeping other tables unchanged. I tried using: .. list-table:: Issues &...
PeetsB's user avatar
  • 73
0 votes
1 answer
106 views

I put figures in a grid using sphinx-design and I would need multiple lines captions that have a specific layout, like certain items placed at the beginning of a new line. I decided to place the ...
Manuel Yguel's user avatar
0 votes
1 answer
33 views

I have the following structure to be rendered as documentation index.rst: .. toctree:: :maxdepth: 2 :caption: Feature Family feature/modules.rst .. toctree:: :maxdepth: 2 :caption: ...
Akshit's user avatar
  • 11
1 vote
2 answers
188 views

According to Docutils, double backticks around text is equivalent to the :literal: role: https://docutils.sourceforge.io/docs/ref/rst/roles.html#literal They show an example that these are equivalent: ...
dachary's user avatar
  • 61
0 votes
1 answer
215 views

So I'm attempting to fix the warnings in an existing project, containing license.rst: License ======= .. include:: ../LICENSE.txt where LICENSE.txt has this structure: Copyright ... ... provided ...
MyNameIsTrez's user avatar
0 votes
0 answers
54 views

If I have this tree file in sphinx-doc project directory _build index.rst ... foo.rst foo/myimage.jpeg foo/myvideo.webm I want to display in foo.rst image foo/myimage.jpeg which links to foo/myvideo....
somenxavier's user avatar
  • 1,617
0 votes
0 answers
86 views

I would like to know if there is a way to add multiple index entries in Sphinx. In the tutorials, I've found that only two entries can be added using the format .. index:: main_entry; sub_entry ...
tarcine's user avatar
0 votes
1 answer
153 views

I am developing a project in Python that has hundreds of functions. A lot of them have a parameter called verbosity, which I describe the following way: """ verbosity: int, optional ...
RomainP's user avatar
  • 296
0 votes
1 answer
87 views

If I make a Restructured Text list with letters as the bullets, this works fine for the first 26 letters "a.".."z.". However, when I extend the list to 27 items or more, such as ...
Gladclef's user avatar
  • 729
1 vote
1 answer
143 views

This came to be, because I am currently changing our old documentation to a new one using sphinx. The old documentation used t2t files in which I have a lot of references written with capital letters ...
Banone's user avatar
  • 55
0 votes
1 answer
79 views

I have a couple of dozen .rst files that are all loaded from a main index.rst file via .. include: file.rst. Now I want to restructure the TOC and move some files onto a different headline level - but ...
cweiske's user avatar
  • 31.4k
0 votes
2 answers
61 views

With this RST file: .. cssclass:: myclass .. _important: Something really important -------------------------- ...and this call: sphinx-build -C ./ ./html ./index.rst ...the following HTML results: ...
Wallace's user avatar
  • 18.1k
4 votes
2 answers
357 views

I want to write a simple line as below in my Sphinx reST document: To write the line using :math: flag: We know that :math:`A \to B \vdash A \to \forall x B`, provided that :math:`x` is not free in :...
showkey's user avatar
  • 435
-1 votes
1 answer
76 views

Suppose I have: class Hello: """An example class.""" world: str """This is the only field on :py:class:`Hello`.""" It is documented ...
bzm3r's user avatar
  • 4,684
0 votes
0 answers
58 views

I'm creating an operations manual for a restaurant using Sphinx and RST, that has entries for various recipes. The recipes are currently in a Google sheet, that is mostly maintained by other people. I ...
Zach's user avatar
  • 79
1 vote
1 answer
1k views

I would like to preface that I am a complete beginner to Sphinx documentation. That being said, I have had immense difficulties trying to troubleshoot this issue. I am trying to use the "furo&...
Katrina Mosquera's user avatar
0 votes
1 answer
96 views

I‘ve defined a replacement in conf.py: rst_prolog = """ .. |tools| replace:: Something """ Below is the rst file, the replacement is effective in line 1, but doesn't ...
user3522188's user avatar
0 votes
1 answer
89 views

When I click a toctree (navbar) item, the page "jumps/jolts" to the toc element instead of the top of the new page as if it's aligning with the toctree anchor (instead of the body h1 or just ...
dylanh724's user avatar
  • 1,063
2 votes
1 answer
73 views

I am building documentation using Sphinx. I have the following in a rst file: .. math:: {{a^{{p_1}{p_2}}_{{p_3}{p_4}}}{a^{␣\,{p_5}}_{{p_6}{p_7}}}} While building, this produces "Math input ...
Ajay's user avatar
  • 67
1 vote
2 answers
293 views

What I am trying to achieve is to (manually) insert a html-class to certain elements using sphinx' python domain For example I have this string: Lore Ipsum :py:mod:`dataclasses` Which results in: ...
Daraan's user avatar
  • 5,245
-2 votes
1 answer
144 views

I have a single index.rst file that has the contents of my README.rst included using the .. include:: directive. When rendering this using make latexpdf or using the .. contents:: directive in html, ...
null-and-void's user avatar
0 votes
1 answer
114 views

I am trying to document certain :param and want to give examples like :param mapper_matrix: lookup table with columns ref_col, ref_col_2 and value.\n |**Example:** | ...
dermoritz's user avatar
  • 13.1k
0 votes
1 answer
187 views

I have the following restructuredText for a page header, for which I want a logo image on the left and a document title aligned right: .. header:: .. container:: twocol .. container:: ...
Superdooperhero's user avatar
0 votes
1 answer
300 views

This questions attempts to extend the code from Jason S (Thanks, Jason), found here: Docutils: traverse sections?. Original from Jason S import docutils def doctree_resolved(app, doctree, docname): ...
lino's user avatar
  • 51
0 votes
1 answer
120 views

I have link in a rst file that refers to a local file, which will be in a path dependant on user name, such as: `The link to my file <file:///C:\\Users\\USERNAME\\AppData\\Local\\Apps\\myfile.html&...
PiWi's user avatar
  • 345
0 votes
1 answer
1k views

How can I tabulate information in my rst files? Or, how do I preserve the white space I already inserted in my text? Such that when I render the rst file (via Sphinx) to HTML the tabular formatting is ...
oz613's user avatar
  • 1
0 votes
1 answer
155 views

I'm trying to reference the sphinx |version| in a monospace block (and no spaces around it) in my .rst file like this... You can install foo_project library with: ``pip install -U foo_project==|...
Mike Pennington's user avatar
0 votes
1 answer
63 views

I've got a .rst that has both Ruby and Python coding examples in it, but I am now in the position where I need to dyanimcally change the examples, so I'm setting the code example to an external file (...
PfunnyGuy's user avatar
  • 958
0 votes
1 answer
188 views

These are the errors I am getting from Sphinx: Unexpected indentation: [{ "resource": "/c:/Users/User/Documents/GitHub/MIMIC/mimic/model_simulate/base_model.py", "owner":...
Pedro Fontanarrosa's user avatar
0 votes
1 answer
84 views

I am trying to understand how to create a custom Sphinx extension which can be executed only when creating XML. I would like to put a custom RST directive .. mycustom:: and output a consequent XML ...
PeppeA82's user avatar
0 votes
0 answers
73 views

I'm trying to add programmatically-rendered diagrams to my reStructuredText documentation, which I render to HTML with Sphinx. Per https://lpn-doc-sphinx-primer-devel.readthedocs.io/extensions/...
StoneThrow's user avatar
  • 6,455
0 votes
1 answer
96 views

Context After creating a root_dir/docs/source/conf.py that automatically generates the .rst files for each .py file in the root_dir/src (and root_dir/test/) directory (and its children), I am ...
a.t.'s user avatar
  • 2,931
1 vote
1 answer
76 views

The following is a block of reStructuredText that defines a "Main Section" and two subsections, each with a sentence of content. Main Section ============ This is some main section content. ...
StoneThrow's user avatar
  • 6,455

1
2 3 4 5
27