Skip to content

Conversation

@adpaco-aws
Copy link
Contributor

Description of changes:

Turns out default editions are different for each book: https://rust-lang.zulipchat.com/#narrow/stream/237824-t-lang.2Fdoc

Refactored the dashboard code to include an extensible Book structure which contains all information related to a particular book. This allows us to set the correct default edition for the examples in each book.

Resolved issues:

Resolves #666

Testing:

  • How is this change tested? Running dashboard locally.

  • Is this a refactor change? No, but includes some refactoring.

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@adpaco-aws adpaco-aws requested a review from a team as a code owner November 26, 2021 22:01
Copy link
Contributor

@zhassan-aws zhassan-aws left a comment

Choose a reason for hiding this comment

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

LGTM

@adpaco-aws
Copy link
Contributor Author

Thanks @zhassan-aws ! Rebased and added two minor comments, merging now.

@adpaco-aws adpaco-aws merged commit 0d74b4e into model-checking:main Nov 29, 2021
@adpaco-aws adpaco-aws deleted the dash-default branch November 29, 2021 22:49
tedinski pushed a commit to tedinski/rmc that referenced this pull request Apr 26, 2022
…del-checking#670)

* Refactor with `Book` struct and set default edition for each book

* Comments
tedinski pushed a commit that referenced this pull request Apr 27, 2022
* Refactor with `Book` struct and set default edition for each book

* Comments
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.

Dashboard examples should be run using the default edition for their book

2 participants