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
However, module resolution has trouble with the @automattic/calypso-ui path here (and I didn't really want to hardcode it to packages/calypso-ui).
I'm now thinking that maybe our best option is to replace the devdocs/service/content endpoint that is used to obtain those READMEs (and that's one of the oldest parts of Calypso, long predating Webpack IIRC) by a Webpack loader
Found by @sirreal at #35768 (review).
Steps to reproduce
Go to https://wpcalypso.wordpress.com/devdocs/design/progress-bar
What I expected
The component's README to be loaded
What happened instead
It says 'No documentation available.' at the bottom of the page, even though there is https://github.com/Automattic/wp-calypso/blob/053e45ed6d06a27f258e6254025c6584550d8fc4/packages/calypso-ui/src/progress-bar/README.md
Browser / OS version
(All)
Screenshot / Video
Context / Source
This isn't quite as straight-forward to fix as it seems 😅
Relevant code:
wp-calypso/client/devdocs/design/search-collection.jsx
Lines 39 to 46 in 053e45e
wp-calypso/client/devdocs/design/index.jsx
Line 255 in 053e45e
I was thinking of something like
However, module resolution has trouble with the
@automattic/calypso-ui
path here (and I didn't really want to hardcode it topackages/calypso-ui
).I'm now thinking that maybe our best option is to replace the
devdocs/service/content
endpoint that is used to obtain those READMEs (and that's one of the oldest parts of Calypso, long predating Webpack IIRC) by a Webpack loaderwp-calypso/server/devdocs/index.js
Lines 212 to 243 in 053e45e
The text was updated successfully, but these errors were encountered: