Commit graph

157 commits

Author SHA1 Message Date
Endi
f07791b303
feat(v2): minify css (#1572)
* feat(v2): minify css

* fix docusaurus.js logic
2019-06-06 18:00:43 +07:00
Endi
5362c2cda2
refactor(v2): move livecodeblock as plugin (#1566)
* refactor(v2): move livecodeblock as plugin

* tweak from rebase

* nits

* nits

* dep
2019-06-06 15:49:11 +07:00
Endi
e35c1efdf8 feat(v2): live playground should be lazily loaded on visibility (#1557)
* feat(v2): live playground should kbe lazily loaded on visibility

* add docs

* nits

* nits
2019-06-04 08:56:59 -07:00
Endi
305a4f0a29
feat(v2): composition syntax highlighting & live code editors (#1555)
* feat(v2): composition syntax highlighting & react-live playground

* mobile friendly tweak

* refactor styling

* revert docs
2019-06-04 15:59:51 +07:00
Yangshun Tay
246c1814c0
fix(v2): use infima from npm instead of trunk CDN (#1556) 2019-06-04 00:46:31 -07:00
Hongarc
594ede3bdc chore: remove @types/chalk and @types/globby (#1540)
* chore: remove `@types/chalk` and `@types/globby`

* chore: update `chalk` and `globby`
2019-06-02 19:04:48 +07:00
Endi
1060da3526
chore(v2): update dependencies, don't use github (#1531) 2019-05-30 08:52:57 +07:00
Endi
9bb6ba113d feat(v2): persistent & responsive dark mode toggle (#1521) 2019-05-28 08:53:26 -07:00
Endi
99a58263ca
feat(v2): docusaurus init (#1516)
* feat(v2): docusaurus init

* change logo
2019-05-25 14:16:42 +07:00
Endi
aa157969cf
chore(v2): cleanup & update deps (#1505)
* chore(v2): rename useBaseUrl -> withBaseUrl & update deps

* nits
2019-05-22 19:20:53 +07:00
Yangshun Tay
3fc3644875 feat(v2): create useBaseURL helper (#1503)
* feat(v2): create withBaseURL helper

* typescript & refactor

* nits
2019-05-22 17:32:52 +07:00
Endi
e4de7c3ed4
refactor(v2): use copy webpack plugin instead of manual copy (#1500)
* refactor: use copy webpack plugin instead of manual copy

* export static to constant

* nits prettier
2019-05-22 00:29:32 +07:00
Endi
32c582ded1
chore: upgrade shelljs version (#1497) 2019-05-21 15:32:56 +07:00
Endi
a45f8cab68
chore(v2): add @types/webpack-dev-server and @types/react-dev-utils (#1496) 2019-05-21 13:58:14 +07:00
Endi
305e698e6e refactor(v2): migrate core to Typescript ❄️🌀🐋 (#1494)
* refactor(v2): add typing for docusaurus/core

* wip: last working

* refactor(v2): add typing for @docusaurus/core

* prettier

* dont run in parallel otherwise some are uncompiled

* nits

* more typing

* more typing

* nits

* type commands

* nits
2019-05-20 09:59:04 -07:00
Endi
cbd2a589e3 refactor(v2): migrate to Typescript ❄️🌀🐋 (#1490)
* refactor(v2): migrate to typescript

* scripts nits

* fix test

* nits

* nits

* tsconfig tweak
2019-05-18 11:37:35 -07:00
Endi
5685e8ab38
fix(v2): fix cannot import css from node_modules in userland (#1463) 2019-05-16 20:13:00 +07:00
Endi
e31bf50545
chore(v2): update dependencies (#1462)
* chore(v2): update dependencies

* nits
2019-05-16 14:33:32 +07:00
Endi
4a30bf8947
fix(v2): fix wrong dependency problem (#1460) 2019-05-15 20:54:41 +07:00
endiliey
a0089aa9f5 chore(v2): use remark-slug so that rightToc can benefit from it 2019-05-14 16:04:52 +08:00
endiliey
ffdd3e60fc chore(v2): remove docsearch a11y workaround 2019-05-13 22:19:31 +08:00
Endi
070723697f fix(v2): docsearch a11y issue (#1449) 2019-05-11 08:47:22 -07:00
Endi
6136fbe1d2
feat(v2): meta description (#1447)
* feat(v2): meta description

* add description for blog as well

* fix non-descriptive text link

* remove font awesome

* switch front-matter -> gray-matter
2019-05-10 22:37:56 +07:00
endiliey
34195e4c30 chore: point website-1.x to correct version so that it can pick latest code 2019-05-10 17:59:06 +08:00
Endi
56cd3a22ce
chore(v2): rm flowtype (#1444) 2019-05-09 18:32:56 +07:00
Endi
c2ebde997a
refactor(v2): add flowtype + refactor test (#1443)
* chore(v2): add flow setup

* nits

* fix

* add flow-typed

* ignore compiled library

* fix error

* fix typing

* fix module name mapper

* setup for @docusaurus/core

* dont try remove type without @flow

* fix can't find @docusaurus/utils

* fix test

* remove obscure relative paths

* more refactoring

* add typing for server/load/theme.js

* no need to ship .flow source
2019-05-08 23:03:52 +07:00
endiliey
c32706ef50 chore(v2/core): update dependencies 2019-05-03 12:38:24 +08:00
Endi
373d17ee72
refactor(v2): simplify code by removing wip i18n & translation (#1431)
* refactor(v2): remove i18n & versioning + cleaner code

* totally remove i18n and versioning from plugin
2019-05-02 17:24:47 +07:00
Zach Badgett
0813920349 refactor: refactor code tab split (#1369)
* refactor: refactor code tab split

* Add split tab unit test

* Fix code tab list bug
2019-05-01 20:57:13 -07:00
endiliey
ec221f5b7c docs(v2): write abit about plugin api 2019-05-01 19:48:55 +08:00
endiliey
fbe2fb879f fix(v2): plugin-content-blog should have mdx-loader as dependency 2019-04-30 16:42:36 +08:00
Nisheal John
9c27884823 fix: upgrade underscore.string to 3.3.5 (#1404)
fix: upgrade underscore.string to 3.3.5
2019-04-28 09:18:27 -07:00
Endilie Yacop Sucipto
b3cf9c62d5
feat(v2): createData plugin API (#1400)
* feat(v2): createModule plugin api

* remove unused stuff

* address review, createModule -> createData

* link.link -> link.url

* remove youtube page

* update yarn.lock
2019-04-27 14:13:53 +07:00
endiliey
e2f5ae7b6c chore(v2): cleanup 2019-04-25 23:52:09 +08:00
Endilie Yacop Sucipto
cfbece5488
chore(v2): use null-loader for non css module in server bundle (#1388)
* chore(v2): use null-loader for non css module in server bundle

* take out nprogress.css

* css nits
2019-04-25 20:27:24 +07:00
Yangshun Tay
6d53264652 fix(v2): wait plugin watching approach (#1390)
* fix(v2): wait plugin watching approach

* Update package.json

* rush fix

* Use 2. x branch

* Update WaitPlugin.js

* yarn.lock

* use polling

* switch chokidar w-> wait-on npm package
2019-04-25 20:18:17 +07:00
Endilie Yacop Sucipto
d2181e332d fix(v2): use fswatch instead of timeout polling to wait for client manifest (#1389)
* fix(v2): use chokidar/fswatch instead of polling w timeout to wait client-manifest

* refactor -> less code

* DRY code
2019-04-24 08:26:16 -07:00
Endilie Yacop Sucipto
10908009e3
feat(v2): 🔥 🔥 better loading UX ️ (#1383)
* feat(v2): render old screen while loading

* replace and remove stuff

* spacing

* add spinner back, just as a fallback

* nits

* Turn off loading spinner on top right

* address review
2019-04-24 01:08:50 +07:00
Endilie Yacop Sucipto
745f32b010
feat(v2): support rightToc, emoji, slug for docs (#1382)
* add remark-slug and remark-emoji

* implement right TOC remark plugin

* use rehype-slug ecosystem instead of remark for perf

* first rough implementation for right toc

* nits

* remove unwanted changes

* fix left border styling

* remove depths

* inline snapshot
2019-04-23 15:22:11 +07:00
Endilie Yacop Sucipto
1d7538ff4a
feat(v2): prefetching/ preloading API (#1373)
* add prefetch helper function

* prefetchChunks pseudocode in Link

* chunkmap extractor & routeChunkNames

* wip

* wip prefetch

* rough implementation

* prefetch feedback page on home page

* dedupe prefetch&preload

* refactor/ remove unused

* double check client-manifest and chunk-map

* make sure build folder exist

* address review
2019-04-20 16:16:34 +07:00
Endilie Yacop Sucipto
57df1f8e32 chore(v2): remove react-hot-loader (#1364) 2019-04-13 12:55:53 -07:00
Endilie Yacop Sucipto
f0dc68d01a
feat(v2): code-split metadata out of routes (#1359)
* move assets-manifest to generatedFilesDir

* rename generateChunkName -> genChunkName

* implement docuHash and genComponentName

* feat(v2): code-split routes and metadata

* don't code split component code out

* simplify metadata path

* nits

* fix test

* address review
2019-04-13 12:37:05 +07:00
Endilie Yacop Sucipto
415d2b33d1
fix(v2): wrong head meta and title (#1354) 2019-04-10 17:08:58 +07:00
Endilie Yacop Sucipto
7e6b74b820 refactor(v2): simplify + optimize server (#1343) 2019-04-07 22:34:11 -07:00
Endilie Yacop Sucipto
84c3e0a045
refactor(v2): simplify webpack stuff (#1342)
* refactor(v2): webpack stuff

* nits

* nits test
2019-04-08 01:40:38 +07:00
Endilie Yacop Sucipto
aa27f82acc
refactor(v2): shift to docusaurus/mdx-loader (#1339) 2019-04-06 23:55:22 +07:00
Yangshun Tay
1a8e12048e feat(v2): docs plugin continued (#1337)
* refactor(v2): shift markdown loader into plugin

* fix(v2): build command configure webpack

* temporary fix for failing test
2019-04-06 21:01:29 +07:00
Endilie Yacop Sucipto
50bbc1dcd7 feat(v2): proper realtime hot reload with react-hot-loader (#1336)
* feat(v2): proper realtime hot reload with react-hot-loader

* nits

* nits again
2019-04-04 08:24:20 -07:00
Endilie Yacop Sucipto
94a4ef55c0 feat(v2): add cache-loader by default especially on babel-loader (#1335) 2019-04-03 12:02:53 -07:00
Endilie Yacop Sucipto
c129c68d1c feat(v2): enable user to analyze production bundle size (#1334)
* feat(v2): enable user to analyze bundle size with --bundle-analyzer for production

* nits
2019-04-03 10:42:11 -07:00