Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions bin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Scripts

Run from project root.

## Update the example reports files

```bash
bash bin/update_test_reports.sh
```

- make sure these run
- evaluate if changes are intended and potentially commit report file changes
along with the corresponding code changes
21 changes: 21 additions & 0 deletions bin/update_test_reports.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
§set -e
vuegen -dir docs/example_data/Basic_example_vuegen_demo_notebook -output_dir tests/report_examples/Basic_example_vuegen_demo_notebook

vuegen -dir docs/example_data/Basic_example_vuegen_demo_notebook -output_dir tests/report_examples/Basic_example_vuegen_demo_notebook/html -rt html
vuegen -dir docs/example_data/Basic_example_vuegen_demo_notebook -output_dir tests/report_examples/Basic_example_vuegen_demo_notebook/pdf -rt pdf
vuegen -dir docs/example_data/Basic_example_vuegen_demo_notebook -output_dir tests/report_examples/Basic_example_vuegen_demo_notebook/docx -rt docx
vuegen -dir docs/example_data/Basic_example_vuegen_demo_notebook -output_dir tests/report_examples/Basic_example_vuegen_demo_notebook/odt -rt odt
vuegen -dir docs/example_data/Basic_example_vuegen_demo_notebook -output_dir tests/report_examples/Basic_example_vuegen_demo_notebook/revealjs -rt revealjs
vuegen -dir docs/example_data/Basic_example_vuegen_demo_notebook -output_dir tests/report_examples/Basic_example_vuegen_demo_notebook/pptx -rt pptx
vuegen -dir docs/example_data/Basic_example_vuegen_demo_notebook -output_dir tests/report_examples/Basic_example_vuegen_demo_notebook/jupyter -rt jupyter

# all of the above quarto based reports, can be opened from the command line with:
# open tests/report_examples/Basic_example_vuegen_demo_notebook/pdf/quarto_report/quarto_report.pdf

cd docs
vuegen -c example_config_files/Basic_example_vuegen_demo_notebook_config.yaml -output_dir ../tests/report_examples/Basic_example_vuegen_demo_notebook_cfg
vuegen -c example_config_files/Basic_example_vuegen_demo_notebook_config.yaml -output_dir ../tests/report_examples/Basic_example_vuegen_demo_notebook_cfg/html -rt html
vuegen -c example_config_files/Basic_example_vuegen_demo_notebook_config.yaml -output_dir ../tests/report_examples/Basic_example_vuegen_demo_notebook_cfg/pdf -rt pdf

# update bot example
vuegen -c example_config_files/Chatbot_example_config.yaml -output_dir ../tests/report_examples/chat_bot