Commit graph

81 commits

Author SHA1 Message Date
Yangshun Tay
cefee2dec1
feat(v2): allow plugins to specify paths to watch (#1272) 2019-03-09 13:00:44 -08:00
Yangshun Tay
8629abf73a chore(v2): upgrade React 2019-03-08 23:26:50 -08:00
Endilie Yacop Sucipto
643addb729
feat(v2): enable JSX in markdown using MDX (#1263)
* feat(v2): enable JSX in markdown

* reformat docs

* chore(v2): nits

* remove dummy test

* include .mdx extension

* add syntax highlighting with prismjs
2019-03-08 01:02:47 +08:00
Yangshun Tay
801453fae6 fix: upgrade jest to remove security vulnerability (#1267)
* fix: upgrade jest to remove security vulnerability

* fix lint
2019-03-07 16:15:59 +08:00
Endilie Yacop Sucipto
2ad7413dd7 refactor(v2): determine all available routes/url (#1264)
* refactor(v2): determine all available routes/url

* nits

* test(v2): routes snapshot

* sort for consistent snapshot test due to async ordering
2019-03-06 10:51:16 -08:00
Yangshun Tay
0f94c062a5 fix(v2): clean build dir only on build command 2019-03-05 00:00:49 -08:00
Yangshun Tay
d64581f2b4 misc(v2): misc fixes 2019-03-04 22:39:07 -08:00
endiliey
95b0cb942f fix(v2): blog not showing metadata & missing asset 2019-03-04 16:24:39 +08:00
endiliey
039af9b213 chore(v2): fix v2 readme 2019-03-04 14:32:48 +08:00
Yangshun Tay
7475051526 refactor(v2): convert blog page to be added to routes by plugin lifecycle 2019-03-03 22:14:16 -08:00
Yangshun Tay
74d26d4f3d feat(v2): plugin lifecycle - add generateRoutes() API 2019-03-03 18:46:09 -08:00
Yangshun Tay
70d185d862 fix(v2): don't display footer on docs page 2019-03-02 21:03:58 -08:00
Yangshun Tay
b13e468b16 refactor(v2): point blog plugin path to v1's blog directory 2019-03-02 20:40:31 -08:00
Yangshun Tay
95ca07a646 refactor(v2): shift plugin cache generation into its own dir 2019-03-02 20:29:49 -08:00
Yangshun Tay
92c7e1f44b refactor(v2): convert plugins into a class 2019-03-01 22:44:34 -08:00
Yangshun Tay
8375236db4 fix(v2): s/blogMetadatas/blogMetadata 2019-02-24 23:33:08 -08:00
Yangshun Tay
03ac87a1e1 chore(v2): remove console.log 2019-02-24 23:20:47 -08:00
Yangshun Tay
e5b7daef33 feat(v2): create docusaurus-content-blog plugin draft 2019-02-24 23:11:15 -08:00
Yangshun Tay
211e04f409 refactor(v2): shift generated files out of core into website dir 2019-02-24 15:20:58 -08:00
Yangshun Tay
f559b1dc7c refactor(v2): move website dir out of v2 for cleaner separations 2019-02-24 14:13:08 -08:00
Yangshun Tay
63851a6f14 chore(v2): remove prettier from specific projects 2019-02-23 14:28:32 -08:00
Yangshun Tay
7eac4827ad fix(v2): lint 2019-02-23 13:26:45 -08:00
Yangshun Tay
b33de00a32 chore(v2): generic styling improvements 2019-02-23 12:50:31 -08:00
Yangshun Tay
c46a894a01 chore(v2): remove hardcoded references to config filename 2019-02-23 11:59:44 -08:00
Yangshun Tay
7dae4bd0d1
chore: rename siteConfig.js to docusaurus.config.js (#1245)
* chore: rename siteConfig.js to docusaurus.config.js

* Prettier
2019-02-23 11:16:24 -08:00
Paul O’Shannessy
360696f269 Remove more references to code.facebook.com (#1231)
I missed a couple things in #1224 :(
2019-02-12 12:20:44 -08:00
Yangshun Tay
31d0b5fec1 chore: upgrade v2 deps 2019-02-10 02:06:41 +08:00
Endilie Yacop Sucipto
9360739cba
fix: support relative markdown linking (#1138)
* fix: relative markdown reference linking

* prioritize relative linking resolve
2018-12-04 12:26:43 +08:00
Jake Bolam
c4a9b31984 feat: add custom commit message (#1136)
* feat: add custom commit message

Addresses: #1135

* Update publish-gh-pages.js

* add support to v2 as well

* docs: add them

* docs
2018-12-04 12:26:21 +08:00
Endilie Yacop Sucipto
beca1697ff
chore(v2): update webpack dependencies (#1120) 2018-11-21 15:57:54 +08:00
Endilie Yacop Sucipto
b84754dde8
chore(v2): normalize url properly (#1105)
* refactor(v2): normalize url properly

* nits
2018-11-12 00:25:13 +08:00
Endilie Yacop Sucipto
a0d229d808
feat(v2): better UX to avoid flashing screen on first page reload (#1100) 2018-11-08 11:19:37 +08:00
Endilie Yacop Sucipto
fc7ba5b6b1
chore(v2): switch from uglifyjs-webpack-plugin to terser-webpack-plugin (#1099) 2018-11-08 10:58:52 +08:00
Endilie Yacop Sucipto
8695ed89a6
refactor(v2): use react hooks on root app (#1095)
* refactor(v2): use functional component + react hooks for App

* docusaurus/link

* nits

* review
2018-11-08 10:23:07 +08:00
Yangshun Tay
13a21b2374 feat(v2): rewrite docs loading strategy (#1092)
* feat(v2): rewrite docs loading strategy

* Prettify

* Lint

* Allow resolving from library root

* minor changes, refactor

* copyright header
2018-11-07 16:39:47 +08:00
Yangshun Tay
db9e07886c chore(v2): fix copyright header again 2018-10-31 10:49:12 -07:00
endiliey
62b5895ef8 style(v2): better loading screen 2018-10-30 23:17:32 +08:00
Yangshun Tay
6cec7ce982 feat(v2): render Markdown on server-side instead (#1077)
* feat(v2): render Markdown on server-side instead

* move to folder
2018-10-30 22:45:07 +08:00
Yangshun Tay
d479f42ff5 chore(v2): add copyright header to Navbar 2018-10-29 13:40:24 -07:00
Endilie Yacop Sucipto
85336649d3
feat(v2): headerlinks (#1074)
* feat(v2): headerlinks

* fix test

* nits

* remove tictactoe:

* headerIcon

* nits

* remove lang dropdown

* fix failing test

* search box

* algolia search

* use babel-eslint to resolve dynamic import

* nits

* favicon and title

* Update .eslintignore
2018-10-28 16:32:19 +08:00
Yangshun Tay
d4458b394c
chore(v2): lint website dir (#1073)
* chore(v2): lint website dir

* chore(v2): lint website dir

* fix CircleCI config
2018-10-27 12:01:10 -07:00
Yangshun Tay
40f620047a refactor(v2): use React hooks! (#1072) 2018-10-27 15:06:05 +08:00
Endilie Yacop Sucipto
f84332d0a0
feat(v2): webpack prefetch for better UX (#1071)
* feat(v2): webpack prefetch for better UX

* test snapshot update

* nits
2018-10-27 13:48:10 +08:00
Blaine Bublitz
bbf355fdc7 feat: support reference-style linking in documents (#1048)
feat: support reference-style linking in documents
2018-10-27 12:33:44 +08:00
Yangshun Tay
7488de266f chore: add final copyright headers 2018-10-26 18:27:37 -07:00
Yangshun Tay
c7336462ec
feat(v2): support non-css modules when loading styles (#1069) 2018-10-25 21:43:31 -07:00
Yangshun Tay
c9e29c86a5
chore(v2): add Facebook copyright headers (#1067) 2018-10-25 17:03:19 -07:00
Endilie Yacop Sucipto
fd780f19a2
feat(v2): generate sitemap (#1065)
* feat(v2): generate sitemap

* cannot snapshot sitemap because xml generated in different order
2018-10-25 21:47:13 +08:00
Endilie Yacop Sucipto
12fd204840
feat(v2): implement blog (#1062)
* feat(v2): implement blog

* expect flat blog structure

* \n

* blogpage can import many posts
2018-10-25 14:23:29 +08:00
Sviatoslav
a2d3f26722 feat(v2): support external links and linking to docs from other sidebars (#1052)
* feat(sidebar): support external links and linking to docs from other sidebars

* Update styles.css
2018-10-25 00:01:39 -04:00