-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the initial DFIQ Python code to read DFIQ YAML files and create M…
…arkdown pages from them.
- Loading branch information
1 parent
b2145d3
commit 3123bb6
Showing
8 changed files
with
240 additions
and
73 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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
networkx | ||
pyyaml | ||
jinja2 | ||
jinja2 | ||
yamale |
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,11 @@ | ||
from dfiq import DFIQ | ||
|
||
dfiq_instance = DFIQ(markdown_output_path=f"site/docs") | ||
|
||
for scenario in dfiq_instance.scenarios(): | ||
dfiq_instance.generate_scenario_md(scenario.id) | ||
|
||
for question in dfiq_instance.questions(): | ||
dfiq_instance.generate_question_md(question.id) | ||
|
||
dfiq_instance.generate_question_index_md() |
Oops, something went wrong.