-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for multi-part questions (#33)
* Document schema, generate JSON schema in CI * Run CI on branch push * Install Aquascope in CI * Add frontend support for multi-part questions * Only include json schema stuff if needed * Revert to old example
- Loading branch information
1 parent
cd65a26
commit c6f7823
Showing
30 changed files
with
1,035 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
fn main() { | ||
#[cfg(feature = "json-schema")] | ||
{ | ||
use mdbook_quiz_schema::Quiz; | ||
use schemars::schema_for; | ||
|
||
let schema = schema_for!(Quiz); | ||
println!("{}", serde_json::to_string_pretty(&schema).unwrap()); | ||
} | ||
|
||
#[cfg(not(feature = "json-schema"))] | ||
{ | ||
panic!("Must run with --feature json-schema") | ||
} | ||
} |
Oops, something went wrong.