-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #543 from probcomp/reorganize_docs
Reorganize and add documentation
- Loading branch information
Showing
66 changed files
with
1,466 additions
and
1,504 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,36 @@ | ||
# Adapted from | ||
# https://documenter.juliadocs.org/stable/man/hosting/#Cleaning-up-gh-pages | ||
|
||
name: Doc Preview Cleanup | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
# Ensure that only one "Doc Preview Cleanup" workflow is force pushing at a time | ||
concurrency: | ||
group: doc-preview-cleanup | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
doc-preview-cleanup: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout gh-pages branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
- name: Delete preview and history + push changes | ||
run: | | ||
if [ -d "${preview_dir}" ]; then | ||
git config user.name "Documenter.jl" | ||
git config user.email "[email protected]" | ||
git rm -rf "${preview_dir}" | ||
git commit -m "delete preview" | ||
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree}) | ||
git push --force origin gh-pages-new:gh-pages | ||
fi | ||
env: | ||
preview_dir: docs/previews/PR${{ github.event.number }} |
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
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 |
---|---|---|
@@ -1,53 +1,46 @@ | ||
pages = [ | ||
"Home" => "index.md", | ||
"Getting Started" => [ | ||
"Example 1: Linear Regression" => "getting_started/linear_regression.md", | ||
], | ||
"Gen.jl" => "index.md", | ||
"Tutorials" => [ | ||
"Basics" => [ | ||
"tutorials/basics/modeling_in_gen.md", | ||
"tutorials/basics/gfi.md", | ||
"tutorials/basics/combinators.md", | ||
"tutorials/basics/particle_filter.md", | ||
"tutorials/basics/vi.md", | ||
], | ||
"Advanced" => [ | ||
"tutorials/trace_translators.md", | ||
], | ||
"Model Optmizations" => [ | ||
"Speeding Inference with the Static Modeling Language" => "tutorials/model_optimizations/scaling_with_sml.md", | ||
], | ||
"Getting Started" => "tutorials/getting_started.md", | ||
"Introduction to Modeling in Gen" => "tutorials/modeling_in_gen.md", | ||
"Object Tracking with SMC" => "tutorials/smc.md", | ||
"Variational Inference in Gen" => "tutorials/vi.md", | ||
"Learning Generative Functions" => "tutorials/learning_gen_fns.md", | ||
"Speeding Up Inference with the SML" => "tutorials/scaling_with_sml.md", | ||
], | ||
"How-to Guides" => [ | ||
"MCMC Kernels" => "how_to/mcmc_kernels.md", | ||
"Custom Distributions" => "how_to/custom_distributions.md", | ||
"Custom Modeling Languages" => "how_to/custom_dsl.md", | ||
"Custom Gradients" => "how_to/custom_derivatives.md", | ||
"Incremental Computation" => "how_to/custom_incremental_computation.md", | ||
"Extending Gen" => "how_to/extending_gen.md", | ||
"Adding New Distributions" => "how_to/custom_distributions.md", | ||
"Adding New Generative Functions" => "how_to/custom_gen_fns.md", | ||
"Custom Gradients" => "how_to/custom_gradients.md", | ||
"Custom Incremental Computation" => "how_to/custom_incremental_computation.md", | ||
], | ||
"API Reference" => [ | ||
"Reference" => [ | ||
"Core Interfaces" => [ | ||
"Generative Function Interface" => "ref/core/gfi.md", | ||
"Choice Maps" => "ref/core/choice_maps.md", | ||
"Selections" => "ref/core/selections.md", | ||
"Change Hints" => "ref/core/change_hints.md", | ||
], | ||
"Modeling Library" => [ | ||
"Generative Functions" => "api/model/gfi.md", | ||
"Probability Distributions" => "api/model/distributions.md", | ||
"Choice Maps" => "api/model/choice_maps.md", | ||
"Built-in Modeling Languages" => "api/model/modeling.md", | ||
"Combinators" => "api/model/combinators.md", | ||
"Selections" => "api/model/selections.md", | ||
"Optimizing Trainable Parameters" => "api/model/parameter_optimization.md", | ||
"Trace Translators" => "api/model/trace_translators.md", | ||
"Built-In Modeling Language" => "ref/modeling/dml.md", | ||
"Static Modeling Language" => "ref/modeling/sml.md", | ||
"Probability Distributions" => "ref/modeling/distributions.md", | ||
"Combinators" => "ref/modeling/combinators.md", | ||
"Custom Generative Functions" => "ref/modeling/custom_gen_fns.md", | ||
], | ||
"Inference Library" => [ | ||
"Importance Sampling" => "api/inference/importance.md", | ||
"MAP Optimization" => "api/inference/map.md", | ||
"Markov chain Monte Carlo" => "api/inference/mcmc.md", | ||
"MAP Optimization" => "api/inference/map.md", | ||
"Particle Filtering" => "api/inference/pf.md", | ||
"Variational Inference" => "api/inference/vi.md", | ||
"Learning Generative Functions" => "api/inference/learning.md" | ||
"Importance Sampling" => "ref/inference/importance.md", | ||
"Markov Chain Monte Carlo" => "ref/inference/mcmc.md", | ||
"Particle Filtering & SMC" => "ref/inference/pf.md", | ||
"Trace Translators" => "ref/inference/trace_translators.md", | ||
"Parameter Optimization" => "ref/inference/parameter_optimization.md", | ||
"MAP Optimization" => "ref/inference/map.md", | ||
"Variational Inference" => "ref/inference/vi.md", | ||
"Wake-Sleep Learning" => "ref/inference/wake_sleep.md", | ||
], | ||
"Internals" => [ | ||
"Modeling Language Implementation" => "ref/internals/language_implementation.md", | ||
] | ||
], | ||
"Explanation and Internals" => [ | ||
"Modeling Language Implementation" => "explanations/language_implementation.md", | ||
"explanations/combinator_design.md" | ||
] | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.