The goal of adodownr
is to provide Stata users with documentation
websites akin those offered to R users by pkgdown
.
You can install the development version of adodownr like so:
if (!require("pak")) install.packages("pak")
pak::pak("arthur-shaw/adodownr")
With great power comes great responsibility.
Before adodownr can perform its feats of heroics, the target Stata package must use the following folder system, which is automatically set up by the Stata package adodown.
src/
\_ ado/ # <- Folder with ado files
\_ dev/ # <- Optional folder with sub-folder for styling the site
\_ assets/ # <- Optional files here (e.g., logo, (S)CSS, and/or YAML)
\_ mdhlp/ # <- Folder with markdown help files
\_ vignettes/ # <- Folder with markdown vignettes
<packagename>.pkg # <- .pkg file in src/ folder
README.md # <- at the root of the package
With this structure in place, {adodownr}
can
.pkg
fileOnce the folder system above is in place, {adodownr}
can build and
preview a site with a single command:
# provide paths
# - pkg_dir: where your Stata package is located; path must exist
# - site_dir: where you want your Quarto site; path need not exist yet
adodownr::build_site(
pkg_dir = "path/to/root/of/stata/package",
site_dir = "desired/path/of/documentation/site"
)
This package draws heavy inspiration from two packages: