Skip to content

Commit 90be5ac

Browse files
committed
working and hopefully illustrative doc skeleton
1 parent ecb5d17 commit 90be5ac

File tree

7 files changed

+120
-11
lines changed

7 files changed

+120
-11
lines changed

docs/source/conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110

111111
# myst and panels config
112112
jupyter_execute_notebooks = "off"
113-
myst_heading_anchors = 3
113+
myst_heading_anchors = 2
114114
myst_enable_extensions = [
115115
"colon_fence",
116116
]
@@ -195,7 +195,12 @@
195195
"github_version": "main",
196196
"doc_path": "docs/source/",
197197
}
198-
html_sidebars = {"learn": [], "**": ["sidebar-nav-bs.html", "sidebar-ethical-ads.html"]}
198+
# this controls which sidebar sections are available in which pages. [] removes the left sidebar
199+
html_sidebars = {
200+
"learn": [],
201+
"installation": [],
202+
"**": ["sidebar-nav-bs.html", "sidebar-ethical-ads.html"],
203+
}
199204

200205
# Add any paths that contain custom themes here, relative to this directory.
201206
# html_theme_path = []

docs/source/index.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,39 @@
11
# PyMC3 documentation
22

3-
Page in construction
3+
Page in construction.
4+
5+
For now there are only some examples of https://sphinx-design.readthedocs.io/en/sbt-theme/index.html
6+
usage.
47

58
:::{button-ref} learning
9+
:ref-type: ref
10+
:color: primary
11+
:expand:
12+
13+
Getting Started as giant long button
14+
:::
15+
16+
:::::{grid} 1 1 3 3
17+
18+
:::{grid-item}
19+
:::
20+
21+
::::{grid-item}
22+
:::{button-link} https://numfocus.org/donate-to-pymc3
23+
:expand:
24+
:color: secondary
625

7-
Getting Started
26+
Donate as button within a grid
827
:::
28+
::::
29+
30+
:::{grid-item}
31+
:::
32+
:::::
33+
34+
Also add a cool icon: in default size {fas}`check-circle`, or extra large
35+
{fas}`check-circle;fa-10x`. See https://fontawesome.com/v5.15/how-to-use/on-the-web/styling/sizing-icons
36+
for options.
937

1038
:::{toctree}
1139
:maxdepth: 1

docs/source/installation.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,46 @@ Move the 3 wiki pages over to here.
55
with sphinx_design we can have common content in a single place,
66
and whenever there is some specific guidance that depends on OS use
77
tabs, which can be syncronized. That is, if one tab is switched over to
8-
windows, all tabs will be moved to windows.
8+
windows, all tabs will be moved to windows. For example:
99

1010
::::{tab-set}
1111
:::{tab-item} Linux
12+
:sync: linux
1213

1314
specific linux content
1415
:::
1516

1617
:::{tab-item} MacOS
18+
:sync: mac
1719

1820
specific macos content
1921
:::
2022

2123
:::{tab-item} Windows
24+
:sync: windows
2225

2326
specific windows content
2427
:::
2528
::::
2629

2730
more common content
31+
32+
::::{tab-set}
33+
:::{tab-item} Linux
34+
:sync: linux
35+
36+
extra specific linux content, i.e. testing the installation was successful
37+
:::
38+
39+
:::{tab-item} MacOS
40+
:sync: mac
41+
42+
extra specific macosx content, i.e. testing the installation was successful
43+
:::
44+
45+
:::{tab-item} Windows
46+
:sync: windows
47+
48+
extra specific windows content, i.e. testing the installation was successful
49+
:::
50+
::::

docs/source/learn/step1.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Step 1
2+
3+
Detailed explanation of step 1, which sections of the documentation are indicated
4+
and which external references are recommended. i.e. to make the most of pymc3, you should
5+
be familiar with Bayesian statistics. Here are some books whose code is available using pymc3 to
6+
help you learn Bayesian statistics with pymc3.

docs/source/learn/step2.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Step 2
2+
3+
Detailed explanation of step 2, which sections of the documentation are indicated
4+
and which external references are recommended.
5+
6+
::::{grid} 1 2 3 4
7+
8+
:::{grid-item}
9+
{fas}`info-circle;fa-5x`
10+
11+
{doc}`case_studies/multilevel_modeling`
12+
:::
13+
:::{grid-item}
14+
{fas}`golf-ball;fa-5x`
15+
16+
{doc}`case_studies/putting_workflow`
17+
:::
18+
:::{grid-item}
19+
{fas}`book-open;fa-5x`
20+
21+
{doc}`diagnostics_and_criticism/model_comparison`
22+
:::
23+
:::{grid-item}
24+
{fas}`football-ball;fa-5x`
25+
26+
{doc}`case_studies/rugby_analytics`
27+
:::
28+
::::

docs/source/learn/step3.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Step 3
2+
3+
More content

docs/source/learning.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,32 @@
11
(learning)=
22
# Learning
33

4-
## Step 1
5-
Links to books and pymc-devs/resources
4+
I propose the following pattern to be followed in general.
5+
Each navbar section (which are the pages listed in the index toctree)
6+
should have an overview of the contents of the section and a hidden
7+
toctree to the pages within that section (if any). This will make the
8+
pages appear in the left sidebar for easy navigation while keeping the
9+
in page toc on the right sidebar.
10+
11+
## Step 1 overview
12+
Links to books and pymc-devs/resources.
613

714
---
8-
## Step 2
15+
## Step 2 overview
916
Links to beginner lever notebooks. For example,
1017
thanks to intersphinx, we can cite the getting started
11-
notebook with {doc}`nb:examples/getting_started`
18+
notebook with {doc}`nb:getting_started` (the path in pymc-examples repo excluding
19+
the `examples` folder, or using manual anchors if we decide to create them).
1220

1321
---
14-
## Step 3
22+
## Step 3 overview
23+
24+
Links to intermediate notebooks. {doc}`More about step 3... <learn/step3>`
25+
26+
```{toctree}
27+
:hidden:
1528
16-
Links to intermediate notebooks
29+
learn/step1
30+
learn/step2
31+
learn/step3
32+
```

0 commit comments

Comments
 (0)