What it is#
ringdoc is written in plain Ring. It is the documentation tool of RingDotNet, made general: the project (name, pages, folders) is described in one Ring file, docproject.ring, and every package can have its own site.
| You write | ringdoc makes |
|---|---|
Markdown pages in src/ | HTML pages with a sidebar, a table of contents, previous/next links and syntax highlighting |
{{output:demo.ring}} | the real output of the program, kept in a cache |
{{reference:lib.ring}} | the functions, classes, attributes and methods with their comments |
| the pages and one command | a search index for the site, and one PDF of all the pages |
Why#
- the examples in the pages are real files of the package, so they are run when the documentation is built;
- the reference comes from the comments of the source, so it does not get old;
- nothing but Ring is needed (and Chrome or Edge for the PDF).
The package#
This table is made by {{package:package.ring}} from the package.ring of ringdoc:
| Package | |
|---|---|
| Name | ringdoc |
| Description | Documentation generator for Ring packages: HTML site from Markdown, with the source and real output of Ring programs |
| Version | 1.0.1 |
| Developer | Mahmoud Fayed |
| License | MIT License |
| Ring version | 1.28 |
| Install | ringpm install ringdoc from ringpackages |
Where to go next#
- Getting started: make a first site in two commands.
- The project file: every key of
docproject.ring. - Directives: showing files, output and the reference.
- Reference: the functions of ringdoc itself, made with ringdoc.