-
Notifications
You must be signed in to change notification settings - Fork 24
Migrated the documentation from Jupyter-book to Mkdocs #137
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
base: develop
Are you sure you want to change the base?
Changes from all commits
e2a9c65
1da6a45
e3c6f4e
9ce9535
118d9f8
79558bb
037ab31
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should probably use a newer version of python here. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Deploy MkDocs to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- feat/mkdocs-migration | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install . | ||
|
||
- name: Test with pytest | ||
run: | | ||
pytest . | ||
|
||
- name: Execute notebooks before building docs | ||
run: | | ||
find docs/notebooks -type f -name "*.ipynb" ! -path "*/old_nb/*" | while read nb; do | ||
echo "Executing $nb" | ||
jupyter nbconvert --to notebook --execute --inplace "$nb" | ||
done | ||
|
||
- name: Deploy to GitHub Pages | ||
run: | | ||
mkdocs gh-deploy --force |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.md-grid { | ||
max-width: 90vw; | ||
} | ||
|
||
.md-header__button.md-logo{ | ||
padding-bottom: 18px; | ||
scale: 1.2; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
window.MathJax = { | ||
tex: { | ||
inlineMath: [['$', '$'], ['\\(', '\\)']], | ||
displayMath: [['$$', '$$'], ['\\[', '\\]']], | ||
processEscapes: true, | ||
processEnvironments: true | ||
}, | ||
options: { | ||
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre'] | ||
} | ||
}; | ||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are markdown files in the notebooks that should be organized separately. You will need to fix any reference links to these files as well. |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is there two deployments for the docs here?