Skip to content

Commit 7d2a793

Browse files
WIP
Change log: - Upload new PyMC logo - Updated conf.py to pymc instead of pymc3 - Start configuring and populating index page - Start configuring and populating learning page - Start configuring and populating api page - Updated API to follow the docs/Architecture.png layout - Start configuring and populating learning page - Fix typo in filename of "index legacy"
1 parent ec50e41 commit 7d2a793

File tree

7 files changed

+230
-62
lines changed

7 files changed

+230
-62
lines changed

docs/source/api.rst

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,16 @@ API Reference
1111

1212
.. toctree::
1313
:maxdepth: 2
14-
15-
api/distributions
16-
api/bounds
17-
api/inference
18-
api/glm
19-
api/gp
20-
api/plots
21-
api/stats
14+
2215
api/backends
23-
api/math
24-
api/data
16+
api/distributions
17+
api/gaussian_process
2518
api/model
26-
api/model_graph
27-
api/variables
28-
api/shape_utils
2919
api/ode
20+
api/samplers
21+
api/smc
22+
api/step_methods
23+
api/vi
3024

3125
Indices and tables
3226
===================

docs/source/conf.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
#!/usr/bin/env python3
66
#
7-
# pymc3 documentation build configuration file, created by
7+
# pymc documentation build configuration file, created by
88
# sphinx-quickstart on Sat Dec 26 14:40:23 2015.
99
#
1010
# This file is execfile()d with the current directory set to its
@@ -78,7 +78,7 @@
7878
master_doc = "index"
7979

8080
# General information about the project.
81-
project = "PyMC3"
81+
project = "PyMC"
8282
copyright = "2021, The PyMC Development Team"
8383
author = "PyMC contributors"
8484

@@ -167,7 +167,7 @@
167167
"icon_links": [
168168
{
169169
"name": "GitHub",
170-
"url": "https://github.com/pymc-devs/pymc3",
170+
"url": "https://github.com/pymc-devs/pymc",
171171
"icon": "fab fa-github-square",
172172
},
173173
{
@@ -191,7 +191,7 @@
191191
}
192192
html_context = {
193193
"github_user": "pymc-devs",
194-
"github_repo": "pymc3",
194+
"github_repo": "pymc",
195195
"github_version": "main",
196196
"doc_path": "docs/source/",
197197
}
@@ -214,12 +214,12 @@
214214

215215
# The name of an image file (relative to this directory) to place at the top
216216
# of the sidebar.
217-
html_logo = "../pymc3_logo.jpg"
217+
html_logo = "../pymc_logo.jpeg"
218218

219219
# The name of an image file (within the static path) to use as favicon of the
220220
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
221221
# pixels large.
222-
html_favicon = "../logos/PyMC3.ico"
222+
html_favicon = "../logos/PyMC.ico"
223223

224224
# Add any paths that contain custom static files (such as style sheets) here,
225225
# relative to this directory. They are copied after the builtin static files,
@@ -287,7 +287,7 @@
287287
# html_search_scorer = 'scorer.js'
288288

289289
# Output file base name for HTML help builder.
290-
htmlhelp_basename = "pymc3doc"
290+
htmlhelp_basename = "pymcdoc"
291291

292292
# -- Options for LaTeX output ---------------------------------------------
293293

@@ -305,7 +305,7 @@
305305
# Grouping the document tree into LaTeX files. List of tuples
306306
# (source start file, target name, title,
307307
# author, documentclass [howto, manual, or own class]).
308-
latex_documents = [(master_doc, "pymc3.tex", "PyMC3 Documentation", "PyMC developers", "manual")]
308+
latex_documents = [(master_doc, "pymc.tex", "PyMC Documentation", "PyMC developers", "manual")]
309309

310310
# The name of an image file (relative to this directory) to place at the top of
311311
# the title page.
@@ -332,7 +332,7 @@
332332

333333
# One entry per manual page. List of tuples
334334
# (source start file, name, description, authors, manual section).
335-
man_pages = [(master_doc, "pymc3", "pymc3 Documentation", [author], 1)]
335+
man_pages = [(master_doc, "pymc", "pymc Documentation", [author], 1)]
336336

337337
# If true, show URL addresses after external links.
338338
# man_show_urls = False
@@ -346,10 +346,10 @@
346346
texinfo_documents = [
347347
(
348348
master_doc,
349-
"pymc3",
350-
"pymc3 Documentation",
349+
"pymc",
350+
"pymc Documentation",
351351
author,
352-
"pymc3",
352+
"pymc",
353353
"One line description of project.",
354354
"Miscellaneous",
355355
)

docs/source/contributing/index.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# Contributing
22

3-
Explaining how to contribute to PyMC
3+
PyMC is an open source, collective effort. Find all the ways in which you can help make it better.
44

5-
## Code related PRs
5+
## Help develop PyMC
66

7-
## Documentation
7+
reviewing? proofreading...
8+
9+
## Help improve the documentation
810

911
## Others
10-
Issue triaging? reviewing? proofreading...
12+
Issue triaging
1113

1214
:::{toctree}
1315
:hidden:

docs/source/index.md

Lines changed: 75 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,94 @@
1-
# PyMC3 documentation
2-
3-
Page in construction.
1+
:::{card}
2+
:img-background: pymc/docs/pymc_logo.jpeg
3+
:margin: 0 2 auto auto
4+
:width: 50%
5+
---
6+
scale: 80
7+
---
8+
:::
49

5-
For now there are only some examples of https://sphinx-design.readthedocs.io/en/sbt-theme/index.html
6-
usage.
10+
Probabilistic programming in Python
711

812
:::{button-ref} learning
9-
:ref-type: ref
10-
:color: primary
11-
:expand:
13+
:color: secondary
14+
:shadow:
15+
16+
Get started!
17+
:::
18+
19+
:::{dropdown} Announcements: library name change and launching PyMC 4.0!
20+
:color: warning
21+
:icon: rocket
22+
:animate: fade-in
23+
:open:
24+
25+
We have two major announcements that we're excited to share. First of all, a new name for our library: the PyMC3 library you know and love is now called PyMC. PyMC3 still exists, as a specific major release between PyMC2 and PyMC 4.0. Read more about the renaming and how to solve related issues you might experience from this update [here]().
1226

13-
Getting Started as giant long button
27+
This ties into our second announcement, which is that we are hereby launching the newest version of PyMC: PyMC 4.0! Read more about this new release [here]().
1428
:::
1529

16-
:::::{grid} 1 1 3 3
30+
# Main Features & Benefits
1731

18-
:::{grid-item}
32+
::::{grid} 1 2 2 2
33+
:::{grid-item-card} Friendly modelling API
34+
PyMC allows you to write down models using an intuitive syntax to describe a data generating process.
1935
:::
36+
:::{grid-item-card} Cutting edge algorithms and model building blocks
37+
Fit your model using gradient-based MCMC algorithms like NUTS, using ADVI for fast approximate inference — including minibatch-ADVI for scaling to large datasets — or using Gaussian processes to build Bayesian nonparametric models.
38+
:::
39+
::::
40+
41+
# Support and Sponsors
42+
43+
PyMC is a non-profit project under NumFOCUS umbrella. If you value PyMC and want to support its development, consider donating to the project.
2044

21-
::::{grid-item}
2245
:::{button-link} https://numfocus.org/donate-to-pymc3
23-
:expand:
2446
:color: secondary
47+
:shadow:
2548

26-
Donate as button within a grid
49+
Donate
50+
:::
51+
52+
::::{grid} 1 3 3 3
53+
:::{grid-item-card}
54+
TODO add sponsor logo
55+
:::
56+
:::{grid-item-card}
57+
TODO add sponsor logo
58+
:::
59+
:::{grid-item-card}
60+
TODO add sponsor logo
2761
:::
2862
::::
2963

30-
:::{grid-item}
64+
# Citing PyMC
65+
66+
Use this to cite the library:
67+
68+
Salvatier J., Wiecki T.V., Fonnesbeck C. (2016) Probabilistic programming in Python using PyMC3. PeerJ Computer Science 2:e55 [DOI: 10.7717/peerj-cs.55.](https://doi.org/10.7717/peerj-cs.55)
69+
70+
See [Google Scholar](https://scholar.google.de/scholar?oi=bibs&hl=en&authuser=1&cites=6936955228135731011) for a continuously updated list of papers citing PyMC3.
71+
72+
::::{grid} 2
73+
:gutter: 3 3 4 5
74+
75+
:::{grid-item-card} Need help?
76+
[Ask a question!]()
77+
78+
[Read the User Docs]()
79+
80+
[Read the Developer Docs]()
81+
3182
:::
32-
:::::
83+
:::{grid-item-card} Around the web
84+
[Github]()
85+
86+
[Twitter]()
87+
88+
[Discourse]()
89+
:::
90+
::::
3391

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.
3792

3893
:::{toctree}
3994
:maxdepth: 1
@@ -46,3 +101,4 @@ community
46101
contributing/index
47102
about
48103
:::
104+
File renamed without changes.

docs/source/installation.md

Lines changed: 55 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,30 @@
11
# Installation guide
22

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. For example:
3+
To install PyMC 4.0, select the operating system where you want to perform the installation.
94

105
::::{tab-set}
116
:::{tab-item} Linux
127
:sync: linux
138

14-
specific linux content
9+
v4.0 linux installation
1510
:::
1611

1712
:::{tab-item} MacOS
1813
:sync: mac
1914

20-
specific macos content
15+
v4.0 macos installation
2116
:::
2217

2318
:::{tab-item} Windows
2419
:sync: windows
2520

26-
specific windows content
21+
v4.0 windows installation
2722
:::
2823
::::
2924

30-
more common content
25+
## Uninstalling PyMC3
26+
27+
We don't recommend installing pymc3 and pymc 4.0 in the same environment. To uninstall pymc3, do the following:
3128

3229
::::{tab-set}
3330
:::{tab-item} Linux
@@ -48,3 +45,51 @@ extra specific macosx content, i.e. testing the installation was successful
4845
extra specific windows content, i.e. testing the installation was successful
4946
:::
5047
::::
48+
49+
## Aesara Installation
50+
51+
PyMC uses Aesara. To install it, do:
52+
53+
54+
::::{tab-set}
55+
:::{tab-item} Linux
56+
:sync: linux
57+
58+
Aesara installation
59+
:::
60+
61+
:::{tab-item} MacOS
62+
:sync: mac
63+
64+
Aesara installation
65+
:::
66+
67+
:::{tab-item} Windows
68+
:sync: windows
69+
70+
Aesara installation
71+
:::
72+
::::
73+
74+
## Arviz Installation
75+
Plots and diagnostics are entirely done by ArviZ - if you follow the installation instructions above, then it will be installed alongside PyMC3.
76+
77+
::::{grid} 2
78+
:gutter: 3 3 4 5
79+
80+
:::{grid-item-card} Need help?
81+
[Ask a question!]()
82+
83+
[Read the User Docs]()
84+
85+
[Read the Developer Docs]()
86+
87+
:::
88+
:::{grid-item-card} Around the web
89+
[Github]()
90+
91+
[Twitter]()
92+
93+
[Discourse]()
94+
:::
95+
::::

0 commit comments

Comments
 (0)