Commit graph

2137 commits

Author SHA1 Message Date
Bart Deslagmulder
7e6e25de7c Add .jsx as a valid file extension in the pages directory (#10281)
It's possible to use a .jsx file extension in the `pages` directory but the doc doesn't mention it.
Next to the current extensions: .js, .ts & .tsx I would mention .jsx also in the list.
2020-01-27 12:52:49 +01:00
Danny Tatom
dd3bb73d80 Update typo in typescript docs (#10276) 2020-01-27 12:51:34 +01:00
Tim Neutkens
c71694e28b
Update built-in-css-support.md 2020-01-26 16:01:22 +01:00
Nikita Borisowsky
5bcd33fccb Fix missing file extensions in docs (#10251) 2020-01-23 22:41:48 -05:00
none23
bc139c29b7 Fix a typo in docs (#10239)
SSR Catching -> SSR Caching
2020-01-23 14:40:09 -05:00
Joe Haddad
fb47360f8d
Add PostCSS Configuration to Sidebar 2020-01-23 14:23:10 -05:00
Joe Haddad
f4a5b61244
Customizing PostCSS Configuration (#10236)
* Customizing PostCSS Configuration

* Adjust docs

* Make a warning

* expand

* Add note about require()

* Have details open by default
2020-01-23 11:47:31 -05:00
Shu Uesugi
85571af157 Improve Link documentation (#10225)
* Improve Link documentation

* Add comments
2020-01-23 11:05:24 +01:00
Alexander Dreith
8449ebc221 [Experimental] Add built-in Sass support (#10133)
* Add built-in Sass support

* Add copy of CSS tests for SCSS

* Fix failing tests

* Fix url-loader tests

* Remove css file generated by tests

* Fix nprogress import for css file

* Fix SCSS modules (still 2 tests that need investigating)

* Update documentation for Sass support

* Fix plain CSS import test

* Fix formatting with prettier fix

* Update test output to reflect scss usage

* Revert "Fix plain CSS import test"

This reverts commit 380319d9d0c4bfb19e28c210262ccd82d19f3556.

# Conflicts:
#	test/integration/scss-modules/test/index.test.js

* Update loader structure

* Resolve loaders before passing to compile function

* Remove dead filter  code

* Arrange loaders in order and push to array

* Fix loader order bug

* Fix global Sass loader and make module prepocessor optional

* Adjust Sass Modules Implementation

* Fix typo

* Adjust regexps

* Use regexes

* Simplify global setup

* Adjust comments

* fix regex

* Simplify identifier file

* Update Sass Instructions

* Remove unneeded fixtures

* Adjust global tests

* Remove wrapper

* Update source maps

* Flag scss behavior

* Fix css property value

* Update fixtures with Sass vars

* Turn on Scss support

* fix HMR test

* Fix snapshots

Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-22 15:26:51 -05:00
Luis Alvarez D
f24aa41440
Updated docs (#10213) 2020-01-22 14:30:55 -05:00
Luis Alvarez D
7fc850e28a [docs] Added related links to next.config.js (#10174)
* Added related links

* Added missing dots
2020-01-20 21:40:20 +01:00
Luis Alvarez D
7f021546d3 Remove @zeit/next-css from docs (#10168)
* Removed next-css from docs

* Added mention for next-stylus
2020-01-20 15:41:04 +01:00
Orta
0444cb97ba Update static-html-export.md (#10155) 2020-01-18 16:24:29 -05:00
Shu Uesugi
6de65faef4 Add more details to the deployment doc (#10085) 2020-01-14 10:03:28 -05:00
Joe Haddad
4e71121f3c
Add New CSS Documentation (#10072)
* Restructure CSS Doc

* docs for stylesheets and css modules

* Add production note

* add or

* linebreaks

* Revise docs

* Update docs/basic-features/built-in-css-support.md

Co-Authored-By: Luis Alvarez D. <luis@zeit.co>

Co-authored-by: Luis Alvarez D. <luis@zeit.co>
2020-01-13 16:32:13 -05:00
Lorenzo de Vargas Candiago
3096a772fb Change example link to be equal to query property (#10052)
The example uses { name: 'ZEIT' } but then say that it will link to `?name=Zeit`.

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-01-12 13:21:09 -06:00
Lee Robinson
b533f2afab Fix typo in API Routes documentation. (#10054)
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-01-12 13:12:59 -06:00
Lorenzo de Vargas Candiago
d4675c56b5 change "wil" to "will" (#10050) 2020-01-11 21:53:58 -05:00
Luis Alvarez D
7b83df3209 [Docs] Add missing import in custom App code example (#10047)
* Updated comment

* Removed unexpected word

* Update custom-app.md

* Update custom-app.md

Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-11 14:57:13 -05:00
Ahmad Awais ⚡️
a86640b309 docs: Fix Some Syntax Highlighting (#10013)
Fixes #10012
2020-01-09 11:15:04 -05:00
Jeremias Menichelli
e72d8996b2 Fix typo on code comment for pages docs (#10011) 2020-01-09 16:35:54 +01:00
Tim Neutkens
805e4bb20c Update static-file-serving.md 2020-01-09 12:37:53 +01:00
Luis Alvarez D
18d8c90c3f Updated docs for pathname (#9964)
* Updated docs for pathname

* Apply suggestions from Tim

Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>

* Removed trailing dots

Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-01-08 11:56:17 +01:00
Luis Alvarez D
f8888636ba Removed <br> from docs (#9972) 2020-01-07 20:37:19 +01:00
Jurian
5a7f9fa2f7 typo fix (#9979)
Changed `getinitialProps` on line 77 to `getInitialProps`
2020-01-07 09:57:54 -05:00
Moritz Kneilmann
f44f9e2da7 docs: Fix imports in router API reference (#9977) 2020-01-07 08:57:46 -05:00
Luis Alvarez D
23a04e466c Add docs for catch all routes (#9967)
* Added docs for catch all routes

* Removed `be`

Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-06 16:12:05 -05:00
Ilham Wahabi
12a877d8c8 fix getting data in class based example (#9938)
Check me if i'm wrong but don't we also need to `import fetch from 'isomorphic-unfetch'` in class based example?
Currently it's just in function based component.

Also I think we should access `stars` from props at first right?
2020-01-04 12:51:13 +01:00
Cully Larson
3707701cc9 Fix mistakes in the Deployment doc (#9925)
* Fix a few small spelling and grammar mistakes in the Deployment doc

* Update deployment.md

Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-03 15:55:49 -05:00
Cully Larson
a3925b5865 Fix mistakes in the Custom Server doc (#9930) 2020-01-03 15:38:57 -05:00
Cully Larson
4a7a28a887 Fixup the Static HTML Export doc (#9928) 2020-01-03 15:37:11 -05:00
Cully Larson
41d4084c04 Add a missing word to the Static Optimization doc (#9926) 2020-01-03 15:36:53 -05:00
Luis Alvarez D
d1fdd2bbf8 Add descriptions to documentation pages (#9901)
* Added descriptions

* Added descriptions to API Reference

* Added descriptions to API Routes

* Added descriptions to basic features

* Added descriptions to the routing docs

* Update exportPathMap.md

Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-03 13:16:51 -05:00
Luis Alvarez D
2a70b268c8 Remove dynamic assetPrefix from docs (#9912) 2020-01-03 02:08:32 +01:00
Luis Alvarez D
3ece98b31b
Removed the custom configuration page (#9886) 2019-12-30 14:18:26 -05:00
Konstantin Münster
356e5caf0e Fix bug in data-fetching.md's example (#9868)
Add missing `await` keyword in the Static Generation example
2019-12-29 19:52:00 +01:00
Luis Alvarez D
e3465615e4 New docs (#9301)
* Added the docs from Notion

* Updated the links from notion to relative links

* Added a routes manifest to the docs

* Removed the <br> after examples toggle

* Use the name of the section instead of Introduction

* Fixed spelling errors

* Optimize the content for Algolia

* Add a paragraph for `pageProps`

* Add welcome section

* Transpile -> Compile

* Update getting-started.md

* Update getting-started.md

* Update getting-started.md

* Update getting-started.md

* Update getting-started.md

* Update getting-started.md

* Update getting-started.md

* Update getting-started.md

* Update getting-started.md

* Update getting-started.md

* Test extra room between

* Update getting-started.md

* Update getting-started.md

* Update getting-started.md

* Update getting-started.md

* Update getting-started.md

* Update manifest.json

* Update getting-started.md

* Update getting-started.md

* Add concepts section

* Update pages.md

* Update pages.md

* Add data fetching section

* Update pages.md

* See how a card looks like

* Undo card changes

* Added related section to getting-started

* Fixed wrong markdown syntax in the withRouter page

* Moved the server-side-and-client-side section

* Updated next-cli reference

* updated getInitialProps section

* Minor fixes

* Added more Related sections

* Add html to the related section in getting-started

* Use small for the card

* Use cards for all related sections

* Added src directory docs

* Added src directory to the manifest

* Add note about API routes in next export

* Add initial data fetching docs (private until new methods are released)

* Fix typos

* Improve wording

* Update getting-started.md

* Update getting-started.md

* Move advanced concepts to advanced section

* Hide server-side vs client-side

* Move AMP support

* Move typescript into one page

* Add routing concepts page

* Remove introduction page

* Update section on different route types

* Update routing.md

* Update routing.md

* Update routing.md

* Update routing.md

* Combine router injection pages

* Update pages.md

* Update routing.md

* Update using-link.md

* Update using-link.md

* Update typescript.md

* Move the API Routes typescript to basic features

* Added links to the typescript section

* Updated links to useRouter and withRouter

* Add singleLevel prop to manifest

* Added single page for router docs

* Updated description

* Updated the routes in the manifest

* Add data fetching section

* Update data-fetching.md

* Update data-fetching.md

* Update dynamic-routes.md

* Update manifest.json

* Only use the single router API page

* Moved the concepts pages

* Updated links

* Removed extra space

* Updated title for Router API

* Added a description with frontmatter

* Add open prop to the manifest

* Added datafetching section to API Reference

* Updated links to the getInitialProps reference

* Moved some sections to API

* Added next/head to API reference

* Added next/link to the API Reference

* Removed the populating-head section

* Updated links to the new next/link API

* Added link from dynamic-routes to next/link docs

* use a paragraph

* Added next/router API

* Added next/amp

* Updated the docs for next/amp

* Moved the AMP support folder

* Updated title

* Content updates

* Added more links to the data fetching section

* Added links from the API to introductions

* changing the router API

* Updates to the router API

* Updated the routing section

* life improvements

* Added shallow routing section

* Small fix

* Removed old routing sections

* Updated link to shallow routing

* Removed unrequired page

* Removed /pages

* Update data-fetching.md

* Add initial deployments section

* Update manifest.json

* Update introduction.md

* Update deployment doc

* Add static export section updates

* link ssg/ssr

* Update deployment.md

* Add syntax highlighting

Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2019-12-23 16:07:38 +01:00