[go: up one dir, main page]

Activity for Docutils: Documentation Utilities

  • Günter Milde Günter Milde posted a comment on ticket #509

    This should be fixed in [r10227]. Could you re-try?

  • Günter Milde Günter Milde modified ticket #508

    qemu build problem after docutils update to 0.22

  • Günter Milde Günter Milde posted a comment on ticket #508

    This should be fixed in [r10227]. Could you re-try?

  • Günter Milde Günter Milde committed [r10227] on Code

    Adjustments for nested_parse().

  • Günter Milde Günter Milde committed [r10226] on Code

    rST parser: restore backwards compatibility of nested parsing.

  • Ernstkm Ernstkm modified a comment on ticket #507

    No, not a cache problem. The URL is https://www.docutils.org/rst.html. It's a live page that you can't get to except through search engine results (where it ranks highly) or having bookmarked the URL, but that live page has broken links. The broken links I'm referring to specifically are: https://www.docutils.org/docs/user/rst/quickstart.txt https://www.docutils.org/docs/user/rst/cheatsheet.txt These each result in a 404 error page from GitHub. What I'm wondering is, where would I go to help fix...

  • Ernstkm Ernstkm modified a comment on ticket #507

    No, not a cache problem. The URL is https://www.docutils.org/rst.html. It's a live page that you can't get to except through search engine results (where it ranks highly) or having bookmarked the URL, but that live page has broken links. The broken links are, specifically: https://www.docutils.org/docs/user/rst/quickstart.txt https://www.docutils.org/docs/user/rst/cheatsheet.txt These result in a 404 error page from GitHub. What I'm wondering is, where would I go to help fix this: Sourceforge or...

  • Ernstkm Ernstkm modified a comment on ticket #507

    No, not a cache problem. The URL is https://www.docutils.org/rst.html. It's a live page that you can't get to except through search engine results (where it ranks highly) or having bookmarked the URL, but that live page has broken links. The broken links are, specifically: https://www.docutils.org/docs/user/rst/quickstart.txt https://www.docutils.org/docs/user/rst/cheatsheet.txt These result in a 404 error page from GitHub. What I'm wondering is, where would I go to help fix this: Sourceforge or...

  • Ernstkm Ernstkm posted a comment on ticket #507

    No, not a cache problem. The URL is https://www.docutils.org/rst.html. It's a live page that you can't get to except through search engine results (and it ranks highly), but the live page has broken links. The broken links are, specifically: https://www.docutils.org/docs/user/rst/quickstart.txt https://www.docutils.org/docs/user/rst/cheatsheet.txt These result in a 404 error page from GitHub. What I'm wondering is, where would I go to help fix this: Sourceforge or GitHub? One project refers to https://docutils.sourceforge.io...

  • Günter Milde Günter Milde posted a comment on ticket #511

    Consider the use cases: a) A main document includes rST blocks from various different sources (other projects documentation, docstrings, ...). We cannot guarantee a consistent title style hierarchy across all inclusions and want to use a separate title style hierarchy in the included blocks. b) A main document includes chapters from other source files of the same project after an introductory section. The project uses consistent title styles in all files. We want a document-wide title style hierarchy,...

  • Günter Milde Günter Milde modified a comment on ticket #511

    assuming the included document. is complete, has a consistent title hierarchy means first title-style is top, next is 2nd asf standard use case is to include the document at a position where it's top level is one below the current in the including document e.g. section l1 ========== section l2 ---------- .. included doc section l3 ========== section l4 ---------- .. including doc section l2 ---------- is there a use case for including and setting a different level, absolute or relative ?

  • Günter Milde Günter Milde modified a comment on ticket #511

    assuming the included document. is complete, has a consistent title hierarchy means first title-style is top, next is 2nd asf standard use case is to include the document at a position where it's top level is one below the current in the including document e.g. section l1 ========== section l2 .. included doc section l3 ========== section l4 ---------- .. including doc section l2 is there a use case for including and setting a different level, absolute or relative ?

  • Günter Milde Günter Milde modified ticket #511

    Problems with nested parsing and sections.

  • engelbert gruber engelbert gruber posted a comment on ticket #511

    assuming the included document. is complete, has a consistent title hierarchy means first title-style is top, next is 2nd asf standard use case is to include the document at a position where it's top level is one below the current in the including document e.g. section l1 ========== section l2 .. included doc section l3 ========== section l4 ---------- .. including doc section l2 is there a use case for including and setting a different level, absolute or relative ? On Fri, 29 Aug 2025 at 23:25,...

  • Günter Milde Günter Milde posted a comment on ticket #511

    An alternative idea: nested parse uses the document-wide title style hierarchy if the "node" argument is left at its default value. The result of the nested parsing is directly added to the document (at the "current" node). Sections are appended according to their level.

  • Günter Milde Günter Milde committed [r10225] on Code

    Deprecate the "match_titles" argument of `states.RSTState.nested_list_parse()`.

  • Günter Milde Günter Milde committed [r10224] on Code

    More distict variable name in parsers.rst.states.RSTState.nested_list_parse().

  • Günter Milde Günter Milde committed [r10223] on Code

    New attribute to store the parent state machine of nested state machines.

  • Günter Milde Günter Milde posted a comment on ticket #511

    An idea how to fix Sphinx's "only" directive with a new internal attribute "title_style" for the nodes.section element.

  • Günter Milde Günter Milde posted a comment on ticket #511

    Element after a section from nested parsing may be invalid. parsers.rst.RSTSTate.nested_parse() with match_titles=True (i.e. support for sections) leads to an invalid document tree, if the nested block contains a section but the element following the nested block is not a section. The structure model ony allows a <section> as sibling after a <section>. An invalid doctree can be prevented if the following content is appended to the last nested section instead of its parent. The "nested" directive...

  • Günter Milde Günter Milde modified ticket #511

    Problems with nested parsing and sections.

  • Günter Milde Günter Milde modified ticket #511

    Problems with nested parsing and sections.

  • Günter Milde Günter Milde created ticket #511

    Problems with nested parsing and sections.

  • Günter Milde Günter Milde committed [r10222] on Code

    Element after a section from nested parsing may be invalid.

  • Günter Milde Günter Milde modified ticket #510

    Release date for 0.22 is in the future

  • Günter Milde Günter Milde posted a comment on ticket #510

    Thanks for the report. This is fixed in the repository. A fixup release will take some time, because of [bugs:#508] and [bugs:#509] prove tricky...

  • Günter Milde Günter Milde committed [r10221] on Code

    Use a "property" for `parsers.rst.states.RSTState.parent`.

  • Dilian Wesselinov Palauzov Dilian Wesselinov Palauzov created ticket #510

    Release date for 0.22 is in the future

  • Günter Milde Günter Milde committed [r10220] on Code

    Fix/Update tests for nested parsing with sections.

  • Günter Milde Günter Milde modified ticket #503

    LaTeX writer fails to generate "labels" for some elements with "ids".

  • Günter Milde Günter Milde posted a comment on ticket #503

    Fixed in [r10219].

  • Günter Milde Günter Milde committed [r10219] on Code

    LaTeX writer: write "label" commands for elements with "ids".

  • Günter Milde Günter Milde committed [r10218] on Code

    LaTeX writer: dont add `\phantomsection` for subtitle labels.

  • Günter Milde Günter Milde committed [r10217] on Code

    LaTeX writer: Simplify code for nested image.

  • Günter Milde Günter Milde committed [r10216] on Code

    LaTeX writer: fix anchor placement for figures, images, literal blocks, tables.

  • Günter Milde Günter Milde committed [r10215] on Code

    LaTeX writer: set anchor for math-block with target/label.

  • Günter Milde Günter Milde committed [r10214] on Code

    Documentation fixes.

  • engelbert gruber engelbert gruber committed [r10213] on Code

    version string 0.23b.dev

  • engelbert gruber engelbert gruber committed [r10212] on Code

    set path to docutils dev code

  • Günter Milde Günter Milde modified ticket #214

    Give better messages on malformed tables

  • Günter Milde Günter Milde posted a comment on ticket #214

    Fixed in [r10208]. Thank you for report and patch.

  • Günter Milde Günter Milde modified ticket #504

    errors for malformed tables do not indicate what the error is

  • Günter Milde Günter Milde posted a comment on ticket #504

    Fixed in [r10208]. Thank you for report and patch.

  • Günter Milde Günter Milde modified a comment on ticket #508

    The reason is an incompatibility of Sphinx or one of the Sphinx extensions with the new section parsing algorithm introduced in commit [r10093] with updates in [r10129], [r10131], [r10131]. The unhelpful "TypeError" is displayed because Sphinx carries on after a CRITICAL problem which leads to follow-up problems (here, self.parent beeing None instead of an Element instance). The error reported by Docutils gives some hints. Let's dissect the first message: /scratch/emulators/qemu/work/qemu-10.0.3/docs/../system/qtest.c:70:...

  • Günter Milde Günter Milde modified a comment on ticket #508

    Could you re-try with [r10197] or the attached patch if this gets a more telling log and maybe some output?

  • Günter Milde Günter Milde committed [r10211] on Code

    Better error reports for hyperlinks with embedded URI or alias.

  • Günter Milde Günter Milde committed [r10210] on Code

    latex writer: Fix/simplify footnote handling.

  • Günter Milde Günter Milde committed [r10209] on Code

    Use True/False instead of 1/0 for boolean `blank_finish`.

  • Günter Milde Günter Milde committed [r10208] on Code

    Better error reporting for table markup.

  • Günter Milde Günter Milde committed [r10207] on Code

    Simplify the determination of table opening LaTeX code.

  • Günter Milde Günter Milde committed [r10206] on Code

    rST parser: ensure that nested parsing only appends to the provided base node.

  • Günter Milde Günter Milde committed [r10205] on Code

    Test nested parsing in a directive.

  • Günter Milde Günter Milde posted a comment on ticket #508

    Good news. The remaining warnings are from a different issue (see the comment by Peter Maydell). I will do some more testing and cleanups. Then we can release a new Docutils version. Thank you for report and testing.

  • Thomas Klausner Thomas Klausner posted a comment on ticket #508

    I applied all changes since the 0.22 release to my copy (except the version bump in init.py) There are no CRITICAL errors, the section of the build looks like this: [6203/6204] Generating docs/QEMU manual with a custom command Possible precedence problem between ! and pattern match (m//) at /scratch/emulators/qemu/work/qemu-10.0.3/docs/../scripts/kernel-doc line 1597. Possible precedence problem between ! and pattern match (m//) at /scratch/emulators/qemu/work/qemu-10.0.3/docs/../scripts/kernel-doc...

  • Günter Milde Günter Milde posted a comment on ticket #508

    Could you re-try with a checkout or snapshot of [r10204] that introduces independent section title style hierarchies for nested parsing?

  • Günter Milde Günter Milde committed [r10204] on Code

    rST parser: new title-style hierarchy for nested parsing with detached base node.

  • Günter Milde Günter Milde committed [r10203] on Code

    Look for valid parent before appending a section element.

  • Günter Milde Günter Milde committed [r10202] on Code

    Fixes for the section level determination.

  • Günter Milde Günter Milde committed [r10201] on Code

    Deprecate parsers.rst.states.RSTStateMachine.memo.reporter.

  • Peter Maydell Peter Maydell posted a comment on ticket #508

    Those "possible precedence problem" warnings are from the kernel-doc perl script -- I guess that you're using a new version of Perl which emits the warnings. They shouldn't be relevant to this docutils issue, I think. (We're going to upgrade our kernel-doc script to the kernel's current one, which is a complete rewrite in Python; that will fix these warnings as a side effect.)

  • Thomas Klausner Thomas Klausner modified a comment on ticket #508

    The precedence errors are there with docutils 0.21 as well: Possible precedence problem between ! and pattern match (m//) at /scratch/emulators/qemu/work/qemu-10.0.3/docs/../scripts/kernel-doc line 1597. Possible precedence problem between ! and pattern match (m//) at /scratch/emulators/qemu/work/qemu-10.0.3/docs/../scripts/kernel-doc line 1597. Possible precedence problem between ! and pattern match (m//) at /scratch/emulators/qemu/work/qemu-10.0.3/docs/../scripts/kernel-doc line 1597. Possible...

  • Thomas Klausner Thomas Klausner posted a comment on ticket #508

    The precedence errors are there with docutils 0.21 as well: Possible precedence problem between ! and pattern match (m//) at /scratch/emulators/qemu/work/qemu-10.0.3/docs/../scripts/kernel-doc line 1597. Possible precedence problem between ! and pattern match (m//) at /scratch/emulators/qemu/work/qemu-10.0.3/docs/../scripts/kernel-doc line 1597. Possible precedence problem between ! and pattern match (m//) at /scratch/emulators/qemu/work/qemu-10.0.3/docs/../scripts/kernel-doc line 1597. Possible...

  • Günter Milde Günter Milde posted a comment on ticket #508

    Looking at docs/sphinx/kerneldoc.py, I see that it uses Docutil's RSTState.nested_parse() which (up to now) forces a consistent title style hierarchy. OTOH, quapidoc uses Sphinx's nested_parse_with_titles() that starts a new title style hierarchy. Could you check, if the remaining CRITICAL errors also show up with Docutils 0.21?

  • Günter Milde Günter Milde posted a comment on ticket #508

    I am working on a fix...

  • <REDACTED> posted a comment on ticket #508

    The docstrings in this case are not from the qapidoc sphinx extension, but from docs/sphinx/kerneldoc.py (which we have borrowed from the Linux kernel's sphinx documentation).

  • Thomas Klausner Thomas Klausner posted a comment on ticket #508

    I've now reported this to the qemu project at https://gitlab.com/qemu-project/qemu/-/issues/3077

  • Günter Milde Günter Milde modified ticket #508

    qemu build problem after docutils update to 0.22

  • Günter Milde Günter Milde posted a comment on ticket #508

    Did you check the generated HTML for missing section headings? While the build runs without crashing, there are still serious errors. Unfortunately, I cannot replicate or trace the reason. Here is what I found so far: The error is in docstrings that are collected by a Sphinx extension (qapidoc?). The error message tells, that the parser expects a consistent hierarchy of title adornment styles (i.e. sections in docstrings under/overlined with *, subsections underlined with -). Docstrings using this...

  • Chris Crawford Chris Crawford posted a comment on ticket #507

    Is it cached? --Chris On Tue, Aug 12, 2025, 21:55 Ernstkm ernstkm@users.sourceforge.net wrote: The URL https://www.docutils.org/rst.html still appears high in search engine results for "restructuredtext cheatsheet," and still contains the broken links. That appears to be hosted with GitHub Pages. Is docutils.org officially associated with this (SourceForge) project, and if so, where would I send the patch / PR if I wanted to help out? [bugs:#507] https://sourceforge.net/p/docutils/bugs/507/ renamed...

  • Ernstkm Ernstkm posted a comment on ticket #507

    The URL https://www.docutils.org/rst.html still appears high in search engine results for "restructuredtext cheatsheet," and still contains the broken links. That appears to be hosted with GitHub Pages. Is docutils.org officially associated with this (SourceForge) project, and if so, where would I send the patch / PR if I wanted to help out?

  • Günter Milde Günter Milde modified a comment on ticket #509

    In this case, the problem seems to be an incompatibility with Sphinx contrib extension "autoprogram". Can you please try with an updated repository version of Docutils? Commit [r10200] should fix it.

  • Thomas Klausner Thomas Klausner posted a comment on ticket #508

    I added the second patch (r10200) as well, and qemu still builds fine. The warnings are now: [6203/6204] Generating docs/QEMU manual with a custom command 23:12:53 [659/1913] Possible precedence problem between ! and pattern match (m//) at /scratch/emulators/qemu/work/qemu-10.0.3/docs/../scripts/kernel-doc line 1597. Possible precedence problem between ! and pattern match (m//) at /scratch/emulators/qemu/work/qemu-10.0.3/docs/../scripts/kernel-doc line 1597. Possible precedence problem between !...

  • Günter Milde Günter Milde modified a comment on ticket #508

    Yes, Docutils now checks, whether the new "self.parent" after switching the section level is valid and reports these CRITICAL system messages (downgraded to ERROR in [r10198]. However, there is still a serious problem: an incompatibility with "qapidoc" rsp sphinx.util.nodes.nested_parse_with_titles(). This should be fixed in [r10200]. Can you re-try? If it still fails, please run with a "docutils.conf" file in the project directory that sets halt_level to 3? For added robustness, I recommend that...

  • Günter Milde Günter Milde posted a comment on ticket #508

    Yes, Docutils now checks, whether the new "self.parent" after switching the section level is valid and reports these CRITICAL system messages (downgraded to ERROR in [r10198]. However, there is still a serious problem: an incompatibility with "qapidoc" rsp sphinx.util.nodes.nested_parse_with_titles(). This should be fixed in [r10200]. Can you re-try? For added robustness, I recommend that "qapidoc" switches from using sphinx.util.nodes.nested_parse_with_titles() to sphinx.util.parsing.nested_parse_to_nodes()...

  • Günter Milde Günter Milde posted a comment on ticket #509

    In this case, the problem seems to be an incompatibility with Sphinx's "autoprogram". Can you please try with an updated repository version of Docutils? Commit [r10200] should fix it.

  • Günter Milde Günter Milde committed [r10200] on Code

    Fix error/crash whith Sphinx "autoprogram" [bugs:#509].

  • Günter Milde Günter Milde committed [r10199] on Code

    Restore accidentially deleted text in doctree documentation.

  • Fabien LOISON Fabien LOISON posted a comment on ticket #200

    Ok, thank you for the answer :)

  • Günter Milde Günter Milde committed [r10198] on Code

    Relax "Unexpected section" system message from SEVERE to ERROR.

  • Günter Milde Günter Milde modified ticket #200

    Add the gemini:// URI scheme

  • Günter Milde Günter Milde posted a comment on ticket #200

    Thank you for the contribution. Unfortunately, we cannot include the patch without a change in the Docutils specification, https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#standalone-hyperlinks, which limits the supported URI schemes to the ones listed in the Official IANA Registry of URI Schemes and the W3C's Retired Index of WWW Addressing Schemes. While I don't see a "gemini" URI scheme as a particular problematic case, adding non-registered schemes should be done with special...

  • Thomas Klausner Thomas Klausner posted a comment on ticket #508

    I've tried the attached patch, and with it, the qemu build succeeds, even without the patch I included above. There are still a lot of warnings: [6203/6204] Generating docs/QEMU manual with a custom command Possible precedence problem between ! and pattern match (m//) at /scratch/emulators/qemu/work/qemu-10.0.3/docs/../scripts/kernel-doc line 1597. Possible precedence problem between ! and pattern match (m//) at /scratch/emulators/qemu/work/qemu-10.0.3/docs/../scripts/kernel-doc line 1597. Possible...

  • Günter Milde Günter Milde posted a comment on ticket #508

    Could you re-try with [r10197] or the attached patch if this gets a more telling log or and maybe some output?

  • Günter Milde Günter Milde committed [r10197] on Code

    Catch invalid node.parent when switching section levels.

  • Günter Milde Günter Milde posted a comment on ticket #508

    What is strange, though is that Sphinx' autodoc extension does not have a problem with the new section parsing algorithm. Which extension does the extraction of docstrings rsp. the combination of the docstrings into a document?

  • Günter Milde Günter Milde modified a comment on ticket #509

    This looks like the problem reported in [bugs:#508]. Could you check the Sphinx log? Do you use "autodoc" or similar extensions to extract docstrings?

  • Günter Milde Günter Milde posted a comment on ticket #508

    You are right. As also seen in [#509], the CRITICAL errors are just on top of the problem (and helped to find the reasong beeing some "docstring reading" extension (plus docstrings that include section headings) beeing incompatible with Docutils 0.22. (Unfortunately, the new section algorithm was only tested with Sphinx, not with Sphinx extensions and docstrings containing section headings.)

  • Oliver Smith Oliver Smith posted a comment on ticket #509

    Do you use "autodoc" or similar extensions to extract docstrings? Yes, we use "sphinx.ext.autodoc". Could you check the Sphinx log? This is the output from Sphinx: Running Sphinx v8.2.3 loading translations [en]... done making output directory... done Converting `source_suffix = ['.rst', '.md']` to `source_suffix = {'.rst': 'restructuredtext', '.md': 'restructuredtext'}`. myst v4.0.1: MdParserConfig(commonmark_only=False, gfm_only=False, enable_extensions=set(), disable_syntax=[], all_links_external=False,...

  • Thomas Klausner Thomas Klausner posted a comment on ticket #508

    Thank you for the analysis! When building qemu, I have the following sphinx packages installed: sphinxcontrib-applehelp-2.0.0 sphinxcontrib-devhelp-2.0.0 sphinxcontrib-htmlhelp-2.1.0 sphinxcontrib-jsmath-1.0.1 sphinxcontrib-qthelp-2.0.0 sphinxcontrib-serializinghtml-2.0.0 sphinx-8.2.3 sphinxcontrib-jquery-4.1 sphinx-rtd-theme-3.0.2 I think there might be second problem though. When I remove the whole comment that causes the CRITICAL errors, i.e. use the following diff: --- system/qtest.c.orig 2025-08-07...

  • Günter Milde Günter Milde posted a comment on ticket #509

    This looks like the problem reported in [bugs:508]. Could you check the Sphinx log? Do you use "autodoc" or similar extensions to extract docstrings?

  • Günter Milde Günter Milde posted a comment on ticket #508

    The reason is an incompatibility of Sphinx or one of the Sphinx extensions with the new section parsing algorithm introduced in commit [r10093] with updates in [r10129], [r10131], [r10131]. The unhelpful "TypeError" is displayed because Sphinx carries on after a CRITICAL problem which leads to follow-up problems (here, self.parent beeing None instead of an Element instance). The error reported by Docutils gives some hints. Let's dissect the first message: /scratch/emulators/qemu/work/qemu-10.0.3/docs/../system/qtest.c:70:...

  • Günter Milde Günter Milde committed [r10196] on Code

    More consistent and concise command line help.

  • Oliver Smith Oliver Smith created ticket #509

    regression with docutils 0.22: unsupported operand type(s) for +: 'NoneType' and 'list'

  • Günter Milde Günter Milde committed [r10195] on Code

    Test behaviour and fix documentation of rST footnotes.

  • Thomas Klausner Thomas Klausner created ticket #508

    qemu build problem after docutils update to 0.22

  • Günter Milde Günter Milde modified a comment on ticket #66

    See also the discussion in Sphinx issue #8709. Use case: Changelogs of "pip" and "black" use version numbers as section titles: the auto-generated IDs are not stable but may change if a new section is inserted :( Workaround: "pip" uses explicit targets like "v25.1.1". This works in Sphinx, however, in Docutils, the "self-link" uses ids[0] which is the auto-generated one.

  • Günter Milde Günter Milde posted a comment on ticket #66

    See also the discussion in Sphinx issue #8709.

  • Günter Milde Günter Milde modified a comment on ticket #66

    See also [bugs:#207] (closed as a duplicate of this request).

  • Günter Milde Günter Milde committed [r10194] on Code

    Fix plural case of an error message.

  • Günter Milde Günter Milde committed [r10193] on Code

    Update reStructuredText Cheat Sheet.

<< < 1 2 >