Skip to content

Add run/compile button to code examples#1343

Merged
gusthoff merged 5 commits into
AdaCore:mainfrom
gusthoff:content/general/review/editorial/code_buttons/20260424
Apr 24, 2026
Merged

Add run/compile button to code examples#1343
gusthoff merged 5 commits into
AdaCore:mainfrom
gusthoff:content/general/review/editorial/code_buttons/20260424

Conversation

@gusthoff
Copy link
Copy Markdown
Collaborator

Replace a couple of "no_button" instances.

gusthoff and others added 2 commits April 24, 2026 17:27
The ada-run class is only valid when no_button is used. Removed the
class from existing run_button code blocks.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
For code blocks that were using no_button with the ada-run class, the
button has been added back now that the backend restriction has been
lifted. The ada-run class is removed since it is not valid with
run_button.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
gusthoff and others added 3 commits April 24, 2026 19:13
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Blocks that call C functions implemented in no_button companion blocks
cannot link in the test environment. Similarly, blocks that read from
stdin or intentionally raise a runtime error at run time are also
reverted.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@gusthoff gusthoff merged commit e79dead into AdaCore:main Apr 24, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant