-
Notifications
You must be signed in to change notification settings - Fork 196
docs: improve website organization #1147
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
8a77ffa
DOC improve organisation
tomMoral 14dbf9c
FIX pre-commit hooks
tomMoral 89b45a0
add index for tutorials
tomMoral 8818d70
refactor new landing page.
janfb 867355a
update docs dependencies
janfb b20136f
wip: replace nav-bar dropdown with index.
janfb 5891f82
shorter snippet, add publications to main page.
janfb 4552d15
show faq as ordered list, format install.md.
janfb b19e4d2
join tutorial instructions from README and tutorials/index.
janfb d388422
shorten snippet, remove navigation bar dropdown details
janfb ca32ce1
fix snippet
janfb 8d93d5e
fix: links and md headings.
janfb c7480c1
FIX small changes in index.md
tomMoral e5d7209
DOC expose doc on PR
tomMoral 2f63976
FIX linter
tomMoral d2a7b28
FIX workflow target
tomMoral d1c555d
FIX check doc workflow
tomMoral 2f30d43
Merge branch 'main' into DOC_improve_doc
janfb b732f6c
refactor: improve landing page and credits; update methods
janfb 7f22346
docs: change gh action to convert nbs and deploy docs upon release
janfb 1a17846
CLN remove mkdocs-jupyter pluggin
tomMoral 1393d8a
DOC remove mkdocs-jupyter+add doc version control
tomMoral d4675c6
MTN update .gitignore
tomMoral 9af6295
fix: griffe warnings about .md links; refactoring text.
janfb 988afa4
fix: configure gh user in action for pushing to gh-pages
janfb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,58 @@ | ||
name: "Build docs and deploy" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
release: | ||
types: [ published ] | ||
|
||
jobs: | ||
docs: | ||
name: Build Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
lfs: false | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Cache dependency | ||
id: cache-dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip | ||
|
||
- name: Install sbi and dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install .[doc] | ||
|
||
- name: convert notebooks to markdown | ||
run: | | ||
cd docs | ||
jupyter nbconvert --to markdown ../examples/*.ipynb --output-dir docs/examples/ | ||
jupyter nbconvert --to markdown ../tutorials/*.ipynb --output-dir docs/tutorials/ | ||
|
||
- name: Configure Git user for bot | ||
run: | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
|
||
- name: Build and deploy dev documentation upon push to main | ||
if: ${{ github.event_name == 'push' }} | ||
run: | | ||
cd docs | ||
mike deploy dev --push | ||
|
||
- name: Build and deploy the lastest documentation upon new release | ||
if: ${{ github.event_name == 'release' }} | ||
run: | | ||
cd docs | ||
mike deploy ${{ github.event.release.name }} latest -u --push |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,2 @@ | ||
*.md | ||
*.png |
This file contains hidden or 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,15 +1,13 @@ | ||
# Frequently asked questions | ||
|
||
[Can the algorithms deal with invalid data, e.g., NaN or inf?](faq/question_02_nans.md) | ||
|
||
[What should I do when my 'posterior samples are outside of the prior support' in SNPE?](faq/question_01_leakage.md) | ||
|
||
[When using multiple workers, I get a pickling error. Can I still use multiprocessing?](faq/question_03_pickling_error.md) | ||
|
||
[Can I use the GPU for training the density estimator?](faq/question_04_gpu.md) | ||
|
||
[How should I save and load objects in `sbi`?](faq/question_05_pickling.md) | ||
|
||
[Can I stop neural network training and resume it later?](faq/question_06_resume_training.md) | ||
|
||
[How can I use a prior that is not defined in PyTorch?](faq/question_07_custom_prior.md) | ||
1. [What should I do when my 'posterior samples are outside of the prior support' in SNPE?](faq/question_01_leakage.md) | ||
2. [Can the algorithms deal with invalid data, e.g., NaN or inf?](faq/question_02_nans.md) | ||
3. [When using multiple workers, I get a pickling error. Can I still use multiprocessing?](faq/question_03_pickling_error.md) | ||
4. [Can I use the GPU for training the density estimator?](faq/question_04_gpu.md) | ||
5. [How should I save and load objects in `sbi`?](faq/question_05_pickling.md) | ||
6. [Can I stop neural network training and resume it later?](faq/question_06_resume_training.md) | ||
7. [How can I use a prior that is not defined in PyTorch?](faq/question_07_custom_prior.md) | ||
|
||
See also [discussion page](https://github.com/sbi-dev/sbi/discussions) and [issue | ||
tracker](https://github.com/sbi-dev/sbi/issues) on the `sbi` GitHub repository for | ||
recent questions and problems. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.