Leaflet / Leafdoc

A lightweight NaturalDocs-like LeafletJS-style documentation generator
54 stars 19 forks source link

Lazily copied inheritances #9

Open IvanSanchez opened 9 years ago

IvanSanchez commented 9 years ago

In order to save room, inheritances should be able to be lazily copied within the DOM via JS whenever the user expands them.

This might not be the preferred solution (docs should work without JS). Maybe this can be done via clever templates (output only names of inherited stuff, let the main HTML template have the JS to lazily load everything).

mourner commented 9 years ago

docs should work without JS

I would not be concerned here. Without JS, we can just gracefully degrade to linking the clickable inheritance headings to the original classes instead of expanding. Or just do nothing at all since docs would still be usable without JS (a user sees that a classes inherits Evented and then just goes on to check that class separately).

mourner commented 8 years ago

Let's prioritize this! The Leaflet 1.0 docs take an unreasonable time to load.