Skip to content

⏬ Create Quarto package documentation website for Stata packages

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

lsms-worldbank/adodownr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adodownr

The goal of adodownr is to provide Stata users with documentation websites akin those offered to R users by pkgdown.

Installation

You can install the development version of adodownr like so:

if (!require("pak")) install.packages("pak")
pak::pak("arthur-shaw/adodownr")

Usage

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

  • Convert Markdown files to Quarto
  • Extract relevant information from the .pkg file

Once 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"
)

Inspiration

This package draws heavy inspiration from two packages:

  • pkgdown, the best known R package for documentation websites
  • ecodown, an experimental effort to use Quarto for the same purpose

About

⏬ Create Quarto package documentation website for Stata packages

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages