Skip to content

fix book example generation and inclusion #305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 10, 2025

Conversation

andrei-ng
Copy link
Collaborator

No description provided.

Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com>
@andrei-ng andrei-ng requested a review from Copilot June 10, 2025 06:12
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fixes generation of inline HTML examples and updates documentation to include these new files.

  • Added inline HTML export in write_example_to_html for custom, basic, and 3D charts
  • Updated book recipes to reference output/inline_<name>.html instead of legacy out/*.html
  • Retained standalone HTML output to preserve existing workflows

Reviewed Changes

Copilot reviewed 30 out of 30 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
examples/custom_controls/src/main.rs Write inline HTML files before standalone HTML output
examples/basic_charts/src/main.rs Write inline HTML files before standalone HTML output
examples/3d_charts/src/main.rs Write inline HTML files before standalone HTML output
docs/book/src/recipes/.md Updated #include paths to use output/inline_*.html
docs/book/src/fundamentals/shapes.md Updated #include paths to use output/inline_*.html
Comments suppressed due to low confidence (3)

examples/custom_controls/src/main.rs:124

  • This shadows the earlier path variable; consider using a distinct name like inline_path to improve clarity.
let path = format!("./output/inline_{}.html", name);

examples/custom_controls/src/main.rs:127

  • Reusing path here shadows the inline path variable; renaming this to standalone_path could avoid confusion.
let path = format!("./output/{}.html", name);

docs/book/src/recipes/basic_charts/pie_charts.md:34

  • Typo in donout; it should likely be spelled donut.
+{{#include ../../../../../examples/basic_charts/output/inline_grouped_donout_pie_charts.html}}

@andrei-ng andrei-ng force-pushed the fix-book-examples-after-refactor branch 3 times, most recently from fbb3e95 to 95c126f Compare June 10, 2025 06:28
Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com>
@andrei-ng andrei-ng force-pushed the fix-book-examples-after-refactor branch from 95c126f to 805266d Compare June 10, 2025 06:33
@andrei-ng andrei-ng merged commit d00928e into main Jun 10, 2025
22 of 25 checks passed
@andrei-ng andrei-ng deleted the fix-book-examples-after-refactor branch June 10, 2025 06:36
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