docs icon indicating copy to clipboard operation
docs copied to clipboard

Move `getStaticPaths` instructional content out of the reference page

Open Jutanium opened this issue 2 years ago • 1 comments

The getStaticPaths content on our reference page is not reference content - it's better suited for a guides page. We link to it on our Routing guide, but that Routing guide should be the home for this content.

We've also gotten feedback that getStaticPaths is particularly difficult to understand, so it's worth revisiting how we explain it when we integrate it into that guides page.

Jutanium avatar Oct 06 '22 14:10 Jutanium

The tutorial presents getStaticPaths in a more friendly beginner way; our docs could build off of that for our explanatory content.

The examples in the dynamic route section need another pass; we've seen support threads of people being confused by them.

Jutanium avatar Oct 06 '22 15:10 Jutanium

Agreed that this could use another look at how the content is divided between pages.

In particular, and perhaps more urgently, now that each error message has their own page in the reference section, we should decide whether error messages should be their own category. Even the API reference docs for getStaticPaths are getting drowned out by error message returns.

And currently, getStaticPaths() is not even in a heading on the routing page, making it not visible in the right sidebar, but also, it doesn't show up in Algolia results AT ALL. So urgently, Routing page should get a quick-fix heading for this. But, I also think these Algolia results are not as helpful as they could be.

getStaticPathsAlgolia

sarah11918 avatar Dec 29 '22 12:12 sarah11918

Note that our search doesn't bring you to the routing page at all - headers need rewriting.

Jutanium avatar Mar 16 '23 16:03 Jutanium