Skip to content
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

Add link functions and view embed flag #130

Closed
wants to merge 1 commit into from
Closed

Conversation

mkly
Copy link
Member

@mkly mkly commented Feb 29, 2024

  • Add link functions and view embed flag

This allows for running --view-embed to generate a "emdedded view" html. The main thing this is currently doing is simply not appending .html to links. There will be more changes needed and the generic term of view-embed vs doing remove-extention was in anticipation of those other changes

This option defaults to false so users of the tool that are running their own reports will not need to be aware of it as the default will simply create the local html test report output.

new help text:

Usage: run.py benchmark [OPTIONS]

  run the standard benchmark

Options:
  -o, --output-dir DIRECTORY
  -m, --max-instances INTEGER
  --debug
  --web-only
  --view-embed                 Render the HTML to be emdedded in another view
  --help                       Show this message and exit.

* Add link functions and view embed flag

This allows for running `--view-embed` to generate a "emdedded view"
html. The main thing this is currently doing is simply not appending
`.html` to links. There will be more changes needed and the generic
term of `view-embed` vs doing `remove-extention` was in anticipation
of those other changes

This option defaults to false so users of the tool that are running
their own reports will not need to be aware of it as the default will
simply create the local html test report output.

new help text:

```
Usage: run.py benchmark [OPTIONS]

  run the standard benchmark

Options:
  -o, --output-dir DIRECTORY
  -m, --max-instances INTEGER
  --debug
  --web-only
  --view-embed                 Render the HTML to be emdedded in another view
  --help                       Show this message and exit.
```
@mkly mkly requested review from wpietri and dhosterman February 29, 2024 01:59
Copy link

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@mkly
Copy link
Member Author

mkly commented Feb 29, 2024

Need to clean up some tests with jinja. Closing

@mkly mkly closed this Feb 29, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant