90 Commits

Author SHA1 Message Date
b47bb66a3b Add GitLab backend to docs (#1413) 2018-06-12 09:42:51 -04:00
9fd0ff4a6a return date object from date/datetime widgets if no format set (#1296)
* return date object from date/datetime widgets if no format set

BREAKING CHANGE

As of 1.0, the documented behavior for the date and datetime widgets was
to always return a string value, but they were instead returning a date
object if the default date was not manually changed by the user. This
was addressed in #1143, but it became clear afterward that static site
generators were depending on the raw date objects that Netlify CMS was
unintentionally producing. Remaining as is or addressing the bug were
both "breaking" states, so this commit reverts to producing raw date
objects when no format is explicitly set.

It is now considered an edge case to require string dates, as most
static site generators expect to parse a raw date against formatting in
a site's templates.

Also note that this commit improves the original behavior by always
providing a date object when no format is provided, even if the user
manually changes the value.

* produce raw date when no format is provided
2018-05-25 12:03:44 -04:00
8ab5ca560c Enable user-configured commit message templates (#1359) 2018-05-23 16:57:56 -04:00
cb44fe5ea1 add architecture and previews guide to docs menu sections (#1368) 2018-05-18 08:51:22 -07:00
c34d012fcc Add clarification to "Add to Your Site" doc (#1367) 2018-05-18 06:19:42 -04:00
c1c30557a3 add docs menu sections (#1366) 2018-05-17 17:14:29 -04:00
c6bbfa70c2 www.cupofdata.com reference (#1283)
Signed-off-by: Greg Werner <werner.greg@gmail.com>
2018-05-15 18:29:57 -04:00
7cdc73b914 Fix YAML code block formatting in docs (#1356)
* Fix YAML code block formatting in docs

* Add @tedmiston to contributors
2018-05-14 12:57:53 -04:00
04087026dd Add squash merges option for editorial workflow (#1330) 2018-05-14 11:46:37 -04:00
76d1f05741 Updating add-to-your-site.md to include Nuxt (#1350)
Added Nuxt to list of generators that use the "static" folder for static files where the Netlify CMS admin can live.
2018-05-12 12:02:04 -04:00
cd30b59b92 Support displayFields in the Relation widget (#1303)
* Support displayFields in the Relation widget

* Fix typo

* Wrap display fields in String constructors

* 📝 Documentation updates
2018-05-01 16:43:08 -07:00
2d362de03c Add blog post link to forestgarden.wales example (#1278) 2018-04-24 21:44:46 -04:00
855bfde79b allow custom auth endpoint (#1294) 2018-04-24 21:35:56 -04:00
63df2e8baa docs: Format code block. 2018-04-24 08:05:13 -06:00
03faa28a41 improve docs readability (#1310)
* improve docs readability

* update prism
2018-04-23 17:22:15 -04:00
ca7f6e549e Update Docs “authentication-backends” 2018-04-23 20:17:27 +00:00
7a0e136449 Update Docs “authentication-backends” 2018-04-13 15:44:06 +00:00
6814121a7a Update Docs “authentication-backends” 2018-04-13 15:42:19 +00:00
b838b326f0 Update Docs “authentication-backends” 2018-04-12 15:01:44 +00:00
3035771d36 Add example 2018-04-16 18:49:00 -04:00
32a340e608 Update markdown widget documentation 2018-04-16 18:12:11 -04:00
79f6672228 Use an isHidden property 2018-04-16 18:12:11 -04:00
4ff56a1838 Update markdown widget documentation 2018-04-16 18:12:11 -04:00
2033d535d1 Use double quotes consistently 2018-04-12 10:27:47 -04:00
2f3a9d1e08 docs: Document display_url.
* Add contributor

* Document the display_url setting

* Fix typo in pattern example

* Locate Display URL doc section appropriately
2018-04-11 08:13:53 -06:00
6b77aee214 Allow setting config URL with <link> (#1146)
* fix: allows for valid config types expansion

* feat: config url can now come through link tag

* fix: lints added coded

* fix: slims down code per review

* fix: expands query to find supported type

* fix: removes typo in test copy

* fix: changes validTypes to object

* fix: groups config functions into one getConfig func

* adds console message for config url

* adds to docs

* update docs

* fix test

* fix merge conflicts

contributor addition moved to #1241

* avoids empty path with link without href. changes link console message

* removes additional console

* fixes link path in console

* fix: remove superfluous .allcontributorsrc change
2018-04-10 13:48:04 -07:00
100f56220c Feature Reuest: Append slug: hour, minutes, secounds (#1207) 2018-04-05 08:16:18 -06:00
1e9b666baf 949 document hide preview by default (#1219)
* document config option to hide preview by default

* document config option to hide preview pane by default

* revise wording to specify preview disables entirely for a collection

* adjust wording of editor section to be more consistent with other settings
sections

* add note about defaulting to true
2018-04-03 12:46:10 -07:00
5d94af8e7c Use Hugo page bundles. 2018-03-29 17:04:47 -04:00
a19bc04c00 auto/manual init w/ single bundle, BYO root element 🎉 (#1173)
* ensure that application is only initialized once

* allow for single bundle init

* enable manual initialization via global flag
2018-03-28 15:52:57 -04:00
79ddb3b91c accept CSS string in registerPreviewStyle 2018-03-28 10:08:47 -04:00
cd10a713d8 Add option to strip Unicode from entry filenames (#1135) 2018-03-27 18:56:10 -04:00
cc60dc9aa9 Improve readability of docs for extension field 2018-03-27 10:42:51 -06:00
Sam
a2d4267500 Allow adding items to be disabled for list widget (#1102) 2018-03-15 16:16:32 -04:00
2c697b08d9 fix beta feature document 2018-03-15 12:40:45 -04:00
12b2c1cf40 correct example regex (#1170) 2018-03-13 17:50:45 -07:00
c31aaae0d4 add manual init docs 2018-03-06 16:22:55 -05:00
0e4117aaaf Update Docs “add-to-your-site” 2018-03-03 14:17:45 -07:00
7caa156277 add source repo field for docs examples 2018-02-28 10:02:21 -05:00
418f694aaf Update add-to-your-site.md to add Wyam (#1096)
Added Wyam to list of generators to store static files in the input directory
2018-02-27 20:31:06 -05:00
697918d503 Update Docs “collection-types” 2018-02-23 12:40:50 -05:00
d10f97f561 Allow different beginning and ending frontmatter delimiters. 2018-02-21 17:01:13 -05:00
49894d9fd9 Add label_singular to collection config (#1086) 2018-02-19 09:00:52 -08:00
b3bccb9943 Remove extra 'the' 2018-02-14 19:41:48 -07:00
afce6abbc2 Custom delimiters (#1064)
* frontmatter functions now exported as curried constructors

* changed formats.js to accomodate frontmatter.js changes

* can only use custom delimiters if format is specified

* reverting changes

* updated tests to reflect changes

* created tests for custom delimiters

* updated docs to reflect addition of custom delimiter configuration

* formatByExtension no longer takes custom delimiter

* missed some formatByExtension calls

* Edited the docs according to suggestions

* Throws an error if a custom delimiter is set without declaring frontmatter format

* Throws error if custom delimiter set without explicit and proper frontmatter format being declared

* example config file set to proper defaults

* moved frontmatterFormats to formats

* Update .all-contributorsrc

* updated contributions

* Clarify docs
2018-02-08 18:04:42 -07:00
f2d19f241b Create a doc for updating the CMS (#1076) 2018-02-08 12:48:24 +00:00
27b523c116 Cleanup links in contributor-guide.md (#1081)
* Update contributor-guide.md
2018-02-07 15:28:18 -05:00
d48b7cc70c Adding Gitter community link on this page might be helpful. 2018-02-02 20:35:15 -07:00
756d562c66 Support writing frontmatter in multiple formats (#933)
* Format JSON files.

Currently we store JSON as a single line in files. We should prettify it
like we do the other formats.

* Add output parsers to the frontmatter list.

* Cleanup frontmatter format parser options.

* Support writing frontmatter in TOML and JSON.

Right now we can read TOML or JSON frontmatter by inferring,
but we can only write frontmatter in YAML. This change allows the
frontmatter format to be explicitly set for reading and writing.

* Fix frontmatter formatter.

* Update Frontmatter formatter tests.

* Update frontmatter format docs.
2018-01-29 17:35:36 -05:00
bdd3610303 Update examples.md
I have created a blog on Netlify CMS and created a guide for it. Including links for it.
2018-01-26 08:54:47 -05:00