Skip to content

Fix Markdown docstrings to use RST-compatible formatting#798

Open
mendral-app[bot] wants to merge 1 commit into
mainfrom
mendral/fix-markdown-docstrings-rst-compat
Open

Fix Markdown docstrings to use RST-compatible formatting#798
mendral-app[bot] wants to merge 1 commit into
mainfrom
mendral/fix-markdown-docstrings-rst-compat

Conversation

@mendral-app
Copy link
Copy Markdown

@mendral-app mendral-app Bot commented May 4, 2026

Summary

  • Convert all Markdown-formatted docstrings in the SDK to RST-compatible format that Sphinx/Napoleon can parse without errors
  • Fix docs/sphinx/index.rst title underlines that were too short for their titles

Changes

Markdown → RST conversions across 3 SDK source files:

  • Replace triple-backtick code fences (```python) with RST indented code blocks (Example::)
  • Replace > blockquotes with plain text Note: paragraphs
  • Affected methods: NotteClient.scrape, RemoteSession.start, RemoteSession.stop, RemoteSession.page, RemoteSession.apage, RemoteSession.get_cookies, RemoteSession.scrape, RemoteSession.observe, RemoteSession.execute, RemoteAgent.run, AgentsClient.run

RST title underline fix:

  • "API Documentation" (17 chars) now has 17-char = underline
  • "API Reference" (13 chars) now has 13-char - underline

Validation

Ran cd docs && uv run sphinx-build -b mdx sphinx _build locally — build succeeded with zero errors/warnings.

Context

Resolves insight: docs-sdk-generate pre-commit hook fails — the docs-sdk-generate pre-commit hook was failing on every PR touching SDK source because Sphinx cannot parse Markdown syntax in docstrings.


Note

Created by Mendral. Tag @mendral-app with feedback or questions.

@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented May 4, 2026

PR author is not in the allowed authors list.

@mendral-app mendral-app Bot force-pushed the mendral/fix-markdown-docstrings-rst-compat branch from 2688b92 to 1c26872 Compare May 4, 2026 20:45
Replace triple-backtick code fences with RST indented code blocks (::)
and Markdown blockquotes (>) with plain text notes across SDK source files.
Also fix title underline lengths in docs/sphinx/index.rst.

This resolves the docs-sdk-generate pre-commit hook failures caused by
Sphinx/Napoleon being unable to parse Markdown syntax in docstrings.

Affected files:
- packages/notte-sdk/src/notte_sdk/client.py
- packages/notte-sdk/src/notte_sdk/endpoints/sessions.py
- packages/notte-sdk/src/notte_sdk/endpoints/agents.py
- docs/sphinx/index.rst
@mendral-app mendral-app Bot force-pushed the mendral/fix-markdown-docstrings-rst-compat branch from 1c26872 to 7dd8496 Compare May 4, 2026 20:49
@mendral-app mendral-app Bot marked this pull request as ready for review May 4, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants