Commit graph

2757 commits

Author SHA1 Message Date
Yangshun Tay
361986515c
feat(v2): presets (#1401)
* feat(v2): presets

* misc: add newline

* misc: add tests

* misc: fix path
2019-04-27 10:47:56 -07:00
Juan Picado @jotadeveloper
7ebcf10478 fix: blog docs example as object property (#1403) 2019-04-27 09:45:43 -07:00
Endilie Yacop Sucipto
808a6d0f5b
chore(v2): make the site slightly more mobile friendly (#1402)
* chore(v2): make the site slightly more mobile friendly

* nits

* remove console.log
2019-04-27 16:13:34 +07:00
endiliey
569985ad80 fix(v2): sidebar not appearing on index.html version 2019-04-27 17:06:44 +08: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
Roland Balogh
195e934858 feat: change icon for navToggle (#1394) 2019-04-26 09:50:41 -07:00
Endilie Yacop Sucipto
16bec1cb47 refactor(v2): use hash to compare generated content (#1397) 2019-04-26 09:25:00 -07:00
James George
2a8d973a6e feat(v2): Warn & output help if unknown docusaurus <command> is provided (#1399) 2019-04-26 22:44:39 +07:00
endiliey
e2f5ae7b6c chore(v2): cleanup 2019-04-25 23:52:09 +08:00
endiliey
7339bfea35 v2.0.0-alpha.11 2019-04-25 23:02:15 +08:00
Endilie Yacop Sucipto
b7a5cfb463
refactor(v2): code-split NotFound/ wildcard path (#1392)
* refactor(v2): code-split NotFound/ wildcard path

* nits

* typo
2019-04-25 21:58:28 +07:00
Nathaniel Tucker
c1026516e1 fix: prism syntax highlight .tsx properly (#1391) 2019-04-25 20:42:10 +07: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
cb8c7125db fix(v2): fix hash-link css (#1387)
* fix(v2): fix hash-link css

* 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

* Update styles.css

* fix(v2): toggle hash-link opacity
2019-04-24 10:17:40 -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
Yangshun Tay
6a853ff7d7 v1.8.3 2019-04-23 22:06:37 -07:00
Yangshun Tay
2b9b0af49d v1.8.3 2019-04-23 22:05:08 -07:00
Yangshun Tay
33a341e8c0 v2.0.0-alpha.10 2019-04-23 22:03:49 -07:00
Yangshun Tay
c50463fed4 v2.0.0-alpha.9 2019-04-23 22:02:29 -07:00
Yangshun Tay
f8c2f472c8 v2.0.0-alpha.8 2019-04-23 21:49:43 -07:00
Radosław Miernik
93894e7bdc feat(v2): headings anchors (#1385)
* feat(v2): headings anchors

* misc: make hash link appear on hover

* misc: convert to rem
2019-04-23 21:41:51 -07:00
Yangshun Tay
82ded54b1a misc: fixes 2019-04-23 21:23:18 -07:00
Yangshun Tay
16fe5196cb fix: use class names for tutorial images 2019-04-23 11:36:51 -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
Yangshun Tay
23e56f61f5
feat: add tutorial (#1381)
* feat: add tutorial

* feat: complete tutorial

* Fix link
2019-04-23 09:44:37 -07:00
endiliey
2d24e478a5 fix(v2): fix prism not working 2019-04-24 00:23:01 +08:00
endiliey
311c88cd76 chore(v2): change algolia API key & fix css 2019-04-23 23:16:48 +08:00
Endilie Yacop Sucipto
60c24ef1f9
chore(v2): make site algolia compliant (#1384) 2019-04-23 20:36:41 +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
Radosław Miernik
37897ffc96 fix(v2): prefetch only existing chunks (#1380) 2019-04-22 12:09:46 -07:00
Yangshun Tay
21793a833d
feat: docusaurus-init without example directories (#1378)
* feat: do not copy into examples folder

* Update documentation

* feat: use Undraw illustrations for initialized landing page (#1379)
2019-04-21 22:28:35 -07:00
Yangshun Tay
1a44d99db1 misc(v2): add dummy table of contents to docs page 2019-04-21 13:46:07 -07:00
Endilie Yacop Sucipto
90a1fbc535
fix(v2): flat function & window.docusaurus rename (#1377)
* fix(v2): flat function & window.docusaurus rename

* test nits

* nits space

* test fix
2019-04-21 16:54:14 +07:00
Yangshun Tay
2191fd662c fix(v2): keep up with infima updates 2019-04-20 18:22:04 -07:00
Endilie Yacop Sucipto
9aa66ddac6
chore(v2): temporary hack to persist infima CSS (#1376) 2019-04-21 00:51:25 +07:00
Endilie Yacop Sucipto
b99ede440b
feat(v2): prefetch links on viewport with intersection observer (#1375)
* feat(v2): prefetch links on viewport with intersection observer

* nits

* remove console log

* better useEffect

* disconnect IO when unmount

* comment
2019-04-21 00:28:13 +07:00
Endilie Yacop Sucipto
2a13c7773f feat(v2): enable exact for addRoute API (#1374) 2019-04-20 08:09:21 -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
Yangshun Tay
d00799f633 refactor(v2): use BEM for classes 2019-04-20 00:42:24 -07:00
Alan Cha
1fc4c9b810 docs: consistent badge style (#1371) 2019-04-18 12:50:27 -07:00
Endilie Yacop Sucipto
b4daac96c8
fix(v2): fix hot reload sometimes not working due to altered modules (#1370) 2019-04-18 19:04:53 +08:00
endiliey
1ce4195f14 v2.0.0-alpha.7 2019-04-16 22:38:11 +08:00
Yangshun Tay
96cb4672d5 feat(v2): implement ComponentCreator (#1366)
* v2(feat): convert blog to view-driven content queries

* feat(v2): port blog to use ContentRenderer

* misc(v2): fix test and change ContentRenderer url

* avoid chunkName collision

* avoid chunkname collision more

* fix(v2): fix content-renderer ssr problem (#1367)

* wip

* avoid chunk names collision

* ContentRenderer is a wrapper for Loadable

* convert docs and pages

* nits and rename

* rename routeModules -> modules

* remove lodash from component creator

* resolve chunk not being picked up correctly

* add comment for explanation

* small refactoring
2019-04-16 22:18:29 +08:00
Yangshun Tay
0ac2441d23 chore: v1.8.1 2019-04-15 11:33:21 -07:00
murray-b
94a0da33c3 feat: random color scheme in siteConfig (#1365) 2019-04-15 09:04:38 -07:00
Endilie Yacop Sucipto
57df1f8e32 chore(v2): remove react-hot-loader (#1364) 2019-04-13 12:55:53 -07:00
endiliey
1d133e7169 fix(v2): fix deploy script 2019-04-14 01:22:57 +08:00
endiliey
d097f73285 v2.0.0-alpha.6 2019-04-14 01:07:24 +08:00
endiliey
261ab9254d fix(v2): only import prism css on browser 2019-04-14 01:02:34 +08:00