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

fixes heading issues #2199

Merged
merged 11 commits into from
Aug 23, 2023
Merged

fixes heading issues #2199

merged 11 commits into from
Aug 23, 2023

Conversation

dimaMachina
Copy link
Collaborator

@dimaMachina dimaMachina commented Aug 23, 2023

fixes #1191

fixes #1540

more

more

add tests

update snapshots

tests passes

update range

add failing test

fix this bug too

ref

more

# Conflicts:
#	pnpm-lock.yaml
@vercel
Copy link

vercel bot commented Aug 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextra ❌ Failed (Inspect) Aug 23, 2023 10:33pm
nextra-theme-docs-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2023 10:33pm
nextra-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2023 10:33pm

@changeset-bot
Copy link

changeset-bot bot commented Aug 23, 2023

🦋 Changeset detected

Latest commit: ef12f69

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
nextra Major
nextra-theme-docs Major
nextra-theme-blog Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Aug 23, 2023

📦 Next.js Bundle Analysis for swr-site

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 184.77 KB (🟡 +20 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

One Hundred Six Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/404 4.27 KB 189.04 KB 54.01% (🟡 +0.01%)
/500 4.25 KB 189.02 KB 54.01% (+/- <0.01%)
/about/a-page.en-US 4.22 KB 188.99 KB 54.00% (+/- <0.01%)
/about/acknowledgement.en-US 4.21 KB 188.98 KB 54.00% (+/- <0.01%)
/about/changelog.en-US 4.88 KB 189.65 KB 54.19% (🟡 +0.01%)
/about/team.en-US 4.26 KB 189.03 KB 54.01% (+/- <0.01%)
/blog.en-US 5.18 KB 189.95 KB 54.27% (+/- <0.01%)
/blog.ru 5.18 KB 189.95 KB 54.27% (+/- <0.01%)
/blog/swr-v1.en-US 9.82 KB 194.58 KB 55.60% (+/- <0.01%)
/blog/swr-v1.ru 11.55 KB 196.32 KB 56.09% (🟡 +0.02%)
/docs/404-500.en-US 5.1 KB 189.87 KB 54.25% (+/- <0.01%)
/docs/advanced.en-US 4.59 KB 189.36 KB 54.10% (🟡 +0.01%)
/docs/advanced/cache.en-US 16.43 KB 201.2 KB 57.49% (+/- <0.01%)
/docs/advanced/cache.ru 17.67 KB 202.44 KB 57.84% (🟡 +0.01%)
/docs/advanced/code-highlighting.en-US 5.04 KB 189.81 KB 54.23% (🟡 +0.01%)
/docs/advanced/dynamic-markdown-import.en-US 5.83 KB 190.6 KB 54.46% (+/- <0.01%)
/docs/advanced/file-name.with.DOTS.en-US 4.26 KB 189.03 KB 54.01% (+/- <0.01%)
/docs/advanced/file-name.with.DOTS.es-ES 4.28 KB 189.05 KB 54.01% (🟡 +0.01%)
/docs/advanced/file-name.with.DOTS.ru 4.33 KB 189.1 KB 54.03% (+/- <0.01%)
/docs/advanced/images.en-US 4.55 KB 189.32 KB 54.09% (+/- <0.01%)
/docs/advanced/markdown-import.en-US 8.41 KB 193.18 KB 55.20% (🟡 +0.01%)
/docs/advanced/more/loooooooooooooooooooong-title.en-US 4.31 KB 189.08 KB 54.02% (🟡 +0.01%)
/docs/advanced/more/tree/one.en-US 4.27 KB 189.04 KB 54.01% (+/- <0.01%)
/docs/advanced/more/tree/three.en-US 4.22 KB 188.99 KB 54.00% (+/- <0.01%)
/docs/advanced/more/tree/two.en-US 4.25 KB 189.02 KB 54.01% (+/- <0.01%)
/docs/advanced/performance.en-US 6.59 KB 191.36 KB 54.67% (🟡 +0.01%)
/docs/advanced/performance.es-ES 6.77 KB 191.54 KB 54.73% (+/- <0.01%)
/docs/advanced/performance.ru 7.39 KB 192.16 KB 54.90% (🟡 +0.01%)
/docs/advanced/react-native.en-US 6.14 KB 190.91 KB 54.55% (+/- <0.01%)
/docs/advanced/react-native.ru 6.7 KB 191.47 KB 54.71% (+/- <0.01%)
/docs/advanced/scrollbar-x.en-US 5.22 KB 189.99 KB 54.28% (🟡 +0.01%)
/docs/arguments.en-US 5.54 KB 190.31 KB 54.38% (🟡 +0.07%)
/docs/arguments.es-ES 5.61 KB 190.38 KB 54.40% (🟡 +0.06%)
/docs/arguments.ru 5.87 KB 190.64 KB 54.47% (🟡 +0.07%)
/docs/callout.en-US 4.38 KB 189.15 KB 54.04% (🟡 +0.01%)
/docs/change-log.en-US 4.57 KB 189.34 KB 54.10% (+/- <0.01%)
/docs/change-log.es-ES 10.02 KB 194.79 KB 55.65% (🟡 +0.01%)
/docs/change-log.ru 10.13 KB 194.89 KB 55.68% (🟡 +0.01%)
/docs/code-block-without-language.en-US 4.42 KB 189.19 KB 54.05% (🟡 +0.01%)
/docs/conditional-fetching.en-US 5.21 KB 189.98 KB 54.28% (🟡 +0.07%)
/docs/conditional-fetching.es-ES 5.27 KB 190.04 KB 54.30% (🟡 +0.06%)
/docs/conditional-fetching.ru 5.51 KB 190.28 KB 54.37% (🟡 +0.07%)
/docs/custom-header-ids.en-US 4.69 KB 189.46 KB 54.13% (🟡 +0.01%)
/docs/data-fetching.en-US 5.62 KB 190.38 KB 54.40% (+/- <0.01%)
/docs/data-fetching.es-ES 5.67 KB 190.44 KB 54.41% (🟡 +0.01%)
/docs/data-fetching.ru 5.97 KB 190.74 KB 54.50% (+/- <0.01%)
/docs/error-handling.en-US 6.44 KB 191.21 KB 54.63% (🟡 +0.01%)
/docs/error-handling.es-ES 6.58 KB 191.35 KB 54.67% (🟡 +0.01%)
/docs/error-handling.ru 7.16 KB 191.93 KB 54.84% (+/- <0.01%)
/docs/getting-started.en-US 11.75 KB 196.52 KB 56.15% (+/- <0.01%)
/docs/getting-started.es-ES 11.4 KB 196.17 KB 56.05% (+/- <0.01%)
/docs/getting-started.ru 12.07 KB 196.84 KB 56.24% (🟢 -0.01%)
/docs/global-configuration.en-US 5.5 KB 190.27 KB 54.36% (🟡 +0.08%)
/docs/global-configuration.es-ES 5.56 KB 190.33 KB 54.38% (🟡 +0.08%)
/docs/global-configuration.ru 5.86 KB 190.63 KB 54.47% (🟡 +0.08%)
/docs/middleware.en-US 7.49 KB 192.25 KB 54.93% (🟡 +0.19%)
/docs/middleware.ru 8.33 KB 193.1 KB 55.17% (🟡 +0.22%)
/docs/mutation.en-US 7.01 KB 191.78 KB 54.79% (🟡 +0.15%)
/docs/mutation.es-ES 7.08 KB 191.85 KB 54.81% (🟡 +0.15%)
/docs/mutation.ru 7.79 KB 192.56 KB 55.02% (🟡 +0.16%)
/docs/options.en-US 6.06 KB 190.83 KB 54.52% (🟡 +0.01%)
/docs/options.es-ES 6.21 KB 190.98 KB 54.56% (🟡 +0.01%)
/docs/options.ru 6.83 KB 191.59 KB 54.74% (🟡 +0.01%)
/docs/pagination.en-US 16.51 KB 201.28 KB 57.51% (🟡 +0.02%)
/docs/pagination.es-ES 16.91 KB 201.67 KB 57.62% (🟡 +0.03%)
/docs/pagination.ru 17.84 KB 202.61 KB 57.89% (🟡 +0.02%)
/docs/prefetching.en-US 5.69 KB 190.46 KB 54.42% (🟡 +0.06%)
/docs/prefetching.es-ES 5.78 KB 190.55 KB 54.44% (🟡 +0.06%)
/docs/prefetching.ru 6.19 KB 190.96 KB 54.56% (🟡 +0.06%)
/docs/raw-layout.en-US 4.95 KB 189.72 KB 54.21% (+/- <0.01%)
/docs/revalidation.en-US 10.72 KB 195.49 KB 55.85% (🟡 +0.01%)
/docs/revalidation.es-ES 10.87 KB 195.64 KB 55.90% (+/- <0.01%)
/docs/revalidation.ru 11.46 KB 196.23 KB 56.06% (🟡 +0.01%)
/docs/suspense.en-US 5.73 KB 190.5 KB 54.43% (+/- <0.01%)
/docs/suspense.es-ES 5.8 KB 190.57 KB 54.45% (+/- <0.01%)
/docs/suspense.ru 6.17 KB 190.93 KB 54.55% (🟡 +0.01%)
/docs/typescript.en-US 6.01 KB 190.78 KB 54.51% (+/- <0.01%)
/docs/understanding.en-US 11.84 KB 196.61 KB 56.18% (+/- <0.01%)
/docs/understanding.es-ES 11.84 KB 196.61 KB 56.18% (+/- <0.01%)
/docs/understanding.ru 11.84 KB 196.61 KB 56.17% (🟡 +0.01%)
/docs/with-nextjs.en-US 5.9 KB 190.67 KB 54.48% (🟡 +0.06%)
/docs/with-nextjs.es-ES 6.03 KB 190.8 KB 54.51% (🟡 +0.07%)
/docs/with-nextjs.ru 6.45 KB 191.22 KB 54.63% (🟡 +0.07%)
/docs/wrap-toc-items.en-US 5.06 KB 189.83 KB 54.24% (🟡 +0.01%)
/docs/wrap-toc-items.es-ES 5.06 KB 189.83 KB 54.24% (🟡 +0.01%)
/docs/wrap-toc-items.ru 5.06 KB 189.83 KB 54.24% (🟡 +0.01%)
/examples/auth.en-US 4.49 KB 189.26 KB 54.07% (🟡 +0.01%)
/examples/auth.es-ES 4.5 KB 189.27 KB 54.08% (+/- <0.01%)
/examples/auth.ru 4.52 KB 189.29 KB 54.08% (🟡 +0.01%)
/examples/basic.en-US 4.49 KB 189.26 KB 54.08% (+/- <0.01%)
/examples/basic.es-ES 4.5 KB 189.26 KB 54.08% (+/- <0.01%)
/examples/basic.ru 4.54 KB 189.31 KB 54.09% (+/- <0.01%)
/examples/error-handling.en-US 4.5 KB 189.27 KB 54.08% (+/- <0.01%)
/examples/error-handling.es-ES 4.5 KB 189.27 KB 54.08% (+/- <0.01%)
/examples/error-handling.ru 4.54 KB 189.31 KB 54.09% (+/- <0.01%)
/examples/full.en-US 4.47 KB 189.24 KB 54.07% (+/- <0.01%)
/examples/infinite-loading.en-US 4.51 KB 189.28 KB 54.08% (🟡 +0.01%)
/examples/infinite-loading.es-ES 4.51 KB 189.28 KB 54.08% (🟡 +0.01%)
/examples/infinite-loading.ru 4.56 KB 189.33 KB 54.09% (🟡 +0.01%)
/examples/ssr.en-US 4.5 KB 189.27 KB 54.08% (+/- <0.01%)
/examples/ssr.ru 4.5 KB 189.27 KB 54.08% (+/- <0.01%)
/foo.en-US 4.6 KB 189.37 KB 54.10% (🟡 +0.07%)
/index.en-US 8.08 KB 192.85 KB 55.10% (🟡 +0.01%)
/index.es-ES 7.87 KB 192.64 KB 55.04% (+/- <0.01%)
/index.ru 8.29 KB 193.06 KB 55.16% (🟡 +0.01%)
/test.en-US 4.47 KB 189.24 KB 54.07% (+/- <0.01%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant