Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDXv2: remove default layouts and add support for pageQueries #35983

Merged
merged 31 commits into from
Jul 4, 2022

Conversation

axe312ger
Copy link
Collaborator

The current implementation of the new version does not support pageQueries in template files.

This rewrites the codebase to enable JS page components that load a single MDX in the background which gets injected.

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jun 23, 2022
@axe312ger axe312ger changed the base branch from master to feat/mdx-v2 June 23, 2022 12:43
@LekoArts LekoArts added topic: remark/mdx Related to Markdown, remark & MDX ecosystem and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jun 24, 2022
@axe312ger axe312ger force-pushed the feat/mdx-v2-remove-default-layouts branch from 550aff9 to f38dd2f Compare June 24, 2022 13:02
@axe312ger axe312ger changed the base branch from feat/mdx-v2 to refactor/mdx-v2-add-toc-and-excerpt June 24, 2022 13:02
@axe312ger axe312ger force-pushed the refactor/mdx-v2-add-toc-and-excerpt branch from 2644bb8 to 2c2e156 Compare June 24, 2022 13:04
@axe312ger axe312ger force-pushed the feat/mdx-v2-remove-default-layouts branch from f38dd2f to a3d3b12 Compare June 24, 2022 13:05
@axe312ger axe312ger marked this pull request as ready for review June 24, 2022 13:06
@axe312ger axe312ger requested a review from LekoArts June 24, 2022 13:06
@axe312ger axe312ger self-assigned this Jun 24, 2022
@LekoArts LekoArts modified the milestones: Metadata Management, MDX v2 Jun 24, 2022
@axe312ger axe312ger force-pushed the refactor/mdx-v2-add-toc-and-excerpt branch from 2c2e156 to d673d5c Compare June 27, 2022 07:28
@axe312ger axe312ger force-pushed the feat/mdx-v2-remove-default-layouts branch from fb98492 to 6c8288a Compare June 27, 2022 07:30
Base automatically changed from refactor/mdx-v2-add-toc-and-excerpt to feat/mdx-v2 June 28, 2022 10:51
@axe312ger axe312ger force-pushed the feat/mdx-v2-remove-default-layouts branch from b7bc1c6 to 72061c0 Compare June 28, 2022 11:03
@Khaledgarbaya Khaledgarbaya requested a review from wardpeet June 28, 2022 11:13
axe312ger added a commit that referenced this pull request Jun 28, 2022
packages/gatsby/index.d.ts Outdated Show resolved Hide resolved
packages/gatsby-plugin-mdx/src/gatsby-mdx-loader.ts Outdated Show resolved Hide resolved
packages/gatsby-plugin-mdx/src/gatsby-node.ts Outdated Show resolved Hide resolved
packages/gatsby-plugin-mdx/src/gatsby-mdx-loader.ts Outdated Show resolved Hide resolved
packages/gatsby-plugin-mdx/src/plugin-options.ts Outdated Show resolved Hide resolved
packages/gatsby-plugin-mdx/src/gatsby-layout-loader.ts Outdated Show resolved Hide resolved
packages/gatsby-plugin-mdx/src/gatsby-layout-loader.ts Outdated Show resolved Hide resolved
packages/gatsby-plugin-mdx/src/gatsby-layout-loader.ts Outdated Show resolved Hide resolved
packages/gatsby/index.d.ts Outdated Show resolved Hide resolved
packages/gatsby/src/utils/js-chunk-names.ts Outdated Show resolved Hide resolved
@axe312ger axe312ger force-pushed the feat/mdx-v2-remove-default-layouts branch from 21f2dfa to 6f17820 Compare June 29, 2022 11:30
@axe312ger
Copy link
Collaborator Author

We still get this warning, any clues how to suppress it?

16:34:37 PM:
warning The GraphQL query in the non-page component "/usr/src/app/www/src/templates/javascript.js" will not be run.

16:34:37 PM:
warning The GraphQL query in the non-page component "/usr/src/app/www/src/templates/post.js" will not be run.

16:34:37 PM:
warning The GraphQL query in the non-page component "/usr/src/app/www/src/templates/tip.js" will not be run.

@axe312ger axe312ger force-pushed the feat/mdx-v2-remove-default-layouts branch from 3bca15a to 9d6b215 Compare July 1, 2022 12:18
@LekoArts LekoArts merged commit 762b146 into feat/mdx-v2 Jul 4, 2022
@LekoArts LekoArts deleted the feat/mdx-v2-remove-default-layouts branch July 4, 2022 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: remark/mdx Related to Markdown, remark & MDX ecosystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants