Commit Graph

55 Commits (57cdf314d575bb01bc41cf6e0b74dc725b25166d)

Author SHA1 Message Date
Lucas Duailibe eea6f068b4 refactors 2018-04-12 18:09:37 -03:00
Lucas Duailibe 1c8dd0c1e7 more stuff 2018-04-12 13:28:28 -03:00
Lucas Duailibe 47430d0c19 some huge changes 2018-04-11 18:22:03 -03:00
Lucas Duailibe d474d5c550 Merge branch 'master' into new-playground 2018-04-10 21:49:46 -03:00
Ika 7029346887
fix(playground): correct rangeStart/rangeEnd value (#4273) 2018-04-06 22:06:33 +08:00
James Henry 74ad0014aa Playground: Add support for rangeStart and rangeEnd (#4216)
This allows users to more easily reproduce and report issues such as:

- https://github.com/prettier/prettier/issues/3789
- https://github.com/prettier/prettier/issues/4206
...etc...
2018-04-04 15:54:05 -04:00
Lipis f23ce27856 More than 800/100k (#4204) 2018-03-26 07:12:07 -04:00
Lipis 9103cd227e
More than 80,000 dependent repositories (#4096) 2018-03-03 17:45:16 +02:00
Kai Cataldo 8265b0e874 Fix typo on on landing page of site (#4075) 2018-02-28 19:39:11 -03:00
Lipis a8110923ea
Add Google Site Verification file (#4015) 2018-02-21 15:18:54 +02:00
Lipis f0ce1556b5 More than 70k 2018-02-19 12:22:38 +01:00
Sandhose 6b5765da36 Use the animated logo on the website's landing page (#3910)
* Use the animated logo on the landing page

* docs: Add build step to copy logo css

* docs: Shrink the logo when the screen is small
2018-02-07 09:47:14 +11:00
Lipis 89508462bb
60,000+ dependencies (#3901) 2018-02-06 12:35:32 +01:00
Lucas Azzola 047363a1f4
Revamp landing page (#3718)
* Begin landing page revamp

* Break the editor integrations onto their own lines

* Add template string

* Add editor line breaks

* Make logo clickable

* Add more docs links

* Don’t split the editor list items into paragraphs

* Break plugin onto its own line

* Move the “Why” button to the bottom of the block

* Use suggested font

* Change font

* Change footer color

* Add assets from @orta

* Fix fonts

* Use new editor assets

* Add npm/yarn button

* Switch to npx

* Minor mobile tweaks

* Add dependants

* Lots of zeros are cooler to look at than a “k”

* Improve button sizes, respect prefers-reduced-motion

* Fixup media breakpoints for Get Started section

* Increase padding of editors

* CSS fixes from code review

* Prevent repeatedly clicking on the logo from selecting nearby text

* dependant -> dependent

* Various CSS tightening

* Set flex-basis on editors

* Add new languages panel

* Improve layout of languages

* Cleanup grouping code

* Fix users layout

* Fix language image widths

* space-evenly -> space-between

* Fix typo

* Remove unused var

* Various CSS fixes

* Set overflow-x: auto on code

* Improve languages layout

* Add silly cursor

* Make logo 'draggable'

* [Site] Margins and paddings (#2)

* [Site] Margins and paddings

* [Site] Bring back the link to why, that's a good guide worth linking to

* Improve logo mobile usage

* Improve responsive layout of editors

* Use static SVG for the moment (#3)

* Use the static logo for the moment

* Fix the broken JS, from going static, and make overscroll the right color

* Fix padding
2018-02-06 20:52:39 +11:00
Lipis 125868c083
Remove commented out code (#3886) 2018-02-05 22:59:38 +01:00
Lucas Azzola b1a7787e87
Fix vue self-closing tags (#3693) 2018-01-10 18:44:18 +11:00
Ika 5e2e7a2881 feat(playground): add example placeholder (#3657)
* feat(playground): add example placeholder

* Add TypeScript example

* fix: mock process.binding

* fix: add missing comma

* refactor: use legacy function

* fix: mock return `{}`

* Return the error stack when there’s a non-SyntaxError thrown

* Code style

* fix: mock path.resolve

* chore: cache placeholder.js

* fix mock path.resolve attempt 2

* fix: mock path.{parse,join,dirname}

* fix: mock process.cwd

* fix: mock path.parse root
2018-01-07 06:59:14 -05:00
Lucas Duailibe 0f548ebe47 Merge branch 'master' into new-playground 2017-12-31 09:41:18 -03:00
Lucas Azzola 800a1cf9d4
Add Blog, Populate with Release Notes (#3604)
* Add blog

* Rename files, add extra #

* Improve formatting

* Convert pull-request links

* Fix typo

* Update links in CHANGELOG.md, lint docs

* Add missing parens

* Remove banner images

* Add 1.0 release blog post

* Fix encoding bug

* Add truncate to 1.0 blog post

* TS syntax highlighting looks better than JS highlighting on Flow

* Add introductory sentences to older posts

* More highlighting fixes

* Fix mistake

* Fix more highlighting errors

* More highlighting fixes

* Add CSS fix

* fix truncate on 1.9.0 post

* fix truncate on 1.0.0 post

* Fix additional # and my name in 1.0.0

* Restore js -> ts on codeblocks
2017-12-31 15:23:17 +11:00
Lucas Duailibe 8811e45002 Merge branch 'master' into new-playground 2017-12-29 13:20:48 -03:00
Lipis 6a75f66731 Add Google Analytics on Playground (#3576) 2017-12-29 09:59:49 -05:00
artiebits 15a68394dd Move playground styles to the single CSS file (#3588)
* Move playground styles to the single css file

* Add separateCss property to siteConfig.js
2017-12-27 17:32:37 -05:00
Lucas Duailibe 225bfa7d97 playground wip 2017-12-26 00:22:17 -03:00
Jed Fox eb30207fe5
Remove the `v` marker addition
It looks terrible on PRs.
2017-12-24 11:57:44 -05:00
Jed Fox 4497aa1efc
Make the playground header fit in with the rest of the site
Fixes https://github.com/prettier/prettier/issues/3542.
2017-12-24 11:49:47 -05:00
Lucas Azzola d1c97b3622
Convert eslint config and users/languages/editors files to YAML (#3516)
* YAML all the things

* Cleanup website data files

* Update edit links
2017-12-18 21:55:10 +11:00
Lipis 20373d6fee Prettify style in playground and code block languages (#3419) 2017-12-05 19:48:11 -07:00
Lipis 23b8224240 Change cursor and remove outline in summaries on playground (#3415) 2017-12-05 21:21:02 -02:00
Lucas Duailibe 40af2e0514 Show a right border on sidebar 2017-12-05 18:29:49 -02:00
Lucas Duailibe 8bb6e169e2
Change playground options layout (#3374) 2017-12-05 17:54:07 -02:00
Ika f3e7ca2210 chore(playground): add new options (#3350) 2017-12-05 21:22:10 +11:00
Ika ed0f91f7be feat(playground): add options (#3222)
* chore(playground): add options

* chore(playground): re-reorder options
2017-11-09 22:30:38 +11:00
Lucas Duailibe e1b3a830c3
Center "Are you using this project?" in users page (#3193) 2017-11-07 15:24:58 -02:00
Lucas Azzola b4e7942bc0
Add markdown parser to playground (#3165) 2017-11-07 17:11:31 +11:00
Lucas Azzola 71a5533c4e
Move all docs to website (#3139)
* Sync README -> docs/options.md

* Sync README -> docs/*.md

* Misc fixups

* Remove markdown-toc

* Remove insert-pragma from ToC

* Never again!

* Move all docs to ./docs

* Remove yarn toc

* Fix inter-doc links

* Fix links in footer

* Clean up README.md

* Add basic description to README.md

* Use flat badges

* Move editor guides to website

* Improve prettier-ignore docs

* Fixup bad find/replace

* Add JSON to README

* Fix custom parser API link

* Fixup GitHub centering, add downloads badge

* Add 1.8 docs

* docs(website): mention markdown on homepage (#1)

* Add intro

* Add watching-files.md

* Fix markdown syntax highlighting

* Switch back to .md links
2017-11-07 14:39:07 +11:00
Mitermayer Reis 2169357c17 Making sure playground can have shorter urls (#3063)
* Making sure playground can haver shorter urls

* Fixing linting

* Including lz-string on the service worker
2017-10-22 20:10:15 +11:00
Simon Lydell 0313ce6299 Fix the playground for 1.7.1 2017-09-27 20:38:16 +02:00
Simon Lydell c6bac7cfe6 Split Less and SCSS parsing into different parsers (#2844)
* Split Less and SCSS parsing into different parsers

Now, .less files are always parsed with postcss-less, and .scss files
areare always parsed with postcss-scss. This:

- Is less hacky.
- Is meant to avoid issues like #2829.
- Is probably more performant.

`parser: "postcss"` and `--parser postcss` continue to work like before:
First trying postcss-less, and if that fails, postcss-scss, unless a
regex says that we should try in the opposite order. The new values for
the parser option are "postcss-less" and "postcss-scss".

* Remove postcss from package.json since it is not used

* Rename parser-less to less and parser-scss to scss

* Deprecate parser:postcss in favor of parser:css

* Fix CSS tests
2017-09-26 07:08:11 +02:00
Simon Lydell 2ef7173f13 Fix playground button color 2017-09-14 19:40:38 +02:00
Simon Lydell 1469ef9cea Use the jsx CodeMirror mode instead of javascript
Unfortunately, the "neat" theme we were using for CodeMirror does not
appear to support JSX, so I removed it and went back to the default
theme.
2017-09-14 08:49:20 +02:00
Simon Lydell 5d0ed5c671 Remove 1px page scrollbar in playground 2017-09-14 01:03:38 +02:00
Simon Lydell 1375e6880a Generate ISSUE_TEMPLATE.md on build 2017-09-14 00:14:35 +02:00
Simon Lydell ecaeec5b59 Add feature to test idempotency in playground 2017-09-13 23:40:51 +02:00
Simon Lydell 5b576f4e78 Add more buttons to the playground 2017-09-13 23:07:19 +02:00
Simon Lydell 323941bfd8 Clean up playground CSS and design
- Move the version to the header. Saves some vertical space.
- Use system font.
- Simplify CSS.
- Better header alignment.
2017-09-13 21:01:11 +02:00
Simon Lydell cf9d52e9f3 Hide ast and doc editors while loading the playground 2017-09-13 16:47:21 +02:00
Simon Lydell 8ba2acadbb Make sure that shown playground Prettier version always is in sync 2017-09-12 22:17:06 +02:00
Simon Lydell 482a1d8311 Improve doc and ast editor appearance 2017-09-12 22:17:06 +02:00
Simon Lydell d6eeaae29b Fix some playground HTML errors and warnings 2017-09-11 19:59:03 +02:00
Simon Lydell cdb7c0d4e3 Set playground Codemirror mode based on parser 2017-09-11 19:55:15 +02:00