Commit graph

119 commits

Author SHA1 Message Date
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
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
Endi
0834784455
feat(v2): easier plugin theme components swizzling (#1436)
* feat(v2): easier plugin theme components override

* add context

* refactor again

* rename eject -> swizzle

* nits
2019-05-07 13:56:43 +07:00
Yangshun Tay
eedd4c481c feat(v2): implement theme component overriding (#1435)
* feat(v2): implement component overriding

* siteDir theme overriding should work for > 1 level directory

* fallback for essential component like Loading

* rename default -> classic
2019-05-06 19:25:04 +07:00
Yangshun Tay
fb56f853af
misc(v2): rename components (#1434)
* misc(v2): clean up work

* misc(v2): rename components
2019-05-04 15:16:10 -07: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
Endi
528bd7f280 chore(v2): add tbd v2 docs (#1408)
* docs(v2): docusaurus 2 own docs

* misc(v2): try to get multiple sidebar working

* misc(v2): tweak CSS

* fix(v2): fix conflicting docsMetadata
2019-04-28 09:43:40 -07:00
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
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
Endilie Yacop Sucipto
2a13c7773f feat(v2): enable exact for addRoute API (#1374) 2019-04-20 08:09:21 -07: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
Endilie Yacop Sucipto
6e9b85fe43 feat(v2): upgrade addRoutes API to introduce query (#1345)
* feat(v2): upgrade addRoutes API to enable query

* nits
2019-04-08 11:33:40 -07:00
Endilie Yacop Sucipto
2248b4b927 fix(v2): fix chokidar not watching files correctly (#1340) 2019-04-06 11:52:49 -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
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
Yangshun Tay
4ac4a7c671 misc(v2): make packages dir more consistent 2019-04-01 22:18:44 -07:00
Yangshun Tay
029aa636a8
refactor(v2): load sidebars from docs plugin (#1328)
* refactor(v2): load sidebars from docs plugin

* fix(v2): update tests

* fix(v2): change to sidebarPath
2019-04-01 19:42:14 -07:00
Yangshun Tay
a70d9b6720
feat(v2): docs plugin initial work (#1327)
* feat(v2): pluginify docs

* feat(v2): implement docs plugin

* fix(v2): fix bugs in docs plugin for translation and versioning
2019-03-31 11:37:35 -07:00