g6tr_build_pkgd_package builds site for a package. The main
package (g6tr) documentation is built into the root of
packages/documentation directory. Documentation for all the other
packages is build into corresponding subdirectories. E.g. g6tr.md is
built into packages/documentation/g6tr_md. But for this to work properly,
documentation folder needs to exist and needs to be created by pkgdown.
So if it does not exist, g6tr_build_pkgd_package("g6tr") needs to be run
first.
Global level pkgdown yaml setup is read from pkgdown/pkgdown.yaml (path
relative to the monorepo root). css configuration is taken from
pkgdown/extra.css. All the package-individual pkgdown files ideally
should contain only navbar:components:articles: and reference
components. Prior to building pkgdown, this function rebuilds package's
README.Rmd in case if it's newer than the corresponding md output.
g6tr_build_pkgd_all builds sites for all the packages.