Skip to content

Render API documentation of Python bindings on website #239

Closed

Description

@uekerman

The Python bindings are one of the most important ways how users work with preCICE. We spent quite some time to write nice docstrings for the bindings. I would be good if we could integrate this documentation on the website as well. Ideally in such a way that also our search engine sees them.

Maybe a solution could be to first convert them into markdown (maybe via docutils or sphinx, I did not do much research yet) and then include in Jekyll.

Alternatively, we also directly generate html via sphinx, but this is probably not what we want.

Activity

  1. MakisH commented on Feb 12, 2023

    @MakisH
    Member

    Would be a solution for #165

  2. MakisH commented on Apr 29, 2024

    @MakisH
    Member

    Discussion:

    • We should do this before somebody else does it
    • We could use Sphinx
    • We could even use Doxygen
    • We could even manually convert it to Markdown and put it on the website (not ideal)
    • Important in any case would be to clearly link to the actual website
    • We could also link the "couple your code" for examples.
    • We don't want to make the "noise" searchable, just the API. See Include doxygen Participant page into Algolia search index #395.
  3. fsimonis commented on Oct 30, 2025

    @fsimonis
    Member

    I added a minimal rendering using sphinx that can be included into the website similar to how we currently handle Doxygen precice/python-bindings#250

  4. fsimonis commented on Apr 14, 2026

    @fsimonis
    Member

    The rendering has been integrated into the Python bindings and is part of the latest release:

  5. MakisH commented on Apr 14, 2026

    @MakisH
    Member

    @fsimonis nice! Would it be easy to also add a backlink to precice.org and/or to https://precice.org/couple-your-code-api.html? I can imagine that people will land on that page from a search engine.

  6. fsimonis commented on Apr 14, 2026

    @fsimonis
    Member

    Would it be easy to also add a backlink

    The root already redirects to the api page.

  7. MakisH commented on Apr 15, 2026

    @MakisH
    Member

    I am not sure what you mean. All the links in this frame point to pages under https://api.precice.org/python/, both for the develop and the latest:

    Image
  8. fsimonis commented on Apr 16, 2026

    @fsimonis
    Member

    I see what you mean now. That's an issue for the python-bindings though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    technicalTechnical issues on the website

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions