Skip to content

Commit e158db6

Browse files
committed
Reorganize docs, add changelog
1 parent 4b7f10f commit e158db6

29 files changed

+81
-17
lines changed

docsrc/_templates/title.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<!-- This will display the version of the docs -->
2-
<a class='navbar-brand' href='index.html'>CmdStanPy {{ version }}</a>
2+
<a class='navbar-brand' href='{{ pathto(root_doc) }}'>CmdStanPy {{ version }}</a>

docsrc/changes.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
.. py:currentmodule:: cmdstanpy
2+
3+
.. NOTE FOR MAINTAINERS: This should be updated just before the release action is run, not every PR.
4+
5+
What's New
6+
==========
7+
8+
For full changes, see the `Releases page <https://github.com/stan-dev/cmdstanpy/releases>`__ on GitHub.
9+
10+
CmdStanPy 1.0.4
11+
---------------
12+
13+
- Fix an issue with :func:`cmdstanpy.install_cmdstan()` where the installation would report that it had failed even when it had not.
14+
15+
CmdStanPy 1.0.3
16+
---------------
17+
18+
- Fix an issue where Stan fit objects were not ``pickle``-able when they previously were.
19+
20+
.. warning::
21+
We still do not recommend pickling cmdstanpy objects, but rather using functions :meth:`~CmdStanMCMC.save_csvfiles` and :func:`~cmdstanpy.from_csv`.
22+
23+
CmdStanPy 1.0.2
24+
---------------
25+
26+
- CmdStanPy can now format (and canonicalize) your Stan files with :meth:`CmdStanModel.format()`
27+
- Stan variables can now be accessed from fit objects using the `.` syntax when no naming conflicts occur. For example, previous code ``fit.stan_variable("my_cool_variable")`` can now be written ``fit.my_cool_variable``
28+
- CmdStanPy is more robust to running in threaded environments and tries harder to not overwrite its own output files
29+
- The ``install_cmdstan`` script can now be run in interactive mode using ``--interactive``/``-i``
30+
- CmdStanPy now computes some diagnostics after running HMC and will warn you about post-warmup divergences and treedepth exceptions
31+
- Runtime exceptions in the ``generated quantities`` block should be recognized better now.
32+
- The default level of precision used by :meth:`CmdStanMCMC.summary()` is now 6, as it is when ``stansummary`` is used from the command line.\
33+
- Various documentation improvements
34+
35+
36+
CmdStanPy 1.0.1
37+
---------------
38+
39+
- Support new optimizations in CmdStan 2.29
40+
- Support complex numbers as both inputs and outputs of Stan programs
41+
- Sped up assembling output by only reading draws at most once
42+
- Fixed an issue where a command failing could change your working directory
43+
- Improve error messages in some cases
44+
- CmdStanPy no longer changes the global root logging level
45+
46+
.. note::
47+
The minimum supported version for CmdStanPy is now Python 3.7.
48+
49+
50+
CmdStanPy 1.0.0
51+
---------------
52+
53+
- Initial release

docsrc/conf.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def emit(self, record):
133133

134134
# General information about the project.
135135
project = 'CmdStanPy'
136-
copyright = '2021, Stan Development Team'
136+
copyright = '2022, Stan Development Team'
137137

138138
# The version info for the project you're documenting, acts as replacement for
139139
# |version| and |release|, also used in various other places throughout the
@@ -192,7 +192,6 @@ def emit(self, record):
192192

193193
# The theme to use for HTML and HTML Help pages. See the documentation for
194194
# a list of builtin themes.
195-
# html_theme = 'sphinx_rtd_theme'
196195
html_theme = 'pydata_sphinx_theme' # https://pydata-sphinx-theme.readthedocs.io/en/latest/index.html
197196
# theme is customized via _templates/
198197

@@ -225,7 +224,7 @@ def emit(self, record):
225224
"show_toc_level": 2,
226225
}
227226

228-
html_sidebars = {"**": [], "index": ['logo'], "overview": ['logo']}
227+
html_sidebars = {"**": [], "index": ['logo'], "users-guide/overview": ['logo']}
229228

230229
html_context = {
231230
"github_user": "stan-dev",
@@ -426,7 +425,7 @@ def emit(self, record):
426425
'https://docs.python.org/{.major}'.format(sys.version_info),
427426
None,
428427
),
429-
'numpy': ('https://docs.scipy.org/doc/numpy/', None),
428+
'numpy': ('https://numpy.org/doc/stable/', None),
430429
'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),
431430
'xarray': ('https://xarray.pydata.org/en/stable/', None),
432431
}

docsrc/index.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ set of model, data, and posterior estimates.
2424
.. toctree::
2525
:maxdepth: 4
2626

27-
overview
2827
installation
29-
hello_world
30-
workflow
31-
examples
32-
community
28+
users-guide
3329
api
30+
changes
31+
community
32+
3433

3534
:ref:`genindex`

docsrc/users-guide.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
User's Guide
2+
============
3+
4+
This section provides examples and some narrative description about the
5+
usage of CmdStanPy.
6+
7+
.. toctree::
8+
:titlesonly:
9+
10+
users-guide/overview
11+
users-guide/hello_world
12+
users-guide/workflow
13+
users-guide/examples
File renamed without changes.
File renamed without changes.

docsrc/examples/Maximum Likelihood Estimation.ipynb renamed to docsrc/users-guide/examples/Maximum Likelihood Estimation.ipynb

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)