Commit Graph

2099 Commits

Author SHA1 Message Date
Endi daa71b2eff
perf(v2): reduce HTML payload by eliminating chunk-map (#2118)
* perf(v2): eliminate chunk-map bloat while preserving prefetch functionality

* review

* refactor
2019-12-13 15:55:45 +07:00
Alexey Pyltsyn 4f0ae6d117 fix(v2): align GH button in vertical center (#2119) 2019-12-12 13:49:37 -08:00
Alexey Pyltsyn 26a3d72c84 feat(v2): auto switch theme depending on the system theme (#2117) 2019-12-12 05:06:54 -08:00
Endi aa87bc5b7b feat(v2): minify html (#2116)
* wip: minify html with terser

* tweak

* remove empty attr
2019-12-12 04:47:49 -08:00
Alexey Pyltsyn 5bfa5d6579 feat(v2): hide navbar on scroll (#2055)
* feat(v2): hide navbar on scroll

* Turn on hide option

* Refactor after review
2019-12-12 04:19:37 -08:00
Endi ace93c5a14
fix(v2): move metadata export after compiling MDX to avoid weird MDX parsing error. (#2105)
* fix(v2): move metadata export to mdx-loader to prevent any weird mdx parsing

* refactor

* nits

* nits

* nits
2019-12-11 16:33:47 +07:00
Alexey Pyltsyn 1f0eb37e19 fix(v2): add syntax highlight to generated colors (#2114) 2019-12-10 12:50:35 -08:00
Endi 6db29897cf perf(v2): explicit babel/runtime version (#2111) 2019-12-10 12:47:28 -08:00
Endi 9b5266aa7e docs(v2): fix pages routing inaccurate info (#2110)
* docs(v2): fix pages routing inaccurate info

* fix CI
2019-12-10 12:47:13 -08:00
Alexey Pyltsyn bbc1d2cd51 fix(v2): set stored theme only if it exists (#2113) 2019-12-10 12:46:29 -08:00
Nick McCurdy ba7c38cf0f docs(v1): fix path to sidebars.json in generated readme (#2108)
* docs(v1): fix path to sidebars.json in generated readme

* test(v1): fix path to sidebars.json in test
2019-12-09 15:57:59 -08:00
Alexey Pyltsyn 172f07116d fix(v2): add missing hyphen in color generator (#2106) 2019-12-09 22:08:26 +07:00
Yangshun Tay d5919fd962
feat(v2): add color generator for primary colors (#2104) 2019-12-09 02:10:38 -08:00
Yangshun Tay 2fcb81596b
docs: mention about moving docs directory into website (#2103) 2019-12-08 20:35:22 -08:00
Yangshun Tay 55e676cb25
misc: add command to run prettier on docs (#2102)
* misc: add command to run prettier on docs

* Fix GH issue template

* Fix tests

* Add prettier-docs command to precommit
2019-12-07 21:56:30 -08:00
endiliey cfc313d7c7 v2.0.0-alpha.39 2019-12-07 13:18:13 +07:00
Endi bcf39019f7
chore: v2.0.0-alpha.39 changelog & docs (#2101)
* chore: v2.0.0-alpha.39 changelog & docs

* remove useless
2019-12-07 13:12:04 +07:00
Endi 3246939539
Merge pull request #2100 from facebook/endiliey-windows
chore: docusaurus build on Windows with GitHub actions
2019-12-07 12:36:14 +07:00
Endi 8d24e31df4
Update nodejs-windows.yml
tweak for docusaurus build on v1 and v2
2019-12-07 10:27:10 +07:00
Endi 2b47dc66a3
Just use one node version 2019-12-07 10:19:43 +07:00
Endi 968844eac0
chore: add GitHub actions for v2 windows build 2019-12-07 10:16:01 +07:00
Endi 5c39041dc8
fix(v2): escape import path on windows (#2099) 2019-12-07 09:52:23 +07:00
Endi e62a93863f feat(v2): better & nice looking error overlay (#2096)
* wip: better error overlay and use websocket instead of sockjs

* refactor
2019-12-06 01:33:13 -08:00
Endi c45a2c649f fix(v2): metadata error if markdown does not have line break (#2095) 2019-12-06 00:14:44 -08:00
endiliey 3bb251904b v2.0.0-alpha.38 2019-12-06 14:15:48 +07:00
Endi fb77c1c137
chore: v2.0.0-alpha.38 changelog & docs (#2094)
* chore: v2.0.0-alpha.38 changelog & docs

* nits
2019-12-06 14:03:24 +07:00
Endi 7f8aca2ddc
perf(v2): smaller bundlesize by embedding metadata to content (#2088)
* wip embed metadata to content

* embed metadata in blog as well

* refactor

* update test

* yarn lock

* avoid overwriting file everytime we run new nodejs process

* nits
2019-12-06 12:34:21 +07:00
Endi 32c9d07b90
perf(v2): improve dev build time by not overwriting file if possible (#2089)
* perf(v2): improve sequential build time by not overwriting file if possible

* minor improvement

* docs
2019-12-06 12:17:41 +07:00
kaichu ff4851982c docs(v1): showcase user Bottender (#2092)
* add Bottender

* Update users.js
2019-12-05 19:30:21 -08:00
KYY 381ed59416 fix(v1): add key to versions.map in versions.js (#2087) 2019-12-05 00:02:37 -08:00
Endi d592e3c470
fix(v2): windows compatibility regression (#2086)
* Revert "perf(v2): replace unnecessary json stringify(string) with inline string (#2039)"

This reverts commit 3aa2ab6ab3.

* add comment

* Comment bois
2019-12-05 12:43:59 +07:00
Yangshun Tay 4927f764e5 misc(v2): nitpicky formatting 2019-12-04 00:55:52 -08:00
KYY e0425358ee refactor(v1): fix props for ProjectTitle (#2083)
* v1 website index.js fix props for ProjectTitle

* Update index.js
2019-12-03 21:51:00 -08:00
Endi dd6b10da30 feat(v2): algolia search result no longer cause full page refresh (#2079) 2019-12-03 21:40:31 -08:00
Endi 718b1e11b5 refactor(v2): move scripts/stylesheets siteConfigclient side injection to server side using injectHtmlTag API (#2081) 2019-12-03 21:40:15 -08:00
Endi b26948d485 refactor(v2): minor code refactoring on component creator (#2080) 2019-12-03 12:10:13 -08:00
Shivangna Kaistha af059e61de misc(v2): update mdx loader plugin README (#2085)
fix typo
2019-12-03 12:07:46 -08:00
Endi cc2201e997 perf(v2): load algolia JS only when user interacts with search (#2076)
* perf(v2): lazy load algolia JS when the user interacts with the search input

* useref
2019-12-02 01:15:43 -08:00
endiliey 7a6516ce5d chore(v2): optimize images 2019-12-02 14:51:07 +07:00
Endi 8a948102c3
fix(v2): fix plugin-ideal-image breaking website (exports not defined) (#2074)
* fix(v2): fix plugin-ideal-image breaking website (exports not defined)

* nits

* add npm ignore

* lint
2019-12-01 21:59:02 +07:00
endiliey 464d8e529a v2.0.0-alpha.37 2019-12-01 20:29:59 +07:00
endiliey 1f82f03123 chore(v2): v2.0.0-alpha.37 changelog & docs 2019-12-01 20:28:49 +07:00
Endi 070a49e679
chore: prepare 1.14.3 release (#2073) 2019-12-01 20:20:00 +07:00
Endi 4d5b62ae47
feat(v2): support prefers-color-scheme & fix dark mode FOUC on refresh (#2069)
* fix(v2): dark mode should not have flash on refresh

* refactoring

* address review
2019-12-01 20:01:35 +07:00
Endi 046a53ebf4
perf(v2): more performant gtag and analytics plugin (#2070)
* perf(v2): more performant gtag and analytics plugin

* more spec compliant

* optimize n refactor

* typo

* review
2019-12-01 19:55:21 +07:00
Yangshun Tay 750d1654a5 misc(v2): update yarn.lock 2019-11-30 16:33:26 -08:00
Dongwoo Gim 104733914a refactor(v2): convert `@docusaurus/plugin-ideal-image` to TypeScript (#2011)
* refactor @docusaurus/plugin-ideal-image
refactor @docusaurus/plugin-ideal-image

* Update react-ideal-image.d.ts

* Update types.ts

* Update IdealImage.tsx

* Update package.json
2019-11-30 16:09:26 -08:00
Endi 39e9e755c3 Revert "fix(v2): remove auto wrap for code blocks (#2048)" (#2071)
This reverts commit 10cd99b3e4.
2019-11-30 12:57:56 -08:00
Alexey Pyltsyn 3caff0d221 feat(v2): add meta RSS/Atom feed links to head (#2000)
Co-authored-by: Endi <endiliey@gmail.com>

* feat(v2): add meta RSS/Atom feed links to head

* refactor(v2): use new API

* Better typing

* fix typing
2019-11-30 23:05:53 +07:00
Endi 2297ae9f57
refactor(v2): stronger typing for blog plugin (#2072)
* refactor(v2): stronger typing for blog plugin

* Explicit
2019-11-30 22:26:28 +07:00