Skip to content

fix(scripts): point setup-scalar at the current website docs path#3088

Open
ifeanyi-ugwu wants to merge 1 commit into
graphql-hive:masterfrom
ifeanyi-ugwu:fix/setup-scalar-docs-path
Open

fix(scripts): point setup-scalar at the current website docs path#3088
ifeanyi-ugwu wants to merge 1 commit into
graphql-hive:masterfrom
ifeanyi-ugwu:fix/setup-scalar-docs-path

Conversation

@ifeanyi-ugwu

Copy link
Copy Markdown
Contributor

The website documentation moved from website/src/pages/docs/scalars/ to website/src/content/scalars/, but scripts/setup-scalar.js still writes the generated _meta.ts entry and .mdx file to the old path. As a result, a newly scaffolded scalar's documentation lands outside the docs tree.

This points both paths in the generator at the current location.

The website docs moved from website/src/pages/docs/scalars/ to
website/src/content/scalars/, but setup-scalar.js still generated the
_meta.ts and .mdx files at the old path, so a newly scaffolded scalar's
docs landed outside the docs tree.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant