Skip to content

Commit 5d70e83

Browse files
authored
Reorganise user guide section (#578)
* Don't let julia-actions delete cache * Reorganise user guide * Allow different workflows/PRs to share cached Julia environment * Merge _quarto.yml and _metadata.yml * Reorganise tutorials section * Fix colon in title * Fix aliases * Fix more aliases * Tidy up navigation bar
1 parent 2190475 commit 5d70e83

File tree

32 files changed

+123
-109
lines changed

32 files changed

+123
-109
lines changed

.github/workflows/preview.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ concurrency:
1010
group: docs
1111

1212
permissions:
13-
actions: write
1413
contents: write
1514
pull-requests: write
1615

@@ -31,6 +30,9 @@ jobs:
3130

3231
- name: Load Julia packages from cache
3332
uses: julia-actions/cache@v2
33+
with:
34+
cache-name: julia-cache;${{ hashFiles('**/Manifest.toml') }}
35+
delete-old-caches: false
3436

3537
# Note: needs resolve() to fix #518
3638
- name: Instantiate Julia environment

_quarto.yml

Lines changed: 51 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ website:
2020
background: "#073c44"
2121
foreground: "#ffffff"
2222
left:
23-
- href: tutorials/docs-00-getting-started/
23+
- href: getting-started/
2424
text: Get Started
25-
- href: tutorials/00-introduction/
25+
- href: tutorials/coin-flipping/
2626
text: Tutorials
2727
- href: https://turinglang.org/library/
2828
text: Libraries
@@ -50,52 +50,40 @@ website:
5050
- text: documentation
5151
collapse-level: 1
5252
contents:
53-
- section: "Users"
54-
# href: tutorials/index.qmd, This page will be added later so keep this line commented
55-
contents:
56-
- tutorials/docs-00-getting-started/index.qmd
57-
- tutorials/docs-12-using-turing-guide/index.qmd
53+
- getting-started/index.qmd
54+
- core-functionality/index.qmd
5855

59-
- section: "Usage Tips"
60-
collapse-level: 1
61-
contents:
62-
- tutorials/docs-10-using-turing-autodiff/index.qmd
63-
- tutorials/usage-custom-distribution/index.qmd
64-
- tutorials/usage-probability-interface/index.qmd
65-
- tutorials/usage-modifying-logprob/index.qmd
66-
- tutorials/usage-generated-quantities/index.qmd
67-
- tutorials/docs-17-mode-estimation/index.qmd
68-
- tutorials/docs-13-using-turing-performance-tips/index.qmd
69-
- tutorials/docs-15-using-turing-sampler-viz/index.qmd
70-
- tutorials/docs-11-using-turing-dynamichmc/index.qmd
71-
- tutorials/docs-16-using-turing-external-samplers/index.qmd
72-
73-
- section: "Tutorials"
74-
contents:
75-
- tutorials/00-introduction/index.qmd
76-
- text: Gaussian Mixture Models
77-
href: tutorials/01-gaussian-mixture-model/index.qmd
78-
- tutorials/02-logistic-regression/index.qmd
79-
- tutorials/03-bayesian-neural-network/index.qmd
80-
- text: Hidden Markov Models
81-
href: tutorials/04-hidden-markov-model/index.qmd
82-
- tutorials/05-linear-regression/index.qmd
83-
- text: Infinite Mixture Model
84-
href: tutorials/06-infinite-mixture-model/index.qmd
85-
- tutorials/07-poisson-regression/index.qmd
86-
- text: Multinomial Logistic Regression
87-
href: tutorials/08-multinomial-logistic-regression/index.qmd
88-
- text: Variational Inference
89-
href: tutorials/09-variational-inference/index.qmd
90-
- text: "Bayesian Differential Equations"
91-
href: tutorials/10-bayesian-differential-equations/index.qmd
92-
- text: "Probabilistic PCA"
93-
href: tutorials/11-probabilistic-pca/index.qmd
94-
- tutorials/13-seasonal-time-series/index.qmd
95-
- text: "Introduction to Gaussian Processes"
96-
href: tutorials/15-gaussian-processes/index.qmd
97-
- text: "Gaussian Process Latent Variable Models"
98-
href: tutorials/12-gplvm/index.qmd
56+
- section: "Usage Tips"
57+
collapse-level: 1
58+
contents:
59+
- usage/automatic-differentiation/index.qmd
60+
- usage/custom-distribution/index.qmd
61+
- usage/probability-interface/index.qmd
62+
- usage/modifying-logprob/index.qmd
63+
- usage/generated-quantities/index.qmd
64+
- usage/mode-estimation/index.qmd
65+
- usage/performance-tips/index.qmd
66+
- usage/sampler-visualisation/index.qmd
67+
- usage/dynamichmc/index.qmd
68+
- usage/external-samplers/index.qmd
69+
70+
- section: "Tutorials"
71+
contents:
72+
- tutorials/coin-flipping/index.qmd
73+
- tutorials/gaussian-mixture-models/index.qmd
74+
- tutorials/bayesian-logistic-regression/index.qmd
75+
- tutorials/bayesian-neural-networks/index.qmd
76+
- tutorials/hidden-markov-models/index.qmd
77+
- tutorials/bayesian-linear-regression/index.qmd
78+
- tutorials/infinite-mixture-models/index.qmd
79+
- tutorials/bayesian-poisson-regression/index.qmd
80+
- tutorials/multinomial-logistic-regression/index.qmd
81+
- tutorials/variational-inference/index.qmd
82+
- tutorials/bayesian-differential-equations/index.qmd
83+
- tutorials/probabilistic-pca/index.qmd
84+
- tutorials/bayesian-time-series-analysis/index.qmd
85+
- tutorials/gaussian-processes-introduction/index.qmd
86+
- tutorials/gaussian-process-latent-variable-models/index.qmd
9987

10088
- section: "Developers"
10189
contents:
@@ -144,13 +132,26 @@ format:
144132
light: cosmo
145133
dark: [cosmo, theming/theme-dark.scss]
146134
css: theming/styles.css
147-
toc: true
148135
smooth-scroll: true
149-
code-overflow: wrap
150136
output-block-background: true
151-
137+
toc: true
138+
toc-title: "Table of Contents"
139+
code-fold: false
140+
code-overflow: scroll
152141
execute:
142+
echo: true
143+
output: true
153144
freeze: auto
145+
include-in-header:
146+
- text: |
147+
<style>
148+
a {
149+
text-decoration: none;
150+
}
151+
a:hover {
152+
text-decoration: underline;
153+
}
154+
</style>
154155
155156
# These variables can be used in any qmd files, e.g. for links:
156157
# the [Getting Started page]({{< meta get-started >}})

tutorials/docs-12-using-turing-guide/index.qmd renamed to core-functionality/index.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: "Core Functionality"
33
engine: julia
4+
aliases:
5+
- ../tutorials/docs-12-using-turing-guide/index.html
46
---
57

68
```{julia}

tutorials/docs-00-getting-started/index.qmd renamed to getting-started/index.qmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
title: Getting Started
33
engine: julia
44
aliases:
5-
- ../../
5+
- ../tutorials/docs-00-getting-started/index.html
6+
- ../index.html
67
---
78

89
```{julia}

tutorials/_metadata.yml

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

tutorials/10-bayesian-differential-equations/index.qmd renamed to tutorials/bayesian-differential-equations/index.qmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
2-
title: Bayesian Estimation of Differential Equations
2+
title: Bayesian Differential Equations
33
engine: julia
4+
aliases:
5+
- ../10-bayesian-differential-equations/index.html
46
---
57

68
```{julia}

tutorials/05-linear-regression/index.qmd renamed to tutorials/bayesian-linear-regression/index.qmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
2-
title: Linear Regression
2+
title: Bayesian Linear Regression
33
engine: julia
4+
aliases:
5+
- ../05-linear-regression/index.html
46
---
57

68
```{julia}

tutorials/02-logistic-regression/index.qmd renamed to tutorials/bayesian-logistic-regression/index.qmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Bayesian Logistic Regression
33
engine: julia
4+
aliases:
5+
- ../02-logistic-regression/index.html
46
---
57

68
```{julia}
@@ -271,4 +273,4 @@ end
271273

272274
The above shows that with a threshold of 0.07, we correctly predict a respectable portion of the defaults, and correctly identify most non-defaults. This is fairly sensitive to a choice of threshold, and you may wish to experiment with it.
273275

274-
This tutorial has demonstrated how to use Turing to perform Bayesian logistic regression.
276+
This tutorial has demonstrated how to use Turing to perform Bayesian logistic regression.

tutorials/03-bayesian-neural-network/index.qmd renamed to tutorials/bayesian-neural-networks/index.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Bayesian Neural Networks
33
engine: julia
4+
aliases:
5+
- ../03-bayesian-neural-network/index.html
46
---
57

68
```{julia}

tutorials/07-poisson-regression/index.qmd renamed to tutorials/bayesian-poisson-regression/index.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Bayesian Poisson Regression
33
engine: julia
4+
aliases:
5+
- ../07-poisson-regression/index.html
46
---
57

68
```{julia}

0 commit comments

Comments
 (0)