Commit graph

30 commits

Author SHA1 Message Date
Yu Watanabe
1edc1a9481
fix paths.params.type in getStaticPaths(document) (#10959) 2020-03-11 12:20:59 +01:00
5alidz
f1cb4ea867
Remove extra closing parenthesis (#10948)
* fix missing open parenthesis

* Apply suggestions from code review

Co-Authored-By: JJ Kasper <jj@jjsweb.site>

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-03-10 16:16:54 -05:00
Shu Uesugi
dffde48472
Add missing words in docs (#10941)
* Add missing words

* Update docs/basic-features/data-fetching.md

Co-Authored-By: JJ Kasper <jj@jjsweb.site>

Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-03-10 14:33:31 -04:00
Shu Uesugi
745494a9a3
Add demo URL for the DatoCMS example (#10901) 2020-03-09 17:47:21 +01:00
Shu Uesugi
bf0ea49b02
DatoCMS Example (#10891)
* Copy cms-datocms

* Update package.json

* Desktop design

* Tablet support

* Mobile styles

* Update titles

* Add article page

* Minor tweaks

* Fix height issue

* Improve text colors

* Extract Alert and Footer components

* Extract avatar

* Add Date

* Extract container

* Fix capitalization

* Make it work with no backend

* Add paragraph styles

* Extract PostPreview

* Extract h2

* Extract more stories

* Refactor into more components

* Update tags

* Add missing key

* Add custom document for lang="" support

* Add dotenv

* Load data for the index page

* Limit posts

* Show post page

* Add markdown processing

* Forgot margin

* Add links

* Remove files and add fallback

* Add og:image

* Add favicon

* Add aria-label

* Fix prerender

* Learn more → read documentation

* Fix links and footer

* Desaturate using imgix

* Add preview secret

* Add preview support

* Fix preview code

* Exit preview mode

* Extract getAllPostsWithSlug

* Extract getAllPostsForHome

* Extract getPreviewPostBySlug

* Extract getPostAndMorePosts

* Extract constants

* Extract markdownToHtml

* Fix markdown styles

* Fix imgix for author

* Add README

* Add links to docs
2020-03-09 11:51:08 +01:00
Tim Neutkens
83b4fd1509 Fix linting of markdown documentation 2020-03-09 10:54:22 +01:00
Balázs Orbán
213a4b8067
Fix getStaticPaths example code (#10893)
* Fix getStaticPaths example code

* Update docs/basic-features/data-fetching.md

Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-03-09 10:24:15 +01:00
Shu Uesugi
b13892e007
Add TypeScript docs for SSG (#10865)
* Add TypeScript docs

* Fix types
2020-03-06 12:12:46 +01:00
Shu Uesugi
0ff0973edb
Preview mode documentation (#10863)
* Add preview mode file

* Update descriptions for data fetching

* Add preview mode documentation

* Use quotes for front matter

* Wordsmith

* Fix URL

* Minor updates

Co-authored-by: Tim Neutkens <timneutkens@me.com>
2020-03-06 12:06:52 +01:00
Joe Haddad
48084649db
Re-add Sass Docs (#10850)
This reverts commit b5c70e8639.
2020-03-05 10:56:50 -05:00
Tim Neutkens
a61dfb22a1 Fix data fetching learn more links 2020-03-05 16:49:33 +01:00
Tim Neutkens
917ef12248
Update Pages and Data Fetching docs for SSG improvements (#10837)
* Update pages doc for SSG

* Add data fetching doc

* Format code

* Link directly to nextjs.org

* Fix link

* Add .md

* Add .md

* Fix hashes

* Update pages.md

* Wordsmith

* Fix link

* Fix heading

* Capitalization

* Link to pages

* Add router link

* Fix parens

* Make links consistent

* Use commas

* Link to fallback pages

* Update data-fetching.md

* Fix linting

Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-03-05 15:46:44 +01:00
Luis Alvarez D
57d5f83642
Updated links (#10604) 2020-02-19 22:30:47 +01:00
Tim Neutkens
b5c70e8639
Revert "Re-add Sass Docs (#10364)" (#10577)
This reverts commit 72823f04e7.
2020-02-18 19:36:48 +01:00
Joe Haddad
72823f04e7
Re-add Sass Docs (#10364)
* Re-add Sass Docs

* Update built-in-css-support.md

* Apply lint-fix

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-02-18 12:22:51 -05:00
Shu Uesugi
9bbf31cae3
TypeScript documentation for _app.tsx (#10345)
* TypeScript documentation for _app.tsx

* Use relative URL

* Use relative URL

* Update docs/basic-features/typescript.md

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

* Update docs/basic-features/typescript.md

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

Co-authored-by: Luis Alvarez D. <luis@zeit.co>
2020-01-30 16:29:14 -05:00
Luis Alvarez D
90015e3509
Update note about public and pages overlap (#10287)
* Updated note about public and pages overlap

* Update static-file-serving.md

* Update static-file-serving.md

Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-30 01:13:55 -05:00
Luis Alvarez D
ee9ccc84cc Updated PostCSS docs and added a link to it (#10292)
* Updated PostCSS docs and added a link to it

* Added note back

* Update customizing-postcss-config.md

Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-28 11:02:00 -05:00
Shu Uesugi
e1083f0e3a docs: remove --save from npm install; avoid system-ui (#10252)
* Minor edits for CSS doc

* Remove unnecessary --save from npm install

* Different font family

Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-27 08:35:12 -05: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
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
7fc850e28a [docs] Added related links to next.config.js (#10174)
* Added related links

* Added missing dots
2020-01-20 21:40:20 +01: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
d4675c56b5 change "wil" to "will" (#10050) 2020-01-11 21:53:58 -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
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
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