1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Replace all relative links with absolute links in README (#5356)

fixes #5355
This commit is contained in:
Martin Beierling-Mutz 2018-10-02 00:41:35 +02:00 committed by Tim Neutkens
parent 3d94ae0a7d
commit 532351ebcf

View file

@ -145,7 +145,7 @@ export default () => (
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/basic-css">Basic css</a></li>
<li><a href="/examples/basic-css">Basic css</a></li>
</ul>
</details>
@ -189,12 +189,13 @@ Please see the [styled-jsx documentation](https://www.npmjs.com/package/styled-j
<b>Examples</b>
</summary>
<ul>
<li><a href="./examples/with-styled-components">Styled components</a></li>
<li><a href="./examples/with-styletron">Styletron</a></li>
<li><a href="./examples/with-glamor">Glamor</a></li>
<li><a href="./examples/with-glamorous">Glamorous</a></li>
<li><a href="./examples/with-cxs">Cxs</a></li><li><a href="./examples/with-aphrodite">Aphrodite</a></li>
<li><a href="./examples/with-fela">Fela</a></li>
<li><a href="/examples/with-styled-components">Styled components</a></li>
<li><a href="/examples/with-styletron">Styletron</a></li>
<li><a href="/examples/with-glamor">Glamor</a></li>
<li><a href="/examples/with-glamorous">Glamorous</a></li>
<li><a href="/examples/with-cxs">Cxs</a></li>
<li><a href="/examples/with-aphrodite">Aphrodite</a></li>
<li><a href="/examples/with-fela">Fela</a></li>
</ul>
</details>
@ -232,8 +233,8 @@ _Note: Don't name the `static` directory anything else. The name is required and
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/head-elements">Head elements</a></li>
<li><a href="./examples/layout-component">Layout component</a></li>
<li><a href="/examples/head-elements">Head elements</a></li>
<li><a href="/examples/layout-component">Layout component</a></li>
</ul>
</details>
@ -283,7 +284,7 @@ _Note: The contents of `<head>` get cleared upon unmounting the component, so ma
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/data-fetch">Data fetch</a></li>
<li><a href="/examples/data-fetch">Data fetch</a></li>
</ul>
</details>
@ -359,7 +360,7 @@ export default Page
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/hello-world">Hello World</a></li>
<li><a href="/examples/hello-world">Hello World</a></li>
</ul>
</details>
@ -402,7 +403,7 @@ To inject the `pathname`, `query` or `asPath` in your component, you can use [wi
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/with-url-object-routing">With URL Object Routing</a></li>
<li><a href="/examples/with-url-object-routing">With URL Object Routing</a></li>
</ul>
</details>
@ -497,8 +498,8 @@ The default behaviour of `<Link>` is to scroll to the top of the page. When ther
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/using-router">Basic routing</a></li>
<li><a href="./examples/with-loading">With a page loading indicator</a></li>
<li><a href="/examples/using-router">Basic routing</a></li>
<li><a href="/examples/with-loading">With a page loading indicator</a></li>
</ul>
</details>
@ -620,7 +621,7 @@ Router.events.on('routeChangeError', (err, url) => {
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/with-shallow-routing">Shallow Routing</a></li>
<li><a href="/examples/with-shallow-routing">Shallow Routing</a></li>
</ul>
</details>
@ -664,7 +665,7 @@ componentDidUpdate(prevProps) {
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/using-with-router">Using the `withRouter` utility</a></li>
<li><a href="/examples/using-with-router">Using the `withRouter` utility</a></li>
</ul>
</details>
@ -705,7 +706,7 @@ The above `router` object comes with an API similar to [`next/router`](#imperati
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/with-prefetching">Prefetching</a></li>
<li><a href="/examples/with-prefetching">Prefetching</a></li>
</ul>
</details>
@ -799,12 +800,12 @@ export default withRouter(MyLink)
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/custom-server">Basic custom server</a></li>
<li><a href="./examples/custom-server-express">Express integration</a></li>
<li><a href="./examples/custom-server-hapi">Hapi integration</a></li>
<li><a href="./examples/custom-server-koa">Koa integration</a></li>
<li><a href="./examples/parameterized-routing">Parameterized routing</a></li>
<li><a href="./examples/ssr-caching">SSR caching</a></li>
<li><a href="/examples/custom-server">Basic custom server</a></li>
<li><a href="/examples/custom-server-express">Express integration</a></li>
<li><a href="/examples/custom-server-hapi">Hapi integration</a></li>
<li><a href="/examples/custom-server-koa">Koa integration</a></li>
<li><a href="/examples/parameterized-routing">Parameterized routing</a></li>
<li><a href="/examples/ssr-caching">SSR caching</a></li>
</ul>
</details>
@ -934,7 +935,7 @@ app.prepare().then(() => {
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/with-dynamic-import">With Dynamic Import</a></li>
<li><a href="/examples/with-dynamic-import">With Dynamic Import</a></li>
</ul>
</details>
@ -1032,8 +1033,8 @@ export default () => <HelloBundle title="Dynamic Bundle" />
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/with-app-layout">Using `_app.js` for layout</a></li>
<li><a href="./examples/with-componentdidcatch">Using `_app.js` to override `componentDidCatch`</a></li>
<li><a href="/examples/with-app-layout">Using `_app.js` for layout</a></li>
<li><a href="/examples/with-componentdidcatch">Using `_app.js` to override `componentDidCatch`</a></li>
</ul>
</details>
@ -1080,8 +1081,8 @@ export default class MyApp extends App {
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/with-styled-components">Styled components custom document</a></li>
<li><a href="./examples/with-amp">Google AMP</a></li>
<li><a href="/examples/with-styled-components">Styled components custom document</a></li>
<li><a href="/examples/with-amp">Google AMP</a></li>
</ul>
</details>
@ -1089,7 +1090,7 @@ export default class MyApp extends App {
- Is rendered on the server side
- Is used to change the initial server side rendered document markup
- Commonly used to implement server side rendering for css-in-js libraries like [styled-components](./examples/with-styled-components), [glamorous](./examples/with-glamorous) or [emotion](with-emotion). [styled-jsx](https://github.com/zeit/styled-jsx) is included with Next.js by default.
- Commonly used to implement server side rendering for css-in-js libraries like [styled-components](/examples/with-styled-components), [glamorous](/examples/with-glamorous) or [emotion](/examples/with-emotion). [styled-jsx](https://github.com/zeit/styled-jsx) is included with Next.js by default.
Pages in `Next.js` skip the definition of the surrounding document's markup. For example, you never include `<html>`, `<body>`, etc. To override that default behavior, you must create a file at `./pages/_document.js`, where you can extend the `Document` class:
@ -1212,7 +1213,7 @@ module.exports = (phase, {defaultConfig}) => {
}
```
`phase` is the current context in which the configuration is loaded. You can see all phases here: [constants](./lib/constants.js)
`phase` is the current context in which the configuration is loaded. You can see all phases here: [constants](/packages/next/lib/constants.js)
Phases can be imported from `next/constants`:
```js
@ -1299,7 +1300,7 @@ module.exports = {
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/with-webpack-bundle-analyzer">Custom webpack bundle analyzer</a></li>
<li><a href="/examples/with-webpack-bundle-analyzer">Custom webpack bundle analyzer</a></li>
</ul>
</details>
@ -1386,7 +1387,7 @@ module.exports = {
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/with-custom-babel-config">Custom babel configuration</a></li>
<li><a href="/examples/with-custom-babel-config">Custom babel configuration</a></li>
</ul>
</details>
@ -1527,7 +1528,7 @@ The [polyfills](https://github.com/zeit/next.js/tree/canary/examples/with-polyfi
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/with-static-export">Static export</a></li>
<li><a href="/examples/with-static-export">Static export</a></li>
</ul>
</details>
@ -1655,7 +1656,7 @@ The `req` and `res` fields of the `context` object passed to `getInitialProps` a
<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="./examples/with-zones">With Zones</a></li>
<li><a href="/examples/with-zones">With Zones</a></li>
</ul>
</details>
@ -1758,7 +1759,7 @@ Next.js bundles [styled-jsx](https://github.com/zeit/styled-jsx) supporting scop
We track V8. Since V8 has wide support for ES6 and `async` and `await`, we transpile those. Since V8 doesnt support class decorators, we dont transpile those.
See the documentation about [customizing the babel config](#customizing-babel-config) and [next/preset](./build/babel/preset.js) for more information.
See the documentation about [customizing the babel config](#customizing-babel-config) and [next/preset](/packages/next/build/babel/preset.js) for more information.
</details>
@ -1805,7 +1806,7 @@ Its up to you. `getInitialProps` is an `async` function (or a regular functio
<details>
<summary>Can I use it with GraphQL?</summary>
Yes! Here's an example with [Apollo](./examples/with-apollo).
Yes! Here's an example with [Apollo](/examples/with-apollo).
</details>
@ -1814,7 +1815,7 @@ Yes! Here's an example with [Apollo](./examples/with-apollo).
<details>
<summary>Can I use it with Redux?</summary>
Yes! Here's an [example](./examples/with-redux)
Yes! Here's an [example](/examples/with-redux)
</details>
<p></p>
@ -1822,7 +1823,7 @@ Yes! Here's an [example](./examples/with-redux)
<details>
<summary>Can I use Next with my favorite Javascript library or toolkit?</summary>
Since our first release we've had **many** example contributions, you can check them out in the [examples](./examples) directory
Since our first release we've had **many** example contributions, you can check them out in the [examples](/examples) directory
</details>
<p></p>
@ -1844,7 +1845,7 @@ As we were researching options for server-rendering React that didnt involve
## Contributing
Please see our [contributing.md](./contributing.md)
Please see our [contributing.md](/packages/next/contributing.md)
## Authors