This repository has been archived by the owner on Dec 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Auto-generated, published and aggregated user and API documentation #73
Comments
There is much hesitancy to using inline comments, especially JSDocs:
|
@Karissa I agree with you, being used to Javadoc myself. In general I consider Dat Project modules as a toolkit with 'official' API's. For an API good QA is important! Users of the modules should not look in the code, and should be able to implement their apps with help from good, concise api documentation. The current separated coding + docs process makes that difficult to maintain. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
(NOTE This showcase is part 1e of Positioning, vision and future direction of the Dat Project)
This proposal was created to follow up on @joehand comment in PR for new awesome page where I had removed the ugly folder icons, not knowing they were technical markers:
Current documentation procedure
dat-awesome
listDocs
project reads marked entries fromdat-awesome
to aggregate README'sWeaknesses of this approach:
Docs
after a change to one of the documented modulesDocs
project:docs.datproject.org
Proposed approach
(its the idea that matters, not the exact details)
docs
folder for user manual markdownexamples
folder with working code, including snippets for use in docsdocs
+examples
folder then user manual is defined in top comment inindex.js
gh-pages
Docs
projectgh-pages
at the right locationdocs.datproject.org
Advantages:
docs.datproject.org
is never out of dateThe only downside being a couple of extra seconds added to the TravisCI build of a module project
For similar reasons I have already tried auto-generating of protocol buffer specification docs from
hypercore-protocol/schema.proto
.This because I found 3 of the same specification docs, 2 of which where outdated (off-topic: if you version the specification, they would just be old versions)
Currently the generator creates nice markdown output, but still WIP. See:
Next part: A message-based system on top of raw streams
The text was updated successfully, but these errors were encountered: