Giter Site home page Giter Site logo

altdoc's Introduction


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:
  • 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:

install.packages("altdoc")

You can also install the development version to benefit from the latest bug fixes:

remotes::install_github("etiennebacher/altdoc")

Quick start

A typical workflow with altdoc is to execute these commands from the root directory of the package:

### 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 for more details.

Demos

The websites in this table were created using Altdoc:

Document Generator R Package Website Settings
Docute altdoc ๐ŸŒaltdoc.etiennebacher.com Altdoc Settings
Quarto modelsummary ๐ŸŒmodelsummary.com Altdoc settings
Quarto marginaleffects ๐ŸŒmarginaleffects.com Altdoc Settings
Quarto tinytable ๐ŸŒvincentarelbundock.github.io/tinytable/ Altdoc Settings
Quarto tinyplot ๐ŸŒgrantmcdermott.com/tinyplot Altdoc Settings
MkDocs polars ๐ŸŒrpolars.github.io Github Repository
Docsify conductor ๐ŸŒconductor.etiennebacher.com GitHub Repository
Docsify countrycode ๐ŸŒvincentarelbundock.github.io/countrycode Altdoc Settings
Docsify WDI ๐ŸŒvincentarelbundock.github.io/WDI Altdoc Settings

More

Tutorials

The altdoc website includes more information on topics like:

Logo

The initial version of the logo was created with Chat-GPT and edited in Gimp by Vincent Arel-Bundock.

altdoc's People

Contributors

etiennebacher avatar kylebutts avatar mpadge avatar olivroy avatar rempsyc avatar vincentarelbundock avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.