Skip to content

Commit 614a10a

Browse files
committed
Reorganize documentation.
1 parent ff2deec commit 614a10a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1070
-1488
lines changed

docs/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
# Website Docs
2-
- `pages.jl` to find skeleton of website.
3-
- `make.jl` to build the website index.
1+
# Gen.jl Documentation
42

5-
The docs are divided in roughly four sections:
3+
- `pages.jl` to find skeleton of the Gen.jl documentation.
4+
- `make.jl` to build the documentation website index.
5+
6+
The documentation is divided into three sections:
67
- Getting Started + Tutorials
78
- How-to Guides
8-
- API = Modeling API + Inference API
9-
- Explanations + Internals
10-
9+
- Reference Guides
1110

1211
# Developing
13-
To build the docs, run `julia --make.jl` or alternatively startup the Julia REPL and include `make.jl`. For debugging, consider setting `draft=true` in the `makedocs` function found in `make.jl`.
14-
Currently you must write the tutorial directly in the docs rather than a source file (e.g. Quarto). See `getting_started` or `tutorials` for examples.
12+
13+
To build the docs, run `julia --make.jl`. Alternatively, start the Julia REPL, activate the `Project.toml` in this directory, then include `make.jl`. For debugging, consider setting `draft=true` in the `makedocs` function found in `make.jl`. This will avoid running the `@example` blocks when generating the tutorials.
14+
15+
Currently you must write the tutorial directly in the docs rather than in a source file. See `tutorials` for examples.
1516

1617
Code snippets must use the triple backtick with a label to run. The environment carries over so long as the labels match. Example:
1718

@@ -21,4 +22,4 @@ x = rand()
2122

2223
```@example tutorial_1
2324
print(x)
24-
```
25+
```

docs/make.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ makedocs(
88
clean = true,
99
warnonly = true,
1010
format = Documenter.HTML(;
11-
assets = String["assets/header.js", "assets/header.css", "assets/theme.css"],
1211
collapselevel=1,
1312
),
1413
sitename = "Gen.jl",

docs/pages.jl

Lines changed: 34 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,45 @@
11
pages = [
2-
"Home" => "index.md",
3-
"Getting Started" => [
4-
"Example 1: Linear Regression" => "getting_started/linear_regression.md",
5-
],
2+
"Gen.jl" => "index.md",
63
"Tutorials" => [
7-
"Basics" => [
8-
"tutorials/basics/modeling_in_gen.md",
9-
"tutorials/basics/gfi.md",
10-
"tutorials/basics/combinators.md",
11-
"tutorials/basics/particle_filter.md",
12-
"tutorials/basics/vi.md",
13-
],
14-
"Advanced" => [
15-
"tutorials/trace_translators.md",
16-
],
17-
"Model Optmizations" => [
18-
"Speeding Inference with the Static Modeling Language" => "tutorials/model_optimizations/scaling_with_sml.md",
19-
],
4+
"Getting Started" => "tutorials/getting_started.md",
5+
"Introduction to Modeling in Gen" => "tutorials/modeling_in_gen.md",
6+
"Object Tracking with SMC" => "tutorials/smc.md",
7+
"Learning Generative Functions" => "tutorials/learning_gen_fns.md",
8+
"Speeding Up Inference with the SML" => "tutorials/scaling_with_sml.md",
209
],
2110
"How-to Guides" => [
22-
"MCMC Kernels" => "how_to/mcmc_kernels.md",
23-
"Custom Distributions" => "how_to/custom_distributions.md",
24-
"Custom Modeling Languages" => "how_to/custom_dsl.md",
25-
"Custom Gradients" => "how_to/custom_derivatives.md",
26-
"Incremental Computation" => "how_to/custom_incremental_computation.md",
11+
"Extending Gen" => "how_to/extending_gen.md",
12+
"Adding New Distributions" => "how_to/custom_distributions.md",
13+
"Adding New Generative Functions" => "how_to/custom_gen_fns.md",
14+
"Custom Gradients" => "how_to/custom_gradients.md",
15+
"Custom Incremental Computation" => "how_to/custom_incremental_computation.md",
2716
],
28-
"API Reference" => [
17+
"Reference" => [
18+
"Core Interfaces" => [
19+
"Generative Function Interface" => "ref/core/gfi.md",
20+
"Choice Maps" => "ref/core/choice_maps.md",
21+
"Selections" => "ref/core/selections.md",
22+
"Change Hints" => "ref/core/change_hints.md",
23+
],
2924
"Modeling Library" => [
30-
"Generative Functions" => "api/model/gfi.md",
31-
"Probability Distributions" => "api/model/distributions.md",
32-
"Choice Maps" => "api/model/choice_maps.md",
33-
"Built-in Modeling Languages" => "api/model/modeling.md",
34-
"Combinators" => "api/model/combinators.md",
35-
"Selections" => "api/model/selections.md",
36-
"Optimizing Trainable Parameters" => "api/model/parameter_optimization.md",
37-
"Trace Translators" => "api/model/trace_translators.md",
25+
"Built-In Modeling Language" => "ref/modeling/dml.md",
26+
"Static Modeling Language" => "ref/modeling/sml.md",
27+
"Probability Distributions" => "ref/modeling/distributions.md",
28+
"Combinators" => "ref/modeling/combinators.md",
29+
"Custom Generative Functions" => "ref/modeling/custom_gen_fns.md",
3830
],
3931
"Inference Library" => [
40-
"Importance Sampling" => "api/inference/importance.md",
41-
"MAP Optimization" => "api/inference/map.md",
42-
"Markov chain Monte Carlo" => "api/inference/mcmc.md",
43-
"MAP Optimization" => "api/inference/map.md",
44-
"Particle Filtering" => "api/inference/pf.md",
45-
"Variational Inference" => "api/inference/vi.md",
46-
"Learning Generative Functions" => "api/inference/learning.md"
32+
"Importance Sampling" => "ref/inference/importance.md",
33+
"Markov Chain Monte Carlo" => "ref/inference/mcmc.md",
34+
"Particle Filtering & SMC" => "ref/inference/pf.md",
35+
"Trace Translators" => "ref/inference/trace_translators.md",
36+
"Parameter Optimization" => "ref/inference/parameter_optimization.md",
37+
"MAP Optimization" => "ref/inference/map.md",
38+
"Variational Inference" => "ref/inference/vi.md",
39+
"Wake-Sleep Learning" => "ref/inference/wake_sleep.md",
4740
],
41+
"Internals" => [
42+
"Modeling Language Implementation" => "ref/internals/language_implementation.md",
43+
]
4844
],
49-
"Explanation and Internals" => [
50-
"Modeling Language Implementation" => "explanations/language_implementation.md",
51-
"explanations/combinator_design.md"
52-
]
5345
]

docs/src/api/inference/map.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/src/api/inference/mcmc.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

docs/src/api/inference/pf.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/src/api/inference/vi.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/src/api/model/gfi.md

Lines changed: 0 additions & 55 deletions
This file was deleted.

docs/src/api/model/trace_translators.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/src/assets/header.css

Lines changed: 0 additions & 138 deletions
This file was deleted.

0 commit comments

Comments
 (0)