You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.
I have a long-term proposal ... add annotated comments to the Javascript to generate API documentation in a HTML mini-site — see: usejsdoc.org. The idea and the annotation syntax grew out of JavaDocs.
An example:
src/config.js:
/** * The default configuration. * * @namespace DEFAULTS * @prop {string} containerSelector A CSS-style selector for the containing HTML element. */constDEFAULTS={containerSelector: '#our-journey-tool'// Other options ...};
There will be a configuration file, and an npm script :- npm run jsdoc. Documentation will appear in a ./jsdoc/ directory.
Obvious things to start documenting — we start as small as we like ;):
src/config.js — Defaults and configuration options;
src/app.js — The run() function;
index.js — The top-level API;
Ta,
Nick
Note: while the annotated comments will bulk out dist/our-journey.js they are stripped from the minified dist/our-journey.min.js.
Audience for the JSDocs:
Developers wishing to use and extend;
Developers wishing to contribute.
The text was updated successfully, but these errors were encountered:
HI @timcoughlan,
I have a long-term proposal ... add annotated comments to the Javascript to generate API documentation in a HTML mini-site — see: usejsdoc.org. The idea and the annotation syntax grew out of JavaDocs.
An example:
src/config.js
:There will be a configuration file, and an npm script :-
npm run jsdoc
. Documentation will appear in a./jsdoc/
directory.Obvious things to start documenting — we start as small as we like ;):
src/config.js
— Defaults and configuration options;src/app.js
— Therun()
function;index.js
— The top-level API;Ta,
Nick
Note: while the annotated comments will bulk out
dist/our-journey.js
they are stripped from the minifieddist/our-journey.min.js
.Audience for the JSDocs:
The text was updated successfully, but these errors were encountered: