Unverified Commit ccc64d96 authored by Delba de Oliveira's avatar Delba de Oliveira Committed by GitHub

[Docs] Remove html <b> from summaries (#51008)

This PR removes manual HTML `<b>` tags in `<details><summary>...` titles. They are unnecessary because we add bold styling in CSS.

Also did a tiny fix to some other unnecessary inline HTML.
parent 9fad4740
...@@ -7,7 +7,7 @@ description: Style your Next.js Application with CSS Modules. ...@@ -7,7 +7,7 @@ description: Style your Next.js Application with CSS Modules.
<details open> <details open>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Basic CSS Example](https://github.com/vercel/next.js/tree/canary/examples/basic-css) - [Basic CSS Example](https://github.com/vercel/next.js/tree/canary/examples/basic-css)
......
...@@ -7,7 +7,7 @@ description: Style your Next.js Application using Tailwind CSS. ...@@ -7,7 +7,7 @@ description: Style your Next.js Application using Tailwind CSS.
<details open> <details open>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [With Tailwind CSS](https://github.com/vercel/next.js/tree/canary/examples/with-tailwindcss) - [With Tailwind CSS](https://github.com/vercel/next.js/tree/canary/examples/with-tailwindcss)
......
...@@ -237,7 +237,7 @@ export default function RootLayout({ children }) { ...@@ -237,7 +237,7 @@ export default function RootLayout({ children }) {
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Styled JSX](https://github.com/vercel/next.js/tree/canary/examples/with-styled-jsx) - [Styled JSX](https://github.com/vercel/next.js/tree/canary/examples/with-styled-jsx)
......
...@@ -11,7 +11,7 @@ related: ...@@ -11,7 +11,7 @@ related:
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Image Component](https://github.com/vercel/next.js/tree/canary/examples/image-component) - [Image Component](https://github.com/vercel/next.js/tree/canary/examples/image-component)
......
...@@ -5,7 +5,7 @@ description: Learn to add and access environment variables in your Next.js appli ...@@ -5,7 +5,7 @@ description: Learn to add and access environment variables in your Next.js appli
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Environment Variables](https://github.com/vercel/next.js/tree/canary/examples/environment-variables) - [Environment Variables](https://github.com/vercel/next.js/tree/canary/examples/environment-variables)
......
...@@ -5,7 +5,7 @@ description: Configure module path aliases that allow you to remap certain impor ...@@ -5,7 +5,7 @@ description: Configure module path aliases that allow you to remap certain impor
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Absolute Imports and Aliases](https://github.com/vercel/next.js/tree/canary/examples/with-absolute-imports) - [Absolute Imports and Aliases](https://github.com/vercel/next.js/tree/canary/examples/with-absolute-imports)
......
...@@ -195,7 +195,7 @@ Next.js recommended adding a [property to Page components](/docs/pages/building- ...@@ -195,7 +195,7 @@ Next.js recommended adding a [property to Page components](/docs/pages/building-
<details> <details>
<summary> <summary>
<b>See before and after example</b> See before and after example
</summary> </summary>
**Before** **Before**
......
...@@ -5,7 +5,7 @@ description: Optimize Images in your Next.js Application using the built-in `nex ...@@ -5,7 +5,7 @@ description: Optimize Images in your Next.js Application using the built-in `nex
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Image Component](https://github.com/vercel/next.js/tree/canary/examples/image-component) - [Image Component](https://github.com/vercel/next.js/tree/canary/examples/image-component)
......
...@@ -5,7 +5,7 @@ description: Enable fast client-side navigation with the built-in `next/link` co ...@@ -5,7 +5,7 @@ description: Enable fast client-side navigation with the built-in `next/link` co
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Hello - [Hello
World](https://github.com/vercel/next.js/tree/canary/examples/hello-world) World](https://github.com/vercel/next.js/tree/canary/examples/hello-world)
......
...@@ -7,18 +7,14 @@ description: Learn to add and access environment variables in your Next.js appli ...@@ -7,18 +7,14 @@ description: Learn to add and access environment variables in your Next.js appli
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [With env](https://github.com/vercel/next.js/tree/canary/examples/with-env-from-next-config-js) - [With env](https://github.com/vercel/next.js/tree/canary/examples/with-env-from-next-config-js)
</details> </details>
> <b>Note</b>: environment variables specified in this way will <b>always</b> be > **Note**: environment variables specified in this way will **always** be included in the JavaScript bundle, prefixing the environment variable name with `NEXT_PUBLIC_` only has an effect when specifying them [through the environment or .env files](/docs/pages/building-your-application/configuring/environment-variables).
> included in the JavaScript bundle, prefixing the environment variable name
> with `NEXT_PUBLIC_` only has an effect when specifying them [through the
> environment or .env
> files](/docs/pages/building-your-application/configuring/environment-variables).
To add environment variables to the JavaScript bundle, open `next.config.js` and add the `env` config: To add environment variables to the JavaScript bundle, open `next.config.js` and add the `env` config:
......
...@@ -8,7 +8,7 @@ description: Customize the pages that will be exported as HTML files when using ...@@ -8,7 +8,7 @@ description: Customize the pages that will be exported as HTML files when using
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Static Export](https://github.com/vercel/next.js/tree/canary/examples/with-static-export) - [Static Export](https://github.com/vercel/next.js/tree/canary/examples/with-static-export)
......
...@@ -293,7 +293,7 @@ module.exports = { ...@@ -293,7 +293,7 @@ module.exports = {
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Incremental adoption of Next.js](https://github.com/vercel/next.js/tree/canary/examples/custom-routes-proxying) - [Incremental adoption of Next.js](https://github.com/vercel/next.js/tree/canary/examples/custom-routes-proxying)
......
...@@ -99,7 +99,7 @@ Now, instead of using interpolation to create the path, we use a URL object in ` ...@@ -99,7 +99,7 @@ Now, instead of using interpolation to create the path, we use a URL object in `
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Dynamic Routing](https://github.com/vercel/next.js/tree/canary/examples/dynamic-routing) - [Dynamic Routing](https://github.com/vercel/next.js/tree/canary/examples/dynamic-routing)
...@@ -114,7 +114,7 @@ In general we recommend using [`useRouter`](/docs/pages/api-reference/functions/ ...@@ -114,7 +114,7 @@ In general we recommend using [`useRouter`](/docs/pages/api-reference/functions/
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Using Router](https://github.com/vercel/next.js/tree/canary/examples/using-router) - [Using Router](https://github.com/vercel/next.js/tree/canary/examples/using-router)
...@@ -143,7 +143,7 @@ export default function ReadMore() { ...@@ -143,7 +143,7 @@ export default function ReadMore() {
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Shallow Routing](https://github.com/vercel/next.js/tree/canary/examples/with-shallow-routing) - [Shallow Routing](https://github.com/vercel/next.js/tree/canary/examples/with-shallow-routing)
......
...@@ -5,7 +5,7 @@ description: Next.js supports API Routes, which allow you to build your API with ...@@ -5,7 +5,7 @@ description: Next.js supports API Routes, which allow you to build your API with
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Basic API Routes](https://github.com/vercel/next.js/tree/canary/examples/api-routes) - [Basic API Routes](https://github.com/vercel/next.js/tree/canary/examples/api-routes)
......
...@@ -6,7 +6,7 @@ description: Next.js has built-in support for internationalized routing and lang ...@@ -6,7 +6,7 @@ description: Next.js has built-in support for internationalized routing and lang
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [i18n routing](https://github.com/vercel/next.js/tree/canary/examples/i18n-routing) - [i18n routing](https://github.com/vercel/next.js/tree/canary/examples/i18n-routing)
......
...@@ -105,7 +105,7 @@ Now that we've discussed authentication patterns, let's look at specific provide ...@@ -105,7 +105,7 @@ Now that we've discussed authentication patterns, let's look at specific provide
<details open> <details open>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [with-iron-session](https://github.com/vercel/next.js/tree/canary/examples/with-iron-session) - [with-iron-session](https://github.com/vercel/next.js/tree/canary/examples/with-iron-session)
...@@ -129,7 +129,7 @@ To see examples with other authentication providers, check out the [examples fol ...@@ -129,7 +129,7 @@ To see examples with other authentication providers, check out the [examples fol
<details open> <details open>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Auth0](https://github.com/vercel/next.js/tree/canary/examples/auth0) - [Auth0](https://github.com/vercel/next.js/tree/canary/examples/auth0)
......
...@@ -5,7 +5,7 @@ description: Use Static Site Generation (SSG) to pre-render pages at build time. ...@@ -5,7 +5,7 @@ description: Use Static Site Generation (SSG) to pre-render pages at build time.
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [WordPress Example](https://github.com/vercel/next.js/tree/canary/examples/cms-wordpress)([Demo](https://next-blog-wordpress.vercel.app)) - [WordPress Example](https://github.com/vercel/next.js/tree/canary/examples/cms-wordpress)([Demo](https://next-blog-wordpress.vercel.app))
......
...@@ -4,20 +4,12 @@ description: Learn how to create or update static pages at runtime with Incremen ...@@ -4,20 +4,12 @@ description: Learn how to create or update static pages at runtime with Incremen
--- ---
<details> <details>
<summary> <summary>Examples</summary>
<b>Examples</b>
</summary> - [Next.js Commerce](https://nextjs.org/commerce)
<ul> - [GitHub Reactions Demo](https://reactions-demo.vercel.app/)
<li> - [Static Tweet Demo](https://static-tweet.vercel.app/)
<a href="https://nextjs.org/commerce">Next.js Commerce</a>
</li>
<li>
<a href="https://reactions-demo.vercel.app/">GitHub Reactions Demo</a>
</li>
<li>
<a href="https://static-tweet.vercel.app/">Static Tweet Demo</a>
</li>
</ul>
</details> </details>
Next.js allows you to create or update static pages _after_ you’ve built your site. Incremental Static Regeneration (ISR) enables you to use static-generation on a per-page basis, **without needing to rebuild the entire site**. With ISR, you can retain the benefits of static while scaling to millions of pages. Next.js allows you to create or update static pages _after_ you’ve built your site. Incremental Static Regeneration (ISR) enables you to use static-generation on a per-page basis, **without needing to rebuild the entire site**. With ISR, you can retain the benefits of static while scaling to millions of pages.
......
...@@ -5,7 +5,7 @@ description: 'Learn how to create or update static pages at runtime with Increme ...@@ -5,7 +5,7 @@ description: 'Learn how to create or update static pages at runtime with Increme
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Next.js Commerce](https://nextjs.org/commerce) - [Next.js Commerce](https://nextjs.org/commerce)
...@@ -15,7 +15,7 @@ description: 'Learn how to create or update static pages at runtime with Increme ...@@ -15,7 +15,7 @@ description: 'Learn how to create or update static pages at runtime with Increme
</details> </details>
<details> <details>
<summary><b>Version History</b></summary> <summary>Version History</summary>
| Version | Changes | | Version | Changes |
| --------- | --------------------------------------------------------------------------------------- | | --------- | --------------------------------------------------------------------------------------- |
......
...@@ -5,7 +5,7 @@ description: Learn how to set up Next.js with three commonly used testing tools ...@@ -5,7 +5,7 @@ description: Learn how to set up Next.js with three commonly used testing tools
<details open> <details open>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Next.js with Cypress](https://github.com/vercel/next.js/tree/canary/examples/with-cypress) - [Next.js with Cypress](https://github.com/vercel/next.js/tree/canary/examples/with-cypress)
......
...@@ -4,10 +4,8 @@ description: With minimal config, and without leaving React, you can start addin ...@@ -4,10 +4,8 @@ description: With minimal config, and without leaving React, you can start addin
--- ---
<details> <details>
<summary> <summary>Examples</summary>-
<b>Examples</b> [AMP](https://github.com/vercel/next.js/tree/canary/examples/amp)
</summary>
- [AMP](https://github.com/vercel/next.js/tree/canary/examples/amp)
</details> </details>
With Next.js you can turn any React page into an AMP page, with minimal config, and without leaving React. With Next.js you can turn any React page into an AMP page, with minimal config, and without leaving React.
......
...@@ -5,7 +5,7 @@ description: Extend the babel preset added by Next.js with your own configs. ...@@ -5,7 +5,7 @@ description: Extend the babel preset added by Next.js with your own configs.
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Customizing babel configuration](https://github.com/vercel/next.js/tree/canary/examples/with-custom-babel-config) - [Customizing babel configuration](https://github.com/vercel/next.js/tree/canary/examples/with-custom-babel-config)
......
...@@ -5,7 +5,7 @@ description: Extend the PostCSS config and plugins added by Next.js with your ow ...@@ -5,7 +5,7 @@ description: Extend the PostCSS config and plugins added by Next.js with your ow
<details open> <details open>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Tailwind CSS Example](https://github.com/vercel/next.js/tree/canary/examples/with-tailwindcss) - [Tailwind CSS Example](https://github.com/vercel/next.js/tree/canary/examples/with-tailwindcss)
...@@ -40,7 +40,7 @@ in your entire project by configuring autoprefixer with the configuration shown ...@@ -40,7 +40,7 @@ in your entire project by configuring autoprefixer with the configuration shown
See ["Customizing Plugins"](#customizing-plugins) below for more information. See ["Customizing Plugins"](#customizing-plugins) below for more information.
<details> <details>
<summary><strong>Click to view the configuration to enable CSS Grid Layout</strong></summary> <summary>Click to view the configuration to enable CSS Grid Layout</summary>
```json ```json
{ {
......
...@@ -5,7 +5,7 @@ description: Start a Next.js app programmatically using a custom server. ...@@ -5,7 +5,7 @@ description: Start a Next.js app programmatically using a custom server.
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Custom Server](https://github.com/vercel/next.js/tree/canary/examples/custom-server) - [Custom Server](https://github.com/vercel/next.js/tree/canary/examples/custom-server)
......
...@@ -7,7 +7,7 @@ description: Next.js has the preview mode for statically generated pages. You ca ...@@ -7,7 +7,7 @@ description: Next.js has the preview mode for statically generated pages. You ca
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [WordPress Example](https://github.com/vercel/next.js/tree/canary/examples/cms-wordpress) ([Demo](https://next-blog-wordpress.vercel.app)) - [WordPress Example](https://github.com/vercel/next.js/tree/canary/examples/cms-wordpress) ([Demo](https://next-blog-wordpress.vercel.app))
......
...@@ -27,7 +27,7 @@ Before taking your Next.js application to production, here are some recommendati ...@@ -27,7 +27,7 @@ Before taking your Next.js application to production, here are some recommendati
<details open> <details open>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [ssr-caching](https://github.com/vercel/next.js/tree/canary/examples/ssr-caching) - [ssr-caching](https://github.com/vercel/next.js/tree/canary/examples/ssr-caching)
...@@ -81,7 +81,7 @@ By default, `Cache-Control` headers will be set differently depending on how you ...@@ -81,7 +81,7 @@ By default, `Cache-Control` headers will be set differently depending on how you
<details open> <details open>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [with-dynamic-import](https://github.com/vercel/next.js/tree/canary/examples/with-dynamic-import) - [with-dynamic-import](https://github.com/vercel/next.js/tree/canary/examples/with-dynamic-import)
...@@ -102,7 +102,7 @@ Each file inside your `pages/` directory will automatically be code split into i ...@@ -102,7 +102,7 @@ Each file inside your `pages/` directory will automatically be code split into i
<details open> <details open>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Pino and Logflare Example](https://github.com/Logflare/next-pino-logflare-logging-example) - [Pino and Logflare Example](https://github.com/Logflare/next-pino-logflare-logging-example)
...@@ -120,7 +120,7 @@ If you want a structured logging package, we recommend [Pino](https://www.npmjs. ...@@ -120,7 +120,7 @@ If you want a structured logging package, we recommend [Pino](https://www.npmjs.
<details open> <details open>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [with-sentry](https://github.com/vercel/next.js/tree/canary/examples/with-sentry) - [with-sentry](https://github.com/vercel/next.js/tree/canary/examples/with-sentry)
......
...@@ -5,7 +5,7 @@ description: Learn how to use multi zones to deploy multiple Next.js apps as a s ...@@ -5,7 +5,7 @@ description: Learn how to use multi zones to deploy multiple Next.js apps as a s
<details open> <details open>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [With Zones](https://github.com/vercel/next.js/tree/canary/examples/with-zones) - [With Zones](https://github.com/vercel/next.js/tree/canary/examples/with-zones)
......
...@@ -5,7 +5,7 @@ description: Add custom elements to the `head` of your page with the built-in He ...@@ -5,7 +5,7 @@ description: Add custom elements to the `head` of your page with the built-in He
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Head Elements](https://github.com/vercel/next.js/tree/canary/examples/head-elements) - [Head Elements](https://github.com/vercel/next.js/tree/canary/examples/head-elements)
......
...@@ -5,7 +5,7 @@ description: Backwards compatible Image Optimization with the Legacy Image compo ...@@ -5,7 +5,7 @@ description: Backwards compatible Image Optimization with the Legacy Image compo
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Legacy Image Component](https://github.com/vercel/next.js/tree/canary/examples/image-legacy-component) - [Legacy Image Component](https://github.com/vercel/next.js/tree/canary/examples/image-legacy-component)
......
...@@ -151,7 +151,7 @@ export default Post ...@@ -151,7 +151,7 @@ export default Post
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Static generation of a large number of pages](https://static-tweet.vercel.app) - [Static generation of a large number of pages](https://static-tweet.vercel.app)
......
...@@ -5,7 +5,7 @@ description: Enable AMP in a page, and control the way Next.js adds AMP to the p ...@@ -5,7 +5,7 @@ description: Enable AMP in a page, and control the way Next.js adds AMP to the p
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [AMP](https://github.com/vercel/next.js/tree/canary/examples/amp) - [AMP](https://github.com/vercel/next.js/tree/canary/examples/amp)
......
...@@ -56,7 +56,7 @@ The following methods are included inside `router`: ...@@ -56,7 +56,7 @@ The following methods are included inside `router`:
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Using Router](https://github.com/vercel/next.js/tree/canary/examples/using-router) - [Using Router](https://github.com/vercel/next.js/tree/canary/examples/using-router)
...@@ -364,7 +364,7 @@ export default function Page() { ...@@ -364,7 +364,7 @@ export default function Page() {
<details> <details>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [With a page loading indicator](https://github.com/vercel/next.js/tree/canary/examples/with-loading) - [With a page loading indicator](https://github.com/vercel/next.js/tree/canary/examples/with-loading)
......
...@@ -5,7 +5,7 @@ description: Fast Refresh is a hot module reloading experience that gives you in ...@@ -5,7 +5,7 @@ description: Fast Refresh is a hot module reloading experience that gives you in
<details open> <details open>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [Fast Refresh Demo](https://github.com/vercel/next.js/tree/canary/examples/fast-refresh-demo) - [Fast Refresh Demo](https://github.com/vercel/next.js/tree/canary/examples/fast-refresh-demo)
......
...@@ -256,7 +256,7 @@ module.exports = { ...@@ -256,7 +256,7 @@ module.exports = {
<details open> <details open>
<summary> <summary>
<b>Examples</b> Examples
</summary> </summary>
- [modularize-imports](https://github.com/vercel/next.js/blob/canary/examples/modularize-imports/) - [modularize-imports](https://github.com/vercel/next.js/blob/canary/examples/modularize-imports/)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment