Skip to content

Wrap long code lines in guide documentation#491

Merged
ocots merged 3 commits into
mainfrom
docs/wrap-long-code-lines
Jul 11, 2026
Merged

Wrap long code lines in guide documentation#491
ocots merged 3 commits into
mainfrom
docs/wrap-long-code-lines

Conversation

@ocots

@ocots ocots commented Jul 11, 2026

Copy link
Copy Markdown
Member

Summary

Reformat code blocks across all guide pages to stay within ~75 characters for readability on narrow screens and to avoid horizontal scrolling in the rendered documentation site.

Changes

  • data.md: Updated overview table with full out-of-place call signatures, added in-place column, math symbol legend, explicit mathematical/code signatures per data type section, sub-tables for ControlLaw and PathConstraint, replaced ### headings with bold text to reduce TOC depth.
  • differentiation.md: Wrapped long differentiation calls.
  • exceptions.md: Wrapped long exception throws and quick-reference table entries.
  • descriptions.md: Wrapped long add/complete/remove calls and function reference table.
  • options-system.md: Wrapped OptionDefinition constructors, validators, StrategyMetadata, build_strategy_options, and extraction function calls.
  • implementing-a-strategy.md: Wrapped constructors, build_strategy, extract_id_from_method, registry queries, and advanced pattern examples.
  • orchestration-and-routing.md: Aerated the fake-strategies setup block with spacing and multi-line definitions; wrapped all routing helper calls.
  • strategy-parameters.md: Wrapped parameterized type signatures, metadata dispatch, constructors, registry queries, and build_strategy calls.
  • test-runner.md: Wrapped bash commands, TestRunInfo struct comments, and run_tests examples.
  • api-documentation.md: Wrapped long public_description string and YAML run command.
  • color-system.md: Wrapped long See Also bullet points.
  • coverage.md: Wrapped one long code comment.

Convention

Lines inside @example, @repl, @setup, and plain julia code blocks should stay within ~75 characters. Long calls are wrapped with each argument on its own line and a trailing comma. This convention has been documented in the Handbook (philosophy/documentation.md).

Reformat code blocks across all guide pages to stay within ~75 chars.
Long function calls are wrapped with one argument per line and trailing
commas. Also aerates the fake-strategies block in orchestration-and-routing.md
and replaces ### headings with bold text in data.md to reduce TOC depth.
ocots added 2 commits July 11, 2026 15:42
Add compact (one-line) and pretty (tree-style text/plain) display
methods for Series, HLine, VLine, Axes, Leaf, HBox, VBox, Figure,
and Panel, using the CTBase color palette via Core.get_format_codes.

Features:
- Recursive tree display with ├─/└─/│ indentation
- Truncation beyond 5 children (… N more)
- Pluralization (point/points, component/components)
- Empty label filtering for Panel
- Decorations (HLine/VLine) shown in Axes
- Qualified imports per Handbook philosophy

Add test/suite/plotting/test_display.jl with 120 tests covering
compact, pretty, and integration (nested trees, truncation) cases.
…xamples

Add @setup plot block that loads Plots and disables image/png showable
to prevent inline rendering in docs. Update render example text to note
that the ExtensionError cannot be demonstrated because Plots is loaded
by make.jl. Move the render(fig) example after the explanatory text.
@ocots
ocots merged commit fb6aedf into main Jul 11, 2026
4 checks passed
@ocots
ocots deleted the docs/wrap-long-code-lines branch July 11, 2026 14:14
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