lovr-docs icon indicating copy to clipboard operation
lovr-docs copied to clipboard

Function listing should support anchors/back history

Open mcclure opened this issue 2 years ago • 2 comments

Since 0.16 or so the lovr-docs repo has listed functions with more than one legal overload with this javascript picker at the top:

https://lovr.org/docs/v0.16.0/lovr.graphics.newBuffer

I love this, before I kept tripping myself up not noticing overloads lower in the file and the new design is clean and convenient.

There is one problem. Because all the overloads are in one page, it doesn't seem to be possible to link to a single one anymore. this is sometimes inconvenient.

IMO, clicking one of the overloads should use JavaScript to set the #anchor (so that links to the current overload can be copied) and set javascript document.history. I have worked with this JS API before and would be happy to implement this change myself if you could point me to how/where the overload directory is set (in a script in this repo? in an external tool?)

mcclure avatar Mar 20 '23 16:03 mcclure