home.social

#sphinx — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #sphinx, aggregated by home.social.

fetched live
  1. CW: sphinx document system, English, solved

    update: :linenos: and the code-block MUST be indented exactly the same.

    I am trying to document my project with #Sphinx. Their docs say this is how to add line numbers to code blocks: sphinx-doc.org/en/master/usage

    If I add that, I get this from sphinx

    > .../README.rst: ERROR: Error in "code" directive:
    maximum 1 argument(s) allowed, 2 supplied.

    So how do I get line numbers with my code blocks?

    :boostok:

  2. CW: sphinx document system, English, solved

    update: :linenos: and the code-block MUST be indented exactly the same.

    I am trying to document my project with #Sphinx. Their docs say this is how to add line numbers to code blocks: sphinx-doc.org/en/master/usage

    If I add that, I get this from sphinx

    > .../README.rst: ERROR: Error in "code" directive:
    maximum 1 argument(s) allowed, 2 supplied.

    So how do I get line numbers with my code blocks?

    :boostok:

  3. CW: sphinx document system, deutsch, gelöst

    update: :linenos: und der codeblock MÜSSEN genau gleich eingerückt sein.

    Ich versuche mein Project mit #sphinx zu dokumentieren. Doku sagt, so geht Zeilennummern: sphinx-doc.org/en/master/usage

    Wenn ich das hinzufüge, sagt sphinx:

    > .../README.rst: ERROR: Error in "code" directive:
    maximum 1 argument(s) allowed, 2 supplied.

    Wie mach ich Zeilennummern an Codeblöcke?

    :boostok:

  4. CW: sphinx document system, deutsch, gelöst

    update: :linenos: und der codeblock MÜSSEN genau gleich eingerückt sein.

    Ich versuche mein Project mit #sphinx zu dokumentieren. Doku sagt, so geht Zeilennummern: sphinx-doc.org/en/master/usage

    Wenn ich das hinzufüge, sagt sphinx:

    > .../README.rst: ERROR: Error in "code" directive:
    maximum 1 argument(s) allowed, 2 supplied.

    Wie mach ich Zeilennummern an Codeblöcke?

    :boostok:

  5. Un sphinx du liseron, je crois, qui faisait une pause sur mon étendoir à linge. Ses yeux sont immenses, quelle beauté. Je l'ai déposé dans ma glycine.

    #sphinx #papillon #schmetterling #butterfly

  6. Un sphinx du liseron, je crois, qui faisait une pause sur mon étendoir à linge. Ses yeux sont immenses, quelle beauté. Je l'ai déposé dans ma glycine.

    #sphinx #papillon #schmetterling #butterfly

  7. I have updated my #Uxntal syntax definitions for #micro and #subl Sublime Text, as well as #Python #Pygments

    git.sr.ht/~ismael-vc/monotal

    What I want is consistency in the coloring of the uxntal tokens, this is not about the color palette precisely.

    I'm making a book using Pygments and #Sphinx that will use these.

    Sublime Text and Pygments are using the Monokai Pro theme colors.

    Micro is using it's default Monokai theme.

    But you can see all tokens are consistently themed.

    : )

    #uxn #varvara

  8. Since I've been using it for nearly a year(!), I thought it was about time I wrote some notes on how I now also use the #denote-sequence #emacs package to group related posts on my #sphinx powered blog.

    alcarney.me/blog/2026/organisi

  9. Since I've been using it for nearly a year(!), I thought it was about time I wrote some notes on how I now also use the #denote-sequence #emacs package to group related posts on my #sphinx powered blog.

    alcarney.me/blog/2026/organisi

  10. #sphinx configuration is very strange. The default is for both source documents and configuration file to have the same root directory. In order to put the configuration aside, I'm trying to adjust parameters but they are at different places (in the command line and configuration file) and they depend on each other... It's a nightmare just to change the default directories. #devops

  11. Just released: Python Docs Sphinx Theme 2026.4! 🚀

    This is the theme for the Python documentation (and others). This release:

    * Adds styling for the `soft-deprecated` class
    * Adds a Tamil translation
    * Fixes the vertical alignment of `:Editor:`

    Thanks to @hugovk for helping me with my first release!

    github.com/python/python-docs-

    #python #docs #theme #release #Sphinx