hegemonic / jsdoc-baseline Goto Github PK
View Code? Open in Web Editor NEWAn experimental, extensible template for JSDoc.
License: Other
An experimental, extensible template for JSDoc.
License: Other
With an option to disable it.
Using gulp-recess.
Like: jsdoc/jsdoc@c1617b8
Should be separately configurable for top-level symbols and methods/properties/etc.
Right now, if a class has an overloaded constructor, I think we show all of the page content once per variation in symbol.swig
. That's not so great.
One way to handle this:
docs
) have the same members.This isn't perfect, but it should handle most use cases.
Are there other times when we're likely to pass more than one item in the docs
array? If so, need to handle those too.
Like: jsdoc/jsdoc@8128dc5
If you're using the @callback
or @typedef
tag, there are times when you might want to show the type info near (or inline with) the places where you use those type definitions.
As a starting point, this will probably just be a global, on-or-off toggle, but try to think about finer-grained ways to do this. (For example: Based on how many times it's used? Based on whether you're looking at the same page where the type is documented? Based on some new tag?)
For each file, at a minimum:
Questions:
I think Prettify supports this...
And maybe redo JS?
Right now we don't.
Ideally with an autocomplete field.
Like the summary says.
And option whether to show all static first, then all instance (or vice-versa), or to interleave static/instance properties, then static/instance methods, etc.
For example, use foo
instead of module:foo
.
See:
This will require very thorough test cases, lest we strip styles that are actually necessary.
Like: jsdoc/jsdoc@19867a0
Possibly with kss-node.
Ideally it would look tree-like and show inheritance/overrides.
Blocked by #1.
We're only using a fraction of it.
These all happen if you have something like module.exports = 2;
:
module.exports
is not a function/constructorShould check these for functions, too. Also, check for other issues that were fixed in jsdoc/jsdoc@8c66aef.
Partly for variety, partly to verify that everything works as expected.
Could do it by extending classes in LESS, right?
If not, gulp-themer may be helpful.
Do we need to use a namespace for all the helper functions, so things aren't clobbered if someone has a method called log
or what have you?
Need to investigate and implement if necessary.
Like: jsdoc/jsdoc@39daa9a
Try to anticipate what will be needed to auto-upgrade the skeleton in the future (e.g., some sort of "last updated" version annotation).
If we don't already.
Like: jsdoc/jsdoc@6e940d2
Probably as a gulp task, but maybe at runtime.
Extract hard-coded text into resource files. Maybe use newspeak.
First crack at this was jsdoc/jsdoc@254dda5
Add one, and convert things to use it as needed.
At least for the names of methods, properties, classes, and so on, if not full text.
Maybe lunr.js for full-text search?
Maybe with gulp-css-flip?
At least two:
Wasn't aware of this one when I picked the current fonts:
Even if we're not using it by default in most cases.
For example, Foo.bar()
is static and baz()
is instance.
This isn't as easy as replacing all <h#>
tags with {% h %}
, because the user might have included subheadings. We probably need to find all the HTML heading tags, then adjust their level based on what we'd use for the Swig {% h %}
tag in that section.
That way people don't have to customize the template just to get a few extra <div>
tags for CSS purposes.
I could implement this by adding a new Swig tag, like so:
{% container 'class1' 'class2' %}
<p>whatever</p>
{% endcontainer %}
And a config file like:
{ "class1": true, "class2": false }
In that case, I guess we'd create a <div>
with just class1
. If both were false, no <div>
.
(Also: Maybe a {% span %}
tag?)
For example, it looks like we're not escaping angle brackets in type expressions at the moment.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.