Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/etiennebacher/altdoc
Alternative to pkgdown to document R packages
https://github.com/etiennebacher/altdoc
Last synced: 19 days ago
JSON representation
Alternative to pkgdown to document R packages
- Host: GitHub
- URL: https://github.com/etiennebacher/altdoc
- Owner: etiennebacher
- License: other
- Created: 2021-08-25T15:55:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-05T18:23:00.000Z (2 months ago)
- Last Synced: 2024-10-11T18:19:08.285Z (2 months ago)
- Language: R
- Homepage: https://altdoc.etiennebacher.com
- Size: 17.4 MB
- Stars: 65
- Watchers: 4
- Forks: 9
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - etiennebacher/altdoc - Alternative to pkgdown to document R packages (R)
README
`altdoc` is a simple and powerful package to create documentation
websites for `R` packages. `altdoc` makes it trivial to create beautiful
websites for simple `R` packages, and it can efficiently organize
documentation for complex projects with hundreds of functions or dozens
vignettes. Its features include:- Support for several documentation frameworks:
- [Quarto websites](https://quarto.org/docs/websites/)
- [Docsify](https://docsify.js.org/#/)
- [MkDocs](https://www.mkdocs.org/).
- [Docute](https://docute.egoist.dev//)
- Render:
- Quarto and Rmarkdown vignettes.
- Reference pages for exported functions, along with evaluated
examples.
- Common sections: `README.md`, `NEWS.md`, `CHANGELOG.md`,
`CODE_OF_CONDUCT.md`, `CITATION.md`, etc.
- Preview the site:
- Browser
- RStudio Viewer
- Deploy the website:
- Github pages
- Other platforms## Installation
You can install the CRAN version:
``` r
install.packages("altdoc")
```You can also install the development version to benefit from the latest
bug fixes:``` r
remotes::install_github("etiennebacher/altdoc")
```## Quick start
A typical workflow with `altdoc` is to execute these commands from the
root directory of the package:``` r
### Create the website structure for one of the documentation generators
setup_docs(tool = "docsify")
# setup_docs(tool = "docute")
# setup_docs(tool = "mkdocs")
# setup_docs(tool = "quarto_website")### Render the vignettes and man pages
render_docs()### Preview the website
preview_docs()
```See [the Get Started
vignette](https://altdoc.etiennebacher.com/#/vignettes/get-started.md)
for more details.## Demos
The websites in this table were created using Altdoc:
Document Generator
R
PackageWebsite
Settings
Docute
altdoc
Quarto
modelsummary
Quarto
marginaleffects
Quarto
tinytable
🌐vincentarelbundock.github.io/tinytable/
Quarto
tinyplot
MkDocs
polars
Docsify
conductor
Docsify
countrycode
🌐vincentarelbundock.github.io/countrycode
Docsify
WDI
🌐vincentarelbundock.github.io/WDI
## More
### Tutorials
[The `altdoc` website](https://altdoc.etiennebacher.com/) includes more
information on topics like:- [How to get
started](https://altdoc.etiennebacher.com/#/vignettes/get-started.md)
- [How to customize your
website](https://altdoc.etiennebacher.com/#/vignettes/customize.md)
- [How to deploy your
website](https://altdoc.etiennebacher.com/#/vignettes/deploy.md)### Logo
The initial version of the logo was created with Chat-GPT and edited in
Gimp by Vincent Arel-Bundock.