Skip to content

Conversation

@Mars-aliens
Copy link

Title: Doc: Modernize pure mode tutorial (pure.rst) with dual syntax tabs

Description:

This PR completes the modernization of the documentation structure in docs/src/tutorial/pure.rst by converting all isolated code blocks and single .. literalinclude:: references into the unified, dual-syntax .. tabs:: structure (Pure Python vs. Traditional Cython).

This change significantly improves the clarity and maintainability of the tutorial, allowing users to easily compare the Pure Python method with the traditional Cython equivalent side-by-side.

Key Changes:

  • Global Conversion: Most tutorial examples now use the .. tabs:: structure.
  • New Examples: Created corresponding .pyx files for nearly all Pure Python examples (e.g., exceptval_syntax.pyx, type_hints.pyx, c_arrays.pyx).
  • RST Cleanup: Resolved indentation issues and updated surrounding text for consistency with the new structure.

I have verified the build using make html locally, and there are no warnings or errors related to the file structure.

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.

1 participant