1412 Commits

Author SHA1 Message Date
Shawn Erquhart
e937e8e626 handle markdown styled inline nodes
Slate does not allow inline nodes like links and
images to have marks (like strong, emphasis). This
commit changes the parsers to process these nodes
as if they were text nodes so that marks are
handled.
2017-09-26 14:50:56 -04:00
Shawn Erquhart
2d3bf9b3fc fix verbose markdown entity output
Because we convert markdown to an AST, the literal input
cannot be reconstructed, so we have to default to improving
received markdown rather than degrading it. This fix
implements smart MDAST parsing to ensure that adjacent
nodes with the same styling (strong, emphasis, etc) are
grouped together rather than separated (which results in
verbose output).
2017-09-26 14:50:56 -04:00
Shawn Erquhart
91590a2f25 remove pedantic markdown parsing 2017-09-26 14:50:56 -04:00
Shawn Erquhart
e54dee4220 allow links to be wrapped in marks 2017-09-26 14:50:56 -04:00
Shawn Erquhart
cd111f3a3d distinguish between newline and soft break in editor 2017-09-26 14:50:56 -04:00
Shawn Erquhart
aa14a663e0 Merge pull request #614 from dopry/609_add_codecov
Add codecov reporting  to build process.
2017-09-25 14:37:56 -04:00
Jessica Parsons
a3e2146eee Adjust spacing for Hugo md interpretation 2017-09-22 10:37:22 -07:00
Jessica Parsons
a890e0da29 Update Test Drive docs with Identity 2017-09-22 09:27:26 -07:00
Darrel O'Pry
f8a1d4b21b Add codecov reporting to build process. 2017-09-21 10:16:12 -04:00
Darrel O'Pry
1f06885a69 Add code coverage output generation to npm test (#610) 2017-09-20 12:23:40 -07:00
Shawn Erquhart
1def72e93b Merge pull request #601 from tech4him1/upgrade-gray-matter
Switch back to `gray-matter` for front-matter parsing.
2017-09-19 12:38:51 -04:00
Shawn Erquhart
1fa949395f Add branch selection support for git gateway (#618) 2017-09-18 14:56:49 -07:00
Caleb
62d88b9e6f Merge pull request #617 from netlify/fix-trailing-slash
Fix collections breaking if folder has trailing slash.
2017-09-18 14:37:16 -06:00
Caleb
2c8e8bece0 Fix collections breaking if folder has trailing slash. 2017-09-18 08:27:49 -06:00
Caleb
86c4987d84 Upgrade gray-matter to v3.0.6.
This upgrade allow `gray-matter` to work in browsers as well.
2017-09-15 19:22:05 -06:00
Caleb
9f40edaf52 Re-add ability to parse frontmatter like ---json. 2017-09-15 19:22:04 -06:00
Caleb
335dd15e6d Fix JSON parser for gray-matter. 2017-09-15 19:22:04 -06:00
Caleb
ebf91a9800 Switch back to gray-matter for front-matter parsing. 2017-09-15 19:22:04 -06:00
Caleb
ab8226ce63 Infer front-matter type on our own. 2017-09-15 19:22:04 -06:00
Caleb
37d4330370 Merge pull request #611 from netlify/fix-lockfile
Remove NPM lockfile from #599 and add Yarn one.
2017-09-15 19:19:23 -06:00
Caleb
e4ba4e0b10 Remove NPM lockfile from #599 and add Yarn one. 2017-09-15 18:38:41 -06:00
Caleb
ce2278b7e5 Upgrade js-yaml to 3.10.0. (#592)
* Upgrade `js-yaml` to 3.10.0.

The main fix we are wanting is outputting astral characters (emojis) as
a single escape instead of surrogate pairs: nodeca/js-yaml#368.

* Upgrade `preliminaries` front-matter parser (and dependencies).
2017-09-15 17:08:19 -07:00
Shawn Erquhart
3195f30b8d Merge pull request #608 from dopry/xx_doc_pull_request_rebase
(docs) Document that pull requests should be rebased.
2017-09-15 17:47:13 -04:00
Darrel O'Pry
0ce2bc0f35 (docs) note that pull requests should be rebased. 2017-09-15 17:42:59 -04:00
Shawn Erquhart
d349c3d3b1 Merge pull request #590 from netlify/update-depreciated-deps
Upgrade Depreciated React Dependencies
2017-09-15 16:18:24 -04:00
Shawn Erquhart
63b874e295 Merge pull request #576 from netlify/entry-disable-save
Disable "Save" button when entry has not been changed.
2017-09-15 16:12:34 -04:00
Shawn Erquhart
4c63a21bbb Merge pull request #604 from netlify/fix-entry-deletion
Fix entry deletion on non-master branches
2017-09-15 16:01:39 -04:00
Benaiah Mischenko
9f4951fcf2 Fix entry deletion on non-master branches 2017-09-14 17:32:18 -07:00
Frank Taillandier
94a3941d9f Docs: Add contributors to README (#599)
* Add contributors

* Add contributors from CLI
2017-09-13 16:08:43 -07:00
Caleb
6e356e81da Update tests for EntryEditorToolbar 2017-09-11 14:25:23 -06:00
Caleb
87f942e73b Rename hasChanged to enableSave for the editor Save button. 2017-09-11 14:08:07 -06:00
Caleb
5e9112ec71 Upgrade to seperate create-react-class library.
`React.createClass` was split off/depreciated as of 15.5.0:
https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.createclass
2017-09-09 20:18:02 -06:00
Caleb
654f844b86 Upgrade to seperate React prop-types library.
`propTypes` was seperated/depreciated from React as of 15.5.0:
https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes
2017-09-09 20:16:19 -06:00
Shawn Erquhart
5b502aa680 Merge pull request #584 from netlify/fix-auth-provider-docs
Docs: Update the authentication provider docs for the new Netlify interface.
2017-09-09 11:55:11 -07:00
Shawn Erquhart
3468ea7012 Merge pull request #586 from netlify/git-gateway-avatar
Show user avatar for git-gateway backend.
2017-09-09 11:53:43 -07:00
Shawn Erquhart
d3fd583457 Merge pull request #581 from netlify/contributor-milestones
Replace contributor guide project link with milestones
2017-09-09 10:17:13 -07:00
Caleb
df3d8754c8 Show user avatar for git-gateway backend as well. 2017-09-08 09:02:48 -06:00
Caleb
81d077f97b Update the authentication provider docs for the new Netlify interface. 2017-09-07 13:40:07 -06:00
Shawn Erquhart
8a82fa6d6f Replace contributor guide project link with milestones 2017-09-07 09:19:15 -07:00
Mathias Biilmann Christensen
04ae5051ce Update beta version 2017-09-07 07:40:14 -07:00
Shawn Erquhart
caa5c69522 Merge pull request #580 from netlify/identity-widget
Authentication with Netlify Identity and Git Gateway
2017-09-06 18:32:04 -07:00
Shawn Erquhart
cd6162c3d2 git gateway implementation tweaks 2017-09-06 18:28:20 -07:00
Mathias Biilmann Christensen
bea470518e Make sure we always set a name on commits 2017-09-06 18:14:59 -07:00
Mathias Biilmann Christensen
2e4dfb33b6 Add explicit sign in button for netlify identity 2017-09-06 17:58:32 -07:00
Mathias Biilmann Christensen
aaa9d2ab95 Make Neltify CMS work with Netlify Identity Widget
When Netlify CMS uses the git-gateway backend, it will check for a

  window.netlifyIdentity

object and use that to handle the whole auth flow.

This also sets defaults for the git-gateway endpoint, that means it
can be used in templates with zero configuration and fit with a
one-click deploy to Netlify approach.

Netlify Identity itself is based on our open-source GoTrue microservice,
and Netlify's Git Gateway project is completely open-source as well.

The git-gateway backend will work with Netlify without any setup, but can
also be configured to work with any selfhosted GoTrue and Git Gateway
instances.
2017-09-06 13:52:11 -07:00
Mathias Biilmann Christensen
36f2596a9e Use netlify identity widget for auth if present 2017-09-06 13:50:02 -07:00
Shawn Erquhart
85e0a156fd Merge pull request #579 from netlify/fixes-to-netlify-auth-and-asset-setup
Small fixes for the netlify-auth and asset store setup
2017-09-06 15:01:14 -04:00
Shawn Erquhart
128588fd69 auth and asset setup tweaks 2017-09-06 09:35:31 -07:00
Mathias Biilmann Christensen
0b793cbc65 Fix reference to window.identity 2017-09-05 19:30:03 -07:00
Mathias Biilmann Christensen
1a25b2c6b3 Better handling of roles and names 2017-09-05 16:48:51 -07:00