Update nextra monorepo to v3 (major) #27
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.1.0
->^3.0.0
^1.2.2
->^3.0.0
Release Notes
shuding/nextra (nextra)
v3.0.7
Compare Source
Patch Changes
4bbc1fe
]v3.0.6
Compare Source
Patch Changes
4ed7b4b
: remove extra horizontal margin spacing in tocv3.0.5
Compare Source
Patch Changes
3aac732
: Add.nextra-search-results
class backv3.0.4
Compare Source
Patch Changes
84fc255
: should get rightactiveType
,activeThemeContext
even when someparent has
display: 'hidden'
9b6595d
: Ensure the jump link behavior is consistent in Markdown.f3a5575
: add a scrollbar for nav links in the header when they exceedavailable free space
84a8a41
]659b36e
]84fc255
]v3.0.3
Compare Source
Patch Changes
9d93caf
: RTL support for the<Steps>
component.5fbce2f
: Added golang logo for code blocks.82fc267
]edc6c29
]9d93caf
]5fbce2f
]v3.0.2
Compare Source
Patch Changes
b6341f7
: remove warningWatchpack Error (initial scan): Error: ENOTDIR: not a directory, scandir 'path-to-your-node_modules/next/dist/pages/_app.js'
v3.0.1
Compare Source
Patch Changes
d9d0820
: fix unclickable links on mobilev3.0.0
Compare Source
Major Changes
e7e8e84
: show react components, variable interpolation and latex in tocc7f03e5
: removetoc.headingComponent
ea1a736
: removenext-seo
anduseNextSeoProps
, usehead
option insteadc2ad837
: update to MDX3148278c
: rename tailwind prefixnx-
to_
to reduce bundle size919fe97
: set"peerDependencies.next": ">=13"
47b125d
: fix global style conflicts for<a>
/<button>
/<summary>
/<input>
/[tabindex]:not([tabindex='-1']
ba30c6c
: use render props for className withselected
,disabled
andhover
state for<Tab>
d7d8a3e
: new styles for code blocks aka in next.js2872606
: removeimage
prop from<Card>
component, image will be showedbased on truthiness
children
prop nowset
icon
as optional prop63ca28b
: Remove support of "_meta.json", use "_meta.{js,jsx,ts,tsx}"instead.
ebe652d
: removesidebar.titleComponent
, use JSX for styling separators andtitles
eca7535
: - removeSteps
,Callout
,Tabs
,Tab
,Cards
,Card
,FileTree
exports, export them now fromnextra/components
useMDXComponents
export, export it now fromnextra/mdx
sidebar.toggleButton
to true128e195
: fix React warning, remove PageOpts.toc, usetoc
prop fromcomponents.wrapper
63ca28b
: removeconfig.serverSideError
f2dd18d
: - rename theme config optionsi18n.text
→i18n.name
banner.text
→banner.content
editLink.text
→editLink.content
footer.text
→footer.content
198dbcc
: use toc with JSX elements for remote content191e6c4
: - useshikiji
instead ofshiki
useSSG
touseData
6eb3118
: renameprimaryHue
andprimarySaturation
theme options tocolor.hue
andcolor.saturation
c7f03e5
: renamepageOpts.headings
totoc
8c1b9d5
: remove<MatchSorterSearch>
Minor Changes
eb943d0
: addtheme.topContent
andtheme.bottomContent
0fe55db
: addimport { useRouter } from 'nextra/hooks'
for fetchinglocale
and
defaultLocale
c77485e
: set defaulthead
option asnull
1dcb91a
: exportuseThemeConfig
6ec3241
: Add Terraform/Move icon #2811#2808
5a63701
: add icons for following languages:graphql
)c++
,cpp
)csharp
,c#
,cs
)python
,py
)allow disallow mobile word wrap button in code blocks with
word-wrap=false
meta data setting
a52a869
: addfrontmatter.sidebarTitle
support for setting page label insidebar via frontmatter
6ec3241
: Make the<Tab>
component be crawlable and indexable by searchengines by default
b47880d
: exportuseMenu
hookb776b16
: addbackgroundColor.light
andbackgroundColor.dark
theme options6070b02
: renamefrontmatter.sidebar_label
tofrontmatter.sidebarTitle
3043826
: add shikiji twoslashDemo feature:
https://nextra-v2-na3obnhub-shuding1.vercel.app/docs/guide/twoslash-support
6070b02
: moveremoveLinks
function fromnextra-theme-docs
tonextra/remove-links
962cea6
: allowitems: Map
fortype: 'menu'
since object can't guaranty theinsertion order
440ff42
: add MathJax support1a97327
: keeploading
,placeholder
andthemeSwitch.useOptions
defaulttheme options only for
en
langPatch Changes
b045cc3
: fix invisible mobile menu after click on hamburgereeb4c4c
: enableoutline: 'none'
only for:focus-visible
state, to fixdouble ring in Firefox
376b895
: fixes case when settingdisabled: true
on the scroll to top buttonprevents scrolling to most top
scroll to most top in toc element too
34e25cd
: migrate search to@headlessui/react
Combobox73239c4
: To ensure consistent horizontal padding, set the default language asplaintext for code blocks. This prevents any loss of formatting for code
blocks without a specified language.
57f3963
: Remove intersection-observer polyfill2b9b95b
: migrate to@headlessui/react
v27457d6b
: removegit-url-parse
to keep bundle smaller2a3e3e7
: Fix first list item in<FileTree>
not within permitted parentelements
6070b02
: loadflexsearch
dynamically to reduce bundle size0b4d43b
: Avoid the sidebar collapse having unintended animations whensidebar.autoCollapse
is set totrue
.31c2ee7
: fixremoveLinks
when input node is linkbf963cd
: Remove the aria-hidden attribute from scroll-to-top button when it isvisible
829c417
: - fix overflow when clicking on<details>
with open state<details>
with open statecb24790
: fix brokenexport default
statement in mdx filesde56507
: fix vertical margin for nested ordered<ol>
and unordered<ul>
lists
8c99baf
: enhance search input to better support CJK language usersa8c2196
: use dynamic import for loadingmermaid
0b5cc9d
: make nextra compatible with windows7b0b7e9
: fix page scroll jump while entering characters in the search input45471df
: fix “Scroll to top” is not supposed to be interactable when it ishidden.
display:children
doesn't collapse breadcrumbshide external links from pagination
remove xmlns attribute from icons
8ffe2fe
: remove focus-visible polyfillfe5061b
: fix for remote docs6945f38
: fix not rendered default<meta name="description" />
and<meta property="og:description" />
1a634cd
: remove explicitZodError
assertionad108ff
: useoverflow-x-auto
insteadoverflow-x-scroll
for<Table>
4f0f6b2
: Omit...{:type}
inline code annotations from search index #2922150184b
: attach heading anchorid
attribute to heading (like Pagefind do)and fix heading anchor styles when
theme.typesetting: 'article'
is set80c9764
: ensure zod is removed from production build with/* @​__PURE__ */
comments
9df7f58
: Fix nav-links not highlighting on hover in dark mode7bb18e3
: Add a generic forthemeConfig
inNextraThemeLayoutProps
toimprove type inference.
9b41180
:backToTop
is hidden when enabled but whentoc.extraContent
,feedback.content
andeditLink.component
are falsy6f4c83a
: fix unclickable links in TOCallow passing
recmaPlugins
inmdxOptions
f255696
: Improve styles for reduced motion preferences9f55bd1
: update rehype-pretty-code/shikiji to latestd21634d
: exportgetComponents
452e5bd
: Add<Playground>
componenthttps://nextra-v2-9x7fp6hti-shud.vercel.app/docs/guide/advanced/playground
e95faa1
: - fixed<summary>
lost whitespaces when there is some HTML elementinside
<summary>
was not rendered when<details>
text content follows directly after
<summary>
elementccaf3d4
: Add theautoImportThemeStyle
option to the Nextra configuration.This allows users to import the official Nextra theme CSS into a specific
cascade layer.
cee94a6
: Consider the navbar height when setting the root margin for theactive anchor intersection observer
2630461
: fixTypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
on dev environment when
frontMatter.searchable: false
217f708
: update next-themesfix wrong numbering for nested
<Steps>
ca51306
: Enhance focus ring style consistency.f662237
: avoid focus-visible style being cut off by overflow-hidden3c6193d
: Remove unnecessarysortPages
fromserver/utils.ts
1a97327
: Update thebackToTop
option in the docs theme configuration tosupport i18n
799174f
: fixed react warningWarning: React has detected a change in the order of Hooks called by Body
when
themeConfig.main
options is used363b85f
: addflex-shrink: 0
for indent inFileTree
for<Ident>
and svgicons in
<Folder>
and<File>
237c345
: Make React 18 as minimal requirementeb943d0
: hardcode flexsearch version to 0.7.31, because package is broken on0.7.41
ad108ff
: fix<Bleed>
overflows incorrectly in firefox4fb2452
: fix invisible mobile menu whenlayout: "raw"
is specified in _metafile
7faa096
: fix visible hidden pages on mobile which set up withdisplay: 'hidden'
315ca82
: remove possible links in toc elementsa95e745
: Fix the line highlighting background-color does not extend to thefull width of the code block when a scrollbar appears with line numbers.
363b85f
: fixRangeError: Maximum call stack size exceeded
infindSummary
when
child.props.children
isundefined
Updated dependencies [
e7e8e84
]Updated dependencies [
7188278
]Updated dependencies [
d1e3e9a
]Updated dependencies [
73239c4
]Updated dependencies [
2b9b95b
]Updated dependencies [
023d37b
]Updated dependencies [
0fe55db
]Updated dependencies [
50a52fd
]Updated dependencies [
c2ad837
]Updated dependencies [
2a3e3e7
]Updated dependencies [
a3b67ae
]Updated dependencies [
1a36469
]Updated dependencies [
799174f
]Updated dependencies [
98f439c
]Updated dependencies [
6ec3241
]Updated dependencies [
148278c
]Updated dependencies [
c7f03e5
]Updated dependencies [
3644e1c
]Updated dependencies [
919fe97
]Updated dependencies [
cb24790
]Updated dependencies [
47b125d
]Updated dependencies [
982862f
]Updated dependencies [
a8c2196
]Updated dependencies [
ba30c6c
]Updated dependencies [
0b5cc9d
]Updated dependencies [
5a63701
]Updated dependencies [
60ec68c
]Updated dependencies [
d7d8a3e
]Updated dependencies [
fe5061b
]Updated dependencies [
2872606
]Updated dependencies [
a52a869
]Updated dependencies [
6ec3241
]Updated dependencies [
1a634cd
]Updated dependencies [
63ca28b
]Updated dependencies [
ad108ff
]Updated dependencies [
ad4823d
]Updated dependencies [
4f0f6b2
]Updated dependencies [
1f3e7cd
]Updated dependencies [
ab07609
]Updated dependencies [
2f3be33
]Updated dependencies [
90c129e
]Updated dependencies [
f71e660
]Updated dependencies [
150184b
]Updated dependencies [
66cce1d
]Updated dependencies [
c74ae90
]Updated dependencies [
7615b62
]Updated dependencies [
6070b02
]Updated dependencies [
7bb18e3
]Updated dependencies [
b9f88e3
]Updated dependencies [
8efbb45
]Updated dependencies [
6f4c83a
]Updated dependencies [
d8a406b
]Updated dependencies [
9f55bd1
]Updated dependencies [
4e55c06
]Updated dependencies [
128e195
]Updated dependencies [
8bce16d
]Updated dependencies [
ccaf3d4
]Updated dependencies [
3043826
]Updated dependencies [
2630461
]Updated dependencies [
576cb6f
]Updated dependencies [
217f708
]Updated dependencies [
57bc0e2
]Updated dependencies [
ca51306
]Updated dependencies [
f662237
]Updated dependencies [
3c6193d
]Updated dependencies [
1f3e7cd
]Updated dependencies [
198dbcc
]Updated dependencies [
363b85f
]Updated dependencies [
fef635e
]Updated dependencies [
6070b02
]Updated dependencies [
237c345
]Updated dependencies [
191e6c4
]Updated dependencies [
440ff42
]Updated dependencies [
7faa096
]Updated dependencies [
9099c35
]Updated dependencies [
98f439c
]Updated dependencies [
a95e745
]Updated dependencies [
80e11e0
]Updated dependencies [
c7f03e5
]v2.13.4
Compare Source
Patch Changes
f7fc10b
: fix for the memory leak issue in thehighlight-matches.tsx
component when search query contain multiple whitespaces
v2.13.3
Compare Source
Patch Changes
93b5705
: allow to disableeditLink
by specifyingeditLink.component: null
in theme config
93b5705
: fixtype: 'separator'
zod validation, marktitle
field asoptional
93b5705
]v2.13.2
Compare Source
Patch Changes
ad7b31b
: downgrade remark-math from6
to5.1.1
to fixTypeError: Cannot read properties of undefined (reading 'mathFlowInside')
error
fix support of ``
math lang that was overridden by
rehype-pretty-code`Updated dependencies [
ad7b31b
]v2.13.1
Compare Source
Patch Changes
3e5e115
: fix showing toggle sidebar button when darkmode is turned off andi18n was not set
ee02a48
]v2.13.0
Compare Source
Minor Changes
7aec7bb
: addprimarySaturation
theme optiona55e4aa
: updatenpm2yarn
, add bun tabPatch Changes
a55e4aa
: do not scroll to top while calling cmd+k in search inputv2.12.3
Compare Source
Patch Changes
ffb6d80
: - FixTypeError: Cannot read properties of null (reading 'classList')
whilenavigating to route that doesn't have toc with
router.push
for exampleTabs.Tab
toTab
componentCards.Card
toCard
componentTabs.Tab
or
Tab
Updated dependencies [
ffb6d80
]v2.12.2
Compare Source
Patch Changes
7c8c498
: fixOut of Memory
in search while indexing large words7c8c498
]v2.12.1
Compare Source
Patch Changes
52ae8fc
]v2.12.0
Compare Source
Minor Changes
d982074
: - show headings for partial md/mdx in toc<Tab />
or<Tabs.Tab />
63271a4
: add toc.backToTop option8962597
: - allow override static image component that was hardcoded toimport Image from 'next/image'
now it's plain<img />
<details />
/<summary />
for.md
filesPatch Changes
cca36d3
: do not render mobile sidebar on desktopd982074
]fbf003c
]8962597
]v2.11.1
Compare Source
Patch Changes
ddddce9
: skip search indexing for 404/500 pages6154e31
: ensure first h1 is set as page title if frontmatter.title is missing46743ba
: fix TS errorCannot find module 'nextra/filter-route-locale' or its corresponding type declarations.
while importing
4dd720a
: removefont-weight: 500;
from styles of code blocks since it givesno effect
v2.11.0
Compare Source
Patch Changes
3bb480a
: use github-slugger for custom heading ids to prevent duplicatedheadings
3bb480a
: fix custom heading id in search result3bb480a
: fixWarning: Prop href did not match. Server: "/blog.en-US#" Client: "/blog#"
inby
normalizePages
from nextra/normalize-pages`3bb480a
: strip.html
extension from URL route for static exportv2.10.0
Compare Source
Minor Changes
e54b008
: - add@theguild/remark-npm2yarn
package that replaces the codeblock that has
npm2yarn
metadata with<Tabs />
and<Tab />
componentsfrom
nextra/components
.<Tabs />
now hasselectedKey
prop, the chosen tab is saved in the localstorage, which will be chosen in future page renders.
More info https://nextra.site/docs/guide/advanced/npm2yarn
v2.9.0
Compare Source
Minor Changes
16bbb88
: Move below packages to nextra package<Cards />
and<Card />
<Tabs />
and<Tab />
<Steps />
<FileTree />
to import them you can use the following in your official
nextra-theme-blog
and
nextra-theme-docs
Patch Changes
23a25b1
: replace last match ofexport default MDXContent;
v2.8.0
Compare Source
Patch Changes
6c12bf4
: fix broken code format while selecting and copying code withshowLineNumbers
option enabledv2.7.1
Compare Source
Patch Changes
0e53ca5
]v2.7.0
Compare Source
Minor Changes
44626e8
: support mermaid diagramsPatch Changes
44626e8
]v2.6.2
Compare Source
Patch Changes
9c9625e
: Fix search not working in certain Next.js versions9c9625e
]v2.6.1
Compare Source
Patch Changes
1e9ebab
]v2.6.0
Compare Source
Patch Changes
9d9bc23
: accessibility issues for text and navbar in light mode15c4092
]1c6256b
]v2.5.2
Compare Source
Patch Changes
f85423a
: Fix prose styles for small breakpointsa3601e5
]v2.5.1
Compare Source
Patch Changes
8aae0c9
: fix: cusdis comments theme doens't change when resolvedTheme changedd408ab0
]v2.5.0
Compare Source
Minor Changes
08d393e
: support ANSI highlightingPatch Changes
08d393e
]v2.4.2
Compare Source
Patch Changes
16e562d
]v2.4.1
Compare Source
Patch Changes
a992ce1
]v2.4.0
Compare Source
Patch Changes
545bd7c
]0a50cad
]259bfbc
]v2.3.0
Compare Source
Minor Changes
6a79462
: add new optiondateFormatter
76e8b0f
: support custom heading id via# my very long heading... [#my-custom-heading]
syntax #1645Patch Changes
0dd028a
]6ea1caf
]76e8b0f
]v2.2.20
Compare Source
Patch Changes
2e48307
]e4c8b6d
]v2.2.19
Compare Source
Patch Changes
e41cbbc
]a1e59b2
]v2.2.18
Compare Source
Patch Changes
9bd2d59
]c2287e1
]90cb6b8
]v2.2.17
Compare Source
Patch Changes
4a66366
]v2.2.16
Compare Source
Patch Changes
b94245a
: Reverts #1417 "force theme to light if darkMode: false was set"d495e5f
: introduce_app.mdx
for better performance and smallest.next/static/chunks
sized495e5f
]v2.2.15
Compare Source
Patch Changes
2e441b7
: open http:// links in new windowda585a8
: force theme tolight
ifdarkMode: false
was set3e9e54f
: hide unnecessary parts of the pages when being printedd5aa17c
]016828e
]b3219c3
]v2.2.14
Compare Source
Patch Changes
bcaba9c
]a683c84
]a404ef7
]v2.2.13
Compare Source
Patch Changes
d1d873f
: typed frontmatter ->useConfig<YOUR_FRONTMATTER_TYPE>
6626356
: preferimport type
2234a13
: fix raw__esModule
string ☠️d1d873f
]6626356
]2234a13
]v2.2.12
Compare Source
Patch Changes
c913ec8
: add peer deps619ae3a
]v2.2.10
Compare Source
Patch Changes
c97143f
: fix search index output location256282a
: fix codeHighlight being false by default for remote contet4d3c20a
: fix special modules being bundled in client4b2052f
: fixModule not found: Can't resolve 'nextra-theme-docs/style.css'
for imported markdown files that located outside of CWD624d6b4
: fix when sidebar show non-md folders0c957db
: fix capitalizing of undefined _meta.json file/foldersd0b9249
: fix subpath import failedv2.2.9
Compare Source
Patch Changes
c50474e
: support dynamic markdown importv2.2.8
Compare Source
Patch Changes
d2ed10f
: remove development: falseb943146
: add transformPageOpts option for advanced use casesv2.2.7
Compare Source
Patch Changes
36fd8c7
: add format detection64cec8f
: disable code splitting and fix dev errorsv2.2.6
Compare Source
Patch Changes
be24334
: improve search index generation4fc13df
: fix warning of dynamic importsv2.2.5
Compare Source
Patch Changes
163065c
: loader refactor, type-safe__nextra_resolvePageMap
, avoid code interpolation in loader.tsv2.2.4
Compare Source
Patch Changes
091b77b
: fix missing filenameadd filename / copy code with "codeHighlight: false"
add unit tests for filename and copy code
917de49
: removegithub-slugger
from docsv2.2.3
Compare Source
Patch Changes
11b2870
: fix copy code button positionv2.2.2
Compare Source
Patch Changes
3145f53
: extendplugin:react/recommended
,plugin:react-hooks/recommended
andplugin:@​next/next/recommended
configs1834730
: fix hydration error produced by cached compiler, fix broken code-blocks styles while settingnextraConfig.codeHighlight: false
f53b935
: Allow disabling code highlighting & memory improvementsv2.2.1
Compare Source
Patch Changes
9bcfc1d
: fix error was swallowed silentlyv2.2.0
Compare Source
Minor Changes
e4b20ca
: supporttransform
in nextra configPatch Changes
af76dbe
: fix highlight substring from filename for code blocksv2.1.0
Compare Source
Minor Changes
e5262d0
: improve hmr and internal api for layout (toc and meta files)Patch Changes
a923bd5
: fixcollectFiles
concurrency5bdc62c
: fix static images on windowsc86508c
: lint fixes foreslint:recommended
andplugin:@​typescript-eslint/recommended
configsd6c871a
: simplify the custom theme layout api1ff43c1
: use OKLCH colors where possiblea31678a
: improve copyv2.0.3
Compare Source
Patch Changes
adb2d25
: fix remote mdx8060ed3
: style improvementsv2.0.2
Compare Source
Patch Changes
1e2afcf
: Add LaTeX support99ec64e
: fix indentation for copy code button3a08fe2
: Add Callout border in dark modef488e2e
: remove @react/skip-nev #1051fix: staticImage should only set blur placeholder for jpeg,png,webp,avif
cf9b886
: better performance ofcollectFiles
f35e724
: update shiki to v0.12.1b2fc168
: supportnextConfig.distDir
cc1cb5f
: supportnextConfig.basePath
with i18nv2.0.1
Compare Source
Patch Changes
a9748aa
: fix: A11y improvements to the docs themeac82b1f
: make code-blocks buttons focusable if they are visible on pagev2.0.0
Major Changes
793eedb
: chore: Fix CIPatch Changes
e4cfb83
:addPage
no longer need acceptfrontMatter
94ef0b3
: improve 2.0 docs8101efe
: fix(nextra): userehype-mdx-title
to determine page title6644bd5
: pass unstable_flexsearchcef5546
: allow headings contain links2217f9c
: fixWarning: Prop
hrefdid not match. Server: "#" Client: ...
e6771ca
: fix edit on github button for cases when filename named asindex
2217f9c
: fixnext export
commandfdb2f57
: update docs to use next.js 13803553c
: usefindPagesDir
fromnext/dist/lib/find-pages-dir
568282e
: fix broken buildSyntaxError: Unexpected token '}'
a0398e0
](https://redirect.github.com/shuding/nextra/commit/a0398Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.