Repository navigation
Replace :: with codeblocks in demos - #5414
Conversation
connorjward
left a comment
There was a problem hiding this comment.
Seems basically fine and is probably a nice improvement.
4d27d24 to
06436b3
Compare
leo-collins
left a comment
There was a problem hiding this comment.
There is a pylit command in docs/Makefile that needs updating.
Also test_demos_run.py needs updating. Currently all these tests are passing trivially because the files contain no actual python code.
|
Previously, Also, found some demos that used |
|
@leo-collins hoping you can review this one |
connorjward
left a comment
There was a problem hiding this comment.
Made it about 80% through. Will review the rest shortly. This is great, thankless work - thank you!
connorjward
left a comment
There was a problem hiding this comment.
All done now. Once these fixes are in I think we're good to merge.
This PR is going into main not release, but a release is just around the corner so I'm not concerned.
leo-collins
left a comment
There was a problem hiding this comment.
This seems pretty much fine now
Co-authored-by: Connor Ward <c.ward20@imperial.ac.uk>
|
Lets fix |
* Speed up the demos on CI * Move some old ..python code blocks to ..text now that ..python has a special meaning.
|
Just pushed a couple of fixes where previous |
* Add punctuation before each codeblock * Makefile changes * Add : punctuation to the end of paragraphs * Specify code-blocks as python3 and remove python specification for docs/source files * Convert back from python3 to python * Update makefiles and remove non-python code blocks * Add python keyword to make files * Change sample code in demo from python to none * Swap code-blocks to parsed-literals * Revert parsed-literal back to code-block: console * Revert from parsed-literal:: * Update pylit command in demo/makefile * Revert cores from 6 to 2 * Update installation page and replace bash code-blocks with shell code-blocks * Replace shell with console, specify types for blank code-blocks * Found `#` used for indenting conde-blocks. Replace these with :dedent: * Apply batched suggestions from code review Co-authored-by: Connor Ward <c.ward20@imperial.ac.uk> * some fixes * Demo fixes * Speed up the demos on CI * Move some old ..python code blocks to ..text now that ..python has a special meaning. --------- Co-authored-by: nwng04 <nwng04@gmail.com> Co-authored-by: Leo Collins <leocollins511@gmail.com> Co-authored-by: Connor Ward <c.ward20@imperial.ac.uk> Co-authored-by: Leo Collins <collins.leo@proton.me>
Since #5414 the demo tests extract only ``.. code-block:: python`` blocks, so these demos ran no code. The goal functional and the error estimate now come from the callback that get_marking_callback returns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Description
Currently codeblocks are defined in Firedrake demos using
::.This change replaces all uses of
::with.. codeblock:: python. This provides more control over code formatting.