Joe Haddad
86160a5190
Upgrade to Prettier 2 ( #13061 )
2020-05-18 15:24:37 -04:00
Tim Neutkens
313b552026
Enable .env support by default ( #12911 )
...
* Enable .env support by default
Given we've had tons of reports from various people that expected .env support to work even though they had dotenv installed already I think it's fine to enable it as a default:
Fixes #12728
* Remove old test
* Fix duplicate env loading
* Update docs
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-05-15 14:02:16 -05:00
Brian Gershon
5da1dcf669
Warn users about migrating to 9.4 from dotenv ( #12859 )
2020-05-14 12:09:33 -04:00
Rafael Almeida
634e621a6e
Fix typo in Environment Variables doc page ( #12770 )
2020-05-12 13:50:04 +02:00
Luis Alvarez D
0b36211a1f
[Docs] Environment Variables ( #12696 )
2020-05-11 02:18:34 -04:00
Tim Neutkens
467b2c7ebc
Enable sassOptions support in next.config.js ( #12685 )
2020-05-10 22:11:48 -04:00
Tim Neutkens
fcbffa3683
Update documentation that refers to isomorphic fetch libs ( #12686 )
2020-05-10 14:16:03 -04:00
Tim Neutkens
94651a85eb
Add documentation for TypeScript baseUrl and paths option ( #12379 )
...
* Add documentation for TypeScript baseUrl and paths option
* Update module-path-aliases.md
* Update manifest.json
2020-05-06 10:56:06 +02:00
Luis Alvarez D
e5bcfdc571
[Docs] Move example links ( #12326 )
2020-05-02 01:01:07 -04:00
Andrew Fiedler
5936cbbb69
Update built-in-css-support.md ( #12268 )
2020-04-28 10:49:51 +02:00
Giovanni Giordano
99eedc4b86
Add quotes to static paths in fallback section ( #12170 )
2020-04-24 15:33:45 +02:00
Vitor Capretz
26df01800d
docs: improve wording on some pages according to alex.js ( #11973 )
2020-04-17 16:26:25 +02:00
Tim Neutkens
c59d24055d
Add Prismic Example ( #10897 )
...
* Add Prismic Example
* Update package.json
* Update constants
* Remove react-datocms
* Add Preview Mode for Prismic
* Add support for Preview Mode
* Delete author.jpg
* Delete image.jpg
* Fixes and readme updates
* Fixed issues with preview mode
* Updated preview mode steps
* Added more posts
* Updated readme
* Updated readme
* Added demo URL
* Added related examples links
* Added example to docs
Co-authored-by: Shu Uesugi <shu@chibicode.com>
Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-04-10 12:41:09 +02:00
Ben
44a04acd72
Update typescript.md ( #11717 )
...
just add file name to avoid wrong file name like `_app.ts`
2020-04-07 11:48:18 +02:00
Jaga Santagostino
b91ee110b7
add links to sections in data fetching documentation ( #11666 )
2020-04-05 13:52:43 +02:00
kvoncode
b48db989bb
add: jsx
to list of supported files in docs ( #11579 )
2020-04-02 10:21:13 +02:00
Tim Neutkens
074c60e0ec
Update data-fetching.md
2020-03-25 18:08:15 +01:00
Shu Uesugi
a63ac3e715
CMS TakeShape Example ( #11038 )
...
* TakeShape Example
* Fix preview logic
* Update README
* Fix broken link
* Be more clear with the relationship field
* Use latest next.js for cms examples
* Only show enabled items
* Ignore current slug
* Fix queries
* Add takeshape demo
* Added link to blog-starter
Co-authored-by: Luis Alvarez D <luis@zeit.co>
2020-03-19 17:30:37 -05:00
Vincent Voyer
f0c6df42fb
docs(ssr): req is an IncomingMessage instance, not HttpRequest ( #11194 )
2020-03-19 11:36:09 +01:00
JJ Kasper
756b365adf
Add CMS example for Sanity ( #10907 )
...
* Add start of Sanity CMS example
* Update cover-image
* Clean up example
* Apply suggestions from code review
Co-Authored-By: Shu Uesugi <shu@chibicode.com>
* Make changes from review
* Remove extra style
* Apply suggestions from code review
Co-Authored-By: Shu Uesugi <shu@chibicode.com>
* Make tweaks for preview mode and normalize env naming
* Update viewing preview step
* Delete author.jpg
* Delete image.jpg
* Update README
* Fix environment variable names
* Project ID is needed by lambda
* Improved steps
* Fixed issue with the project URL example
* Clarify line
* Get the preview post correctly
* preview = false
* Get unique posts
* Show preview mode on index page
* typo fix and use next latest
* Added related examples section
Co-authored-by: Shu Uesugi <shu@chibicode.com>
Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-03-18 18:39:37 -05:00
Tim Neutkens
66e1fa154c
Add section on reading files ( #11084 )
2020-03-18 17:19:38 +01:00
Tim Neutkens
88a6bb36ba
Update blog-starter example ( #11071 )
...
* Update blog-starter example
* Updated content
* Updated readme
* Updated readme
* static → assets
* Add bottom margin
* Add to docs
* Add excerpt
* Update docs/advanced-features/preview-mode.md
Co-authored-by: Luis Alvarez <luis@zeit.co>
Co-authored-by: Shu Uesugi <shu@chibicode.com>
2020-03-18 09:43:09 +01:00
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