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

Add layout option and * fallback of meta.json #425

Merged
merged 1 commit into from
Mar 24, 2022
Merged

Add layout option and * fallback of meta.json #425

merged 1 commit into from
Mar 24, 2022

Conversation

shuding
Copy link
Owner

@shuding shuding commented Mar 24, 2022

Breaking change:

"theme": {
  "full": true
}

will be:

"theme": {
  "layout": "full"
}

It will support three options: "default", "full" and "raw". "raw" will not be wrapped by <MDXContent> and article.


Also the * key will be used as the fallback configuration for all pages in the same level:

{
  "*": {
    "type": "page",
    "theme": {
      "sidebar": true
    }
  },
  "a": "A",
  "b": {
    "title": "B",
    "theme": {
      "sidebar": false
    }
  }
}

@vercel
Copy link

vercel bot commented Mar 24, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

nextra – ./

🔍 Inspect: https://vercel.com/vercel/nextra/6B5ReYyq2SCwm2zdukA9Cyw6KHWP
✅ Preview: Canceled

nextra-theme-docs-dev – ./examples/swr-site

🔍 Inspect: https://vercel.com/vercel/nextra-theme-docs-dev/FGhqiz3UgsLFQnHCHvtkKaA9KUto
✅ Preview: https://nextra-theme-docs-dev-git-shu-ef21.vercel.sh

@shuding shuding merged commit 3578ef2 into core Mar 24, 2022
@shuding shuding deleted the shu/ef21 branch March 24, 2022 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant