-
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.
* Update documentation * Fix bug in reform handling * Test with API * Versioning * Add seedability * Fix syntax bug
- Loading branch information
1 parent
cf53c6d
commit 60d589a
Showing
10 changed files
with
1,127 additions
and
243 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- bump: minor | ||
changes: | ||
added: | ||
- Simulation subsampling. |
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,9 +1,2 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Roboto+Serif:[email protected]&family=Roboto:wght@300&display=swap'); | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
font-family: "Roboto"; | ||
} | ||
|
||
body { | ||
font-family: "Roboto Serif"; | ||
} |
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,27 @@ | ||
import argparse | ||
from pathlib import Path | ||
|
||
# This command-line tools enables Plotly charts to show in the HTML files for the Jupyter Book documentation. | ||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument("book_path", help="Path to the Jupyter Book.") | ||
|
||
args = parser.parse_args() | ||
|
||
# Find every HTML file in the Jupyter Book. Then, add a script tag to the start of the <head> tag in each file, with the contents: | ||
# <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script> | ||
|
||
book_folder = Path(args.book_path) | ||
|
||
for html_file in book_folder.glob("**/*.html"): | ||
with open(html_file, "r") as f: | ||
html = f.read() | ||
|
||
# Add the script tag to the start of the <head> tag. | ||
html = html.replace( | ||
"<head>", | ||
'<head><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>', | ||
) | ||
|
||
with open(html_file, "w") as f: | ||
f.write(html) |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.