-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v4] sync with nextra 3.0.15 / bump to Next 15 (#3508)
* aa * more * more * more * aa * pnpm-lock.yaml * yoyoyo * more * rrr * fix * pnpm i * dedupe * Update examples/blog/mdx-components.jsx * yoyo
- Loading branch information
1 parent
63369a1
commit 2c8a8ab
Showing
36 changed files
with
507 additions
and
579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
'nextra-theme-blog': patch | ||
'nextra-theme-docs': patch | ||
'nextra': patch | ||
--- | ||
|
||
- sync with nextra 3.0.15 | ||
- bump to Next 15 | ||
- remove importing of `style.css` in themes, you need to import now manually by | ||
|
||
```js | ||
import 'nextra-theme-docs/style.css' // for docs theme | ||
import 'nextra-theme-blog/style.css' // for blog theme | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
declare module '*.svg?svgr' { | ||
import type { FC, SVGProps } from 'react' | ||
const ReactComponent: FC<SVGProps<SVGElement>> | ||
|
||
export default ReactComponent | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
export { default as FilesIcon } from './files.svg' | ||
export { default as TailwindIcon } from './tailwind.svg' | ||
export { default as LinkIcon } from './link.svg' | ||
export { default as LightningIcon } from './lightning.svg' | ||
export { default as GlobeIcon } from './globe.svg' | ||
export { default as PictureIcon } from './picture.svg' | ||
export { default as CodeIcon } from './code.svg' | ||
export { default as BrushIcon } from './brush.svg' | ||
export { default as DropperIcon } from './dropper.svg' | ||
export { default as StarsIcon } from './stars.svg' | ||
export { default as FormulaIcon } from './formula.svg' | ||
export { default as WarningIcon } from './warning.svg' | ||
export { default as ChevronRightIcon } from './chevron-right.svg' | ||
export { default as BoxIcon } from './box.svg' | ||
export { default as GearIcon } from './gear.svg' | ||
export { default as RowsIcon } from './rows.svg' | ||
export { default as CardsIcon } from './cards.svg' | ||
export { default as OneIcon } from './one.svg' | ||
export { default as CloudIcon } from './cloud.svg' | ||
export { default as TableIcon } from './table.svg' | ||
export { default as FileIcon } from './file.svg' | ||
export { default as NewsletterIcon } from './newsletter.svg' | ||
export { default as ArrowRightIcon } from './arrow-right.svg' | ||
export { default as SwitchIcon } from './switch.svg' | ||
export { default as DiagramIcon } from './diagram.svg' | ||
export { default as FolderTreeIcon } from './folder-tree.svg' | ||
export { default as IdCardIcon } from './id-card.svg' | ||
export { default as VercelLogo } from './vercel.svg' | ||
export { default as NextraLogo } from './nextra.svg' | ||
export { default as FilesIcon } from './files.svg?svgr' | ||
export { default as TailwindIcon } from './tailwind.svg?svgr' | ||
export { default as LinkIcon } from './link.svg?svgr' | ||
export { default as LightningIcon } from './lightning.svg?svgr' | ||
export { default as GlobeIcon } from './globe.svg?svgr' | ||
export { default as PictureIcon } from './picture.svg?svgr' | ||
export { default as CodeIcon } from './code.svg?svgr' | ||
export { default as BrushIcon } from './brush.svg?svgr' | ||
export { default as DropperIcon } from './dropper.svg?svgr' | ||
export { default as StarsIcon } from './stars.svg?svgr' | ||
export { default as FormulaIcon } from './formula.svg?svgr' | ||
export { default as WarningIcon } from './warning.svg?svgr' | ||
export { default as ChevronRightIcon } from './chevron-right.svg?svgr' | ||
export { default as BoxIcon } from './box.svg?svgr' | ||
export { default as GearIcon } from './gear.svg?svgr' | ||
export { default as RowsIcon } from './rows.svg?svgr' | ||
export { default as CardsIcon } from './cards.svg?svgr' | ||
export { default as OneIcon } from './one.svg?svgr' | ||
export { default as CloudIcon } from './cloud.svg?svgr' | ||
export { default as TableIcon } from './table.svg?svgr' | ||
export { default as FileIcon } from './file.svg?svgr' | ||
export { default as NewsletterIcon } from './newsletter.svg?svgr' | ||
export { default as ArrowRightIcon } from './arrow-right.svg?svgr' | ||
export { default as SwitchIcon } from './switch.svg?svgr' | ||
export { default as DiagramIcon } from './diagram.svg?svgr' | ||
export { default as FolderTreeIcon } from './folder-tree.svg?svgr' | ||
export { default as IdCardIcon } from './id-card.svg?svgr' | ||
export { default as VercelLogo } from './vercel.svg?svgr' | ||
export { default as NextraLogo } from './nextra.svg?svgr' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
import { useMDXComponents as useBlogMDXComponents } from 'nextra-theme-blog' | ||
import { useMDXComponents as getBlogMDXComponents } from 'nextra-theme-blog' | ||
|
||
// In case you want to overwrite some of the components | ||
export function useMDXComponents() { | ||
return useBlogMDXComponents({ | ||
h1: ({ children }) => ( | ||
<h1 | ||
style={{ | ||
WebkitBackgroundClip: 'text', | ||
WebkitTextFillColor: 'transparent', | ||
backgroundClip: 'text', | ||
backgroundImage: 'linear-gradient(90deg,#7928CA,#FF0080)' | ||
}} | ||
> | ||
{children} | ||
</h1> | ||
), | ||
DateFormatter: ({ date }) => | ||
`Last updated at ${date.toLocaleDateString('en', { | ||
day: 'numeric', | ||
month: 'long', | ||
year: 'numeric' | ||
})}` | ||
}) | ||
const blogComponents = getBlogMDXComponents({ | ||
h1: ({ children }) => ( | ||
<h1 | ||
style={{ | ||
WebkitBackgroundClip: 'text', | ||
WebkitTextFillColor: 'transparent', | ||
backgroundClip: 'text', | ||
backgroundImage: 'linear-gradient(90deg,#7928CA,#FF0080)' | ||
}} | ||
> | ||
{children} | ||
</h1> | ||
), | ||
DateFormatter: ({ date }) => | ||
`Last updated at ${date.toLocaleDateString('en', { | ||
day: 'numeric', | ||
month: 'long', | ||
year: 'numeric' | ||
})}` | ||
}) | ||
|
||
export function useMDXComponents(components) { | ||
return { | ||
...blogComponents, | ||
...components | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.