Skip to content

Commit 79b28e9

Browse files
committed
Merge branch 'master' of https://github.com/stan-dev/docs
2 parents 59e1faf + c360c60 commit 79b28e9

15 files changed

Lines changed: 63 additions & 84 deletions

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Repository for the sources and published documentation set, versioned for each S
1515
+ `src/functions-reference` - Stan Functions Reference
1616
+ `src/reference-manual` - Stan Reference Manual
1717
+ `src/stan-users-guide` - Stan Users Guide
18+
+ `src/quarto-config` - A submodule of the [stan-dev/quarto-config](https://github.com/stan-dev/quarto-config) repository for shared files between the docs and Stan website
1819

1920
* `docs`: the directory `docs` on branch `master` is the [publishing source](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site) for the project pages site. Whenever a verified member of the Stan organization pushes to `docs` on branch `master`,
2021
GitHub (re)builds and (re)deploys the website.
@@ -34,15 +35,19 @@ the repository [quarto-config](https://github.com/stan-dev/quarto-config).
3435

3536
## Scripts to build and maintain the docset
3637

37-
### Check out submodule `quarto-config` into the `src` subdirectory
38+
**Checking out the repository**
3839

39-
To build the docs locally, you must first clone the quarto-config repo into the `src` subdirectory.
40+
In order to ensure the `quarto-config` folder is present, when cloning the repository, use the `--recursive` flag
4041

41-
```sh
42-
cd src
43-
git clone https://github.com/stan-dev/quarto-config
42+
```shell
43+
git clone --recursive https://github.com/stan-dev/docs.git
4444
```
4545

46+
If you already have a clone without this submodule, or if it falls out of date, you can run
47+
```shell
48+
git submodule update --init --recursive
49+
```
50+
To initialize or refresh it.
4651

4752
**`build.py`**
4853

src/cmdstan-guide/command_line_options.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The keyword value pair `sig_figs=<int>` specifies the
7979
number of significant digits for all numerical values in the output files.
8080
Allowable values are between 1 and 18, which is the maximum amount of precision
8181
available for 64-bit floating point arithmetic.
82-
The default value is 6. &nbsp;
82+
The default value is 8. &nbsp;
8383
***Note:*** increasing `sig_figs` above the default will increase the size of
8484
the output CSV files accordingly.
8585

src/cmdstan-guide/laplace_sample_config.qmd

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,6 @@ In comparison, running the NUTS-HMC sampler results in mean 2.6 and standard dev
9393
The header and first few data rows of the output sample are shown below.
9494

9595
```
96-
# stan_version_major = 2
97-
# stan_version_minor = 35
98-
# stan_version_patch = 0
99-
# model = bernoulli_model
100-
# start_datetime = 2022-12-20 01:01:14 UTC
10196
# method = laplace
10297
# laplace
10398
# mode = bernoulli_lbfgs.csv
@@ -114,11 +109,9 @@ The header and first few data rows of the output sample are shown below.
114109
# file = output.csv (Default)
115110
# diagnostic_file = (Default)
116111
# refresh = 100 (Default)
117-
# sig_figs = -1 (Default)
112+
# sig_figs = 8 (Default)
118113
# profile_file = profile.csv (Default)
119114
# num_threads = 1 (Default)
120-
# stanc_version = stanc3 v2.31.0-7-g20444266
121-
# stancflags =
122115
log_p__,log_q__,theta
123116
-9.4562,-2.33997,0.0498545
124117
-6.9144,-0.0117349,0.182898

src/cmdstan-guide/log_prob_config.qmd

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ This yields
7272

7373

7474
```
75-
# stan_version_major = 2
76-
# stan_version_minor = 31
77-
# stan_version_patch = 0
78-
# model = bernoulli_model
79-
# start_datetime = 2022-11-17 20:46:06 UTC
8075
# method = log_prob
8176
# log_prob
8277
# unconstrained_params = (Default)
@@ -92,11 +87,9 @@ This yields
9287
# file = output.csv (Default)
9388
# diagnostic_file = (Default)
9489
# refresh = 100 (Default)
95-
# sig_figs = -1 (Default)
90+
# sig_figs = 8 (Default)
9691
# profile_file = profile.csv (Default)
9792
# num_threads = 1 (Default)
98-
# stanc_version = stanc3 2.31.0 (Linux)
99-
# stancflags =
10093
lp_,theta
10194
-7.856,1.8
10295
```

src/cmdstan-guide/optimize_config.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ output
5858
file = output.csv (Default)
5959
diagnostic_file = (Default)
6060
refresh = 100 (Default)
61-
sig_figs = -1 (Default)
61+
sig_figs = 8 (Default)
6262
profile_file = profile.csv (Default)
6363
save_cmdstan_config = false (Default)
6464
num_threads = 1 (Default)

src/cmdstan-guide/pathfinder_config.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ output
6262
file = output.csv (Default)
6363
diagnostic_file = (Default)
6464
refresh = 100 (Default)
65-
sig_figs = -1 (Default)
65+
sig_figs = 8 (Default)
6666
profile_file = profile.csv (Default)
6767
save_cmdstan_config = false (Default)
6868
num_threads = 1 (Default)

src/cmdstan-guide/stan_csv_apdx.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ however, possible values include both positive and negative
1414
infinity and "Not-a-Number" which are represented as
1515
the strings `NaN`, `inf`, `+inf`, `-inf`.
1616
All other values are written in decimal notation by default with
17-
at most 6 digits of precision. The number of significant digits
18-
written can be controlled with argument `sig_figs=<int>`. See more
17+
at most 8 digits of precision. The number of significant digits
18+
written can be controlled with argument `sig_figs=<int>`. See more
1919
in [Output control arguments section](command_line_options.qmd#output-control.section).
2020

2121
Stan CSV files have a header row containing the column names.

src/cmdstan-guide/stansummary.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,5 @@ results in no percentiles being displayed in the output of the command.
186186
The amount of precision
187187
in the sampler output limits the amount of real precision in the summary report.
188188
CmdStan's command line interface also has output argument `sig_figs`.
189-
The default sampler output precision is 6.
189+
The default sampler output precision is 8.
190190
The `--sig_figs` argument to the stansummary program should not exceed the `sig_figs` argument to the sampler.

src/cmdstan-guide/variational_config.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ output
6666
file = output.csv (Default)
6767
diagnostic_file = (Default)
6868
refresh = 100 (Default)
69-
sig_figs = -1 (Default)
69+
sig_figs = 8 (Default)
7070
profile_file = profile.csv (Default)
7171
save_cmdstan_config = false (Default)
7272
num_threads = 1 (Default)

src/functions-reference/functions_index.qmd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)