turf-www icon indicating copy to clipboard operation
turf-www copied to clipboard

"Edit this page" links point at Docusaurus repo

Open weslord opened this issue 1 year ago • 1 comments

For instance, the "Edit this page" link at the bottom of https://turfjs.org/docs/api/nearestNeighborAnalysis points to https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/versioned_docs/version-7.2.0/api/nearestNeighborAnalysis.mdx.

https://github.com/Turfjs/turf-www/blob/master/docusaurus.config.js#L46-L49

https://github.com/Turfjs/turf-www/blob/master/docusaurus.config.js#L53-L56

weslord avatar Jan 13 '25 01:01 weslord

Some thoughts on what the fix here should be. Technically, the page is edited by updating the JSDoc in the source file in the turf repo.

Maybe we can find a way to point the link to the relevant section of the relevant source file? Potentially even more confusing though? e.g. [Edit this page] takes you here without any further context.

Possibly the cleanest approach willf be to remove the link.

smallsaucepan avatar Feb 23 '25 08:02 smallsaucepan