Improve readability of interactive examples in documentation#142
Improve readability of interactive examples in documentation#142
Conversation
|
@copilot , can you try to continue, please? |
Agent-Logs-Url: https://github.com/bitifet/SmarkForm/sessions/31d7b006-97b3-4e22-9ae1-841a2f2d2f4e Co-authored-by: bitifet <1643647+bitifet@users.noreply.github.com>
Done! All HTML indentation fixes are now pushed in commit The previous session's work was lost (commits were local but never pushed due to a 403). I've redone everything:
|
|
Good job @copilot Two details still to look at:
Can you please review those two points and, if possible, fix them (remove the tricky character if it is really not necessary at all and/or fix the indentatiion of the code inside the ACE editor)? |
…tion Agent-Logs-Url: https://github.com/bitifet/SmarkForm/sessions/c6f170c1-a00c-4692-9e63-1962186ed202 Co-authored-by: bitifet <1643647+bitifet@users.noreply.github.com>
Done in commit 1. Is
2. Ace editor indentation fix
|
|
@copilot I still see the code unindented in the ace editor. Can you review it, please? |
Agent-Logs-Url: https://github.com/bitifet/SmarkForm/sessions/4af994b4-c550-4cf3-b1d3-2e9c5b0e3295 Co-authored-by: bitifet <1643647+bitifet@users.noreply.github.com>
Fixed in commit Fixed captures across 5 files:
All direct children of root divs now use consistent 2-space indentation, so the Ace editor shows properly indented code. |
jsonify; root cause is poor indentation in the source captures themselves{% capture %}blocksshowcase.md: fixed inconsistent█usage insimple_list_singleton,simple_list_autodisable; fixedschedule_list,nested_forms_with_load_save,calculator,supercalculatormissing outer indent<p>,<fieldset>,<ul>, etc. direct children of root<div>now properly indented█trick from all non-composable direct captures — replaced with plain spacesindex.md:event_planner_html— fixed bug introduced by previous script (spaces before█broke replace logic), now uses clean 2-space indentationshowcase.md:event_planner_html,simple_list,simple_list_singleton,simple_list_autodisable,schedule_table,submit_form_example— all use proper 2-space indentation directlyshowcase.md:basic_form_fieldsandnested_formsconverted to direct 4-space indentation; their embedding captures no longer needreplace: "█", " "█is retained only where multi-level Liquid composition genuinely requires it:schedule_row_form(used at 0-space and 8-space depth),simple_list_hotkeys/simple_list_hotkeys_with_context/2nd_level_hotkeys_html(deep nesting via chained replace)smarkformReindentHtml(content, spaces)helper insampletabs_ctrl.mdsmarkformBuildEditorHtmlnow re-indentsp.innerby 8 spaces to align with its context inside the two additional wrapper<div>elementsnpm run build)Original prompt
This pull request was created from Copilot chat.