nextra@2.0.0
github-actions
released this
02 Dec 12:31
·
681 commits
to main
since this release
Major Changes
- 793eedb: chore: Fix CI
Patch Changes
- e4cfb83:
addPage
no longer need acceptfrontMatter
- 94ef0b3: improve 2.0 docs
- 8101efe: fix(nextra): use
rehype-mdx-title
to determine page title - 6644bd5: pass unstable_flexsearch
- cef5546: allow headings contain links
- 2217f9c: fix
Warning: Prop
hrefdid not match. Server: "#" Client: ...
- e6771ca: fix edit on github button for cases when filename named as
index
- 2217f9c: fix
next export
command - fdb2f57: update docs to use next.js 13
- 803553c: use
findPagesDir
fromnext/dist/lib/find-pages-dir
- 568282e: fix broken build
SyntaxError: Unexpected token '}'
- a0398e0: fix: avoid mutating nextConfig
- e6771ca: fix
ReferenceError
when trying to access__nextra_pageOpts__
inside MDX file - 59e18b0: make
nextra
/nextra-theme-docs
/nextra-theme-blog
be compatible with next 13 - 488f737: fix client console error - Text content does not match server-rendered HTML
- fc8cca0: add
<InformationCircleIcon />
icon, improve<Callout />
default emojis - fe2b714: upgrade to react 18
- 02bc6fc: use
next/future/image
if next>=12.3.0 - e4cfb83: define page title in sidebar from
frontMatter.title
if page is not specified in_meta.json
- 1ee3c92: reuse table styles from docs in blog
- f569d90: missing
nx-
class prefixes in blog
fix callout padding in docs - b1d7361: improve docs for 2.0
- 8dab966: fix invisible copy button in code blocks
- 6f987e9: fix: print shallow warning only once
- 4825365: add
@types/github-slugger
instead of manually declaring type - f7856a1: change default options for
compileMdx
, setjsx: false
andoutputFormat: 'function-body'
by default - cc1379c: fix
Hydration failed because the initial UI...
while modifyingmeta.json
on dev env and react 18 - 66712f0: polish docs
- e6771ca: [Blog/Docs] Add copy to clipboard button for code-blocks. Add
NextraConfig.unstable_defaultShowCopyCode
option to show button by default, addcopy
andcopy=false
options for code-blocks - 96ed5c2: [nextra/nextra-theme-docs]: support both
experimental.newNextLinkBehavior
-true
andfalse
- b365bb0: fix TypeError: Cannot read properties of undefined (reading 'data')
- 580c433: add nx- to all tailwind classes for style isolation
- c3e6227: add
overflow-x-scroll
for tables - 1c3fedb: add missing
nx-
prefixes to table/th/tr elements - d7e7f5b: do not add
placeholder="blur"
on.svg
static images - 78f1519: chore: Add strict-peer-dependencies=false
- 97e6141: fix(nextra/docs): fallback search to
en-US
insteaddefault
- a0e5847: Rename some docs theme configurations
- 74a3398: update docs for 2.0
- 93d028b: use
title
package in nextra to determine sidebar title based on pagename - bd2cefa: Fix css classes with
eslint-plugin-tailwindcss
- ff8967c: add
Toggle Word Wrap
button for code-blocks (only for mobile) - 009bf6a: Fix release workflow.
- e6771ca: rename
meta.json
to_meta.json
- ff8967c: fix missing
Copy Code
button in code-blocks without language - 4a7cc10: feat(nextra): allow define custom languages for shiki with
mdxOptions.rehypePrettyCodeOptions
option - a2bc427: compile
context.ts
,ssg.ts
andlocales.ts
to esm - 64ae4b5: add
nextraConfig.unstable_readingTime
option for blog theme - a9523c9: fix nextra on webcontainers
- 383b869: Add Changesets and setup pre-release and release CI.
- 6dc4dee: fix
Unhandled Runtime Error: No content found for <route>
- d7f2bbc: adjust docs theme; rename options
- 256154a: use "next/future/image" if
"experimental.images.allowFutureImage": true
is set in next config - a9414be: always use
next/image
, since in next 12.3.2next/future/image
was renamed tonext/image
- 512953f: chore: remove redundant check for
MARKDOWN_EXTENSION_REGEX.test(filename)
in loader - c8605d6: feat: New layout implementation
- e6771ca: better loader types, add
MetaJsonFile
,MdxFile
,Folder
types - 4157b71: set lower build target and share code highlight theme through nextra
- a1c1e4e: Update docs
- 1942a2e: chore: Fix build script
- 699d131: feat(nextra/docs/blog): allow import
.md
/.mdx
as well - 044721d: chore: Update turbo filters
- 256154a: replace images with
<NextImage />
even when url not relative but that starts from/
(public directory) - c751458: fix(nextra): ignore in loader files from
pages/api
folder - e573175: Fix release CI
- 21009c7: better focus ui, use ring color as theme hue color
- 0f4795f: chore(nextra/blog/docs): provide types for PageOpts in loader
- 71528f1: show copy code button only on hover of container
- 03e90d8: refresh build system with tsup and fix nextra type
- e6771ca: rename
PageOpts.meta
toPageOpts.frontMatter
- 37b4445: fix react-dom peer dependency version
- 094fdec: sort
defaultMeta
byfrontMatter.date
, if missing byfrontMatter.title
and after by capitalized page name - e6771ca: move
withLayout
logic directly in nextra loader - efd95ec: fix(nextra): allow to contain dots in page filenames
- 094fdec: capitalize sidebar's folders names if item is missing in
_meta.json
- e35bbf7: chore: rename
module
tomod
to avoid confusing with globalmodule
object