Skip to content

Commit ecb5d17

Browse files
committed
example doc restructure
1 parent d80b7f1 commit ecb5d17

22 files changed

+93
-909
lines changed

.gitmodules

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

docs/source/about.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
:orphan:
2-
3-
..
4-
_href from docs/source/index.rst
5-
61
.. _about:
72

83
***********
File renamed without changes.

docs/source/conf.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# add these directories to sys.path here. If the directory is relative to the
2525
# documentation root, use os.path.abspath to make it absolute, like shown here.
2626
sys.path.insert(0, os.path.abspath(os.path.join("..", "..")))
27-
sys.path.insert(0, os.path.abspath("sphinxext"))
27+
# sys.path.insert(0, os.path.abspath("sphinxext"))
2828
import pymc3 # isort:skip
2929

3030
# -- General configuration ------------------------------------------------
@@ -47,9 +47,11 @@
4747
"IPython.sphinxext.ipython_directive",
4848
"sphinx.ext.autosectionlabel",
4949
"sphinx.ext.napoleon",
50-
"gallery_generator",
50+
# "gallery_generator",
5151
"myst_nb",
5252
"sphinx_panels",
53+
"sphinx_design",
54+
"sphinx_copybutton",
5355
]
5456

5557
# Don't auto-generate summary for class members.
@@ -146,6 +148,7 @@
146148
"arviz": ("https://arviz-devs.github.io/arviz/", None),
147149
"aesara": ("https://aesara.readthedocs.io/en/latest/", None),
148150
"numpy": ("https://numpy.org/doc/stable/", None),
151+
"nb": ("https://pymc-examples.readthedocs.io/en/latest/", None),
149152
}
150153

151154

@@ -172,8 +175,14 @@
172175
"url": "https://twitter.com/pymc_devs",
173176
"icon": "fab fa-twitter-square",
174177
},
178+
{
179+
"name": "Discourse",
180+
"url": "https://discourse.pymc.io",
181+
"icon": "fab fa-discourse",
182+
},
175183
],
176184
"show_prev_next": False,
185+
"navbar_align": "left",
177186
"navbar_start": ["navbar-logo", "navbar-version"],
178187
"navbar_end": ["search-field.html", "navbar-icon-links.html"],
179188
"search_bar_text": "Search...",

docs/source/contributing/index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Contributing
2+
3+
Explaining how to contribute to PyMC
4+
5+
## Code related PRs
6+
7+
## Documentation
8+
9+
## Others
10+
Issue triaging? reviewing? proofreading...
11+
12+
:::{toctree}
13+
:hidden:
14+
15+
developer_guide
16+
developer_guide_implementing_distribution
17+
:::

docs/source/index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# PyMC3 documentation
2+
3+
Page in construction
4+
5+
:::{button-ref} learning
6+
7+
Getting Started
8+
:::
9+
10+
:::{toctree}
11+
:maxdepth: 1
12+
:hidden:
13+
14+
installation
15+
learning
16+
api
17+
community
18+
contributing/index
19+
about
20+
:::

docs/source/index.rst renamed to docs/source/index_legagy.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
.. title:: PyMC3 Documentation
24

35
.. raw:: html

docs/source/installation.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Installation guide
2+
3+
Move the 3 wiki pages over to here.
4+
5+
with sphinx_design we can have common content in a single place,
6+
and whenever there is some specific guidance that depends on OS use
7+
tabs, which can be syncronized. That is, if one tab is switched over to
8+
windows, all tabs will be moved to windows.
9+
10+
::::{tab-set}
11+
:::{tab-item} Linux
12+
13+
specific linux content
14+
:::
15+
16+
:::{tab-item} MacOS
17+
18+
specific macos content
19+
:::
20+
21+
:::{tab-item} Windows
22+
23+
specific windows content
24+
:::
25+
::::
26+
27+
more common content

docs/source/learning.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
(learning)=
2+
# Learning
3+
4+
## Step 1
5+
Links to books and pymc-devs/resources
6+
7+
---
8+
## Step 2
9+
Links to beginner lever notebooks. For example,
10+
thanks to intersphinx, we can cite the getting started
11+
notebook with {doc}`nb:examples/getting_started`
12+
13+
---
14+
## Step 3
15+
16+
Links to intermediate notebooks

docs/source/pymc-examples

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/source/semantic_sphinx/layout.html

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

docs/source/semantic_sphinx/search.html

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

0 commit comments

Comments
 (0)