You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrate tutorial testing with Sphinx documentation
- Modified workflows to use docs/tutorial.rst instead of tutorial.md
- Added support for parsing RST format code blocks and includes
- Enhanced execution test to use actual code files from docs/_code/
- Removed standalone tutorial.md in favor of Sphinx integration
- Updated path triggers to focus on docs directory files
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
// First, have Claude analyze the tutorial and extract executable steps
67
79
const analysisPrompt = `<tutorial>
68
80
${tutorialContent}
69
81
</tutorial>
70
82
71
-
You are an expert in hardware design, HDLs, and Python. Please analyze the above Amaranth HDL tutorial and extract a step-by-step execution plan.
83
+
You are an expert in hardware design, HDLs, and Python. Please analyze the above Amaranth HDL tutorial (in RST format) and extract a step-by-step execution plan.
72
84
73
-
For each code example in the tutorial:
74
-
1. Identify the filename it should be saved as
75
-
2. Extract the exact code as shown in the tutorial
85
+
Note that this is a Sphinx RST file, with code examples in these forms:
86
+
1. Inline code blocks (marked with .. code-block:: python)
87
+
2. File includes (marked with .. literalinclude:: _code/filename.py)
88
+
89
+
For each executable code example in the tutorial:
90
+
1. Identify the filename it should be saved as (from literalinclude or reasonable name for code blocks)
91
+
2. Extract the exact code needed for execution
76
92
3. Identify any dependencies or prerequisites needed to run this code
77
93
4. Describe what the expected output or result should be
0 commit comments