Commit graph

2188 commits

Author SHA1 Message Date
Endi
8743ee5041
feat(v2): allow passing remark, rehype, prismtheme to mdx-loader (#1543)
* feat(v2): allow passing remark, rehype, prismtheme to mdx-loader

* nits
2019-06-03 14:54:27 +07:00
Yangshun Tay
6a814ac64a
refactor(v2): change plugin api (#1547)
* misc(v2): new plugin format example

* refactor(v2): make all plugins a function returning objects

* misc: add CHANGELOG

* misc(v2): update CHANGELOG

* misc(v2): fix tests

* misc(v2): convert swizzle command

* misc(v2): convert sitemap back to commonjs
2019-06-02 20:37:22 -07:00
Endi
19b376ebaf chore(v2): add sensible default browserlist (#1542) 2019-06-02 10:43:39 -07:00
endiliey
b267d8136d v2.0.0-alpha.18 2019-05-30 09:59:50 +08:00
endiliey
7da4e3ea2f v2.0.0-alpha.17 2019-05-29 20:48:19 +08:00
Endi
404983c32b docs(v2): install, create pages, docs, deploy (#1522)
* docs(v2): install, create pages, docs, deploy

* docs(v2): Docs review changes for installation, create pages, docs,
deploy

* docs(v2): more docs!
2019-05-29 01:08:06 -07:00
Yangshun Tay
c75cec76ec misc: update Docusaurus 2 URL 2019-05-26 16:43:28 -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
7bbf677e67 docs(v2): introduction (#1501)
* docs(v2): introduction

* typo

* remove lines about gatsby complex

* tweak
2019-05-21 18:56:42 -07:00
Cole
0568ad4992 feat: allow different host through CLI flag (#1475)
* feat(core): use 0.0.0.0 for livereload address

* test(core): update server tests

* feat(cli): add host by command line flag

* test: revert test changes

* fix(core): update server to use custom host if supplied

* refactor: nits
2019-05-20 23:31:41 +07:00
Endi
1ec4a9f999
chore: remove noWatch cli options because you cant disable watch in wds (#1480) 2019-05-17 21:51:16 +07:00
Wei Gao
0e5cac94cb docs(v2): CLI docs (#1476)
* WiP: CLI docs

* Tweak word choices for CLI docs

- Use the word swizzle directly
- Follow variable convention for shell

* Resolve docs discussion

* Update cli.md
2019-05-17 18:01:34 +07:00
Yangshun Tay
89ef4b9c44 feat(v2): move navbar config into themeConfig (#1477)
* feat(v2): move navbar config into themeConfig

* misc: fix tests

* fix: support external url for logo
2019-05-17 14:54:11 +07:00
endiliey
e873c14918 v2.0.0-alpha.16 2019-05-16 16:01:52 +08:00
Yangshun Tay
110126ab1d feat(v2): theme config for Footer (#1461)
* feat(v2): theme config for Footer

* fix: dont show footer if themeConfig.footer is undefined
* Import fresh docusaurus.config.js for better hot reload
2019-05-16 13:27:52 +07:00
endiliey
86a1c3a1b1 v2.0.0-alpha.15 2019-05-15 21:56:12 +08:00
endiliey
8055d59131 v2.0.0-alpha.14 2019-05-15 19:37:46 +08:00
endiliey
4a4bf43e5d chore(v2): fix typo 2019-05-15 19:35:14 +08:00
endiliey
badb067b4b test(v2): test different type of sidebar item 2019-05-15 19:16:28 +08:00
Yangshun Tay
23b50f17a1
refactor(v2): blog data revamp (#1450)
* refactor(v2): blog data revamp

* fix(v2): fix incorrect blog total count

* misc: remove console.log

* feat(v2): export frontMatter as an object within MDX file (#1451)

* refactor. Don't confuse metadata & frontmatter

* export frontMatter in content itself

* nits

* nits name

* dont truncate first four lines in blog
2019-05-13 00:16:15 -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
Endi
64fb7a2d0c
chore(v2): tweak eslint config (#1445) 2019-05-09 20:01:48 +07:00
Endi
174ad279a6
refactor(v2): move headerLinks -> themeConfig & rm dead code (#1442)
* refactor(v2): move headerLinks -> themeConfig & rm dead code

* rm -rf dead code
2019-05-08 15:47:32 +07:00
Yangshun Tay
384fd5708f feat(v2): Algolia search theme (#1440)
* feat(v2): Algolia search plugin

* patch PR #1440 (#1441)

* alternative implementation

* typo

* refactor noop

* rename SearchAlgolia -> SearchBar

* changes.md
2019-05-08 15:21:11 +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
637047af2c refactor(v2): remove page plugin component 2019-05-05 12:33:54 -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
endiliey
76d210f1f1 v2.0.0-alpha.13 2019-05-01 21:27:50 +08:00
endiliey
ec221f5b7c docs(v2): write abit about plugin api 2019-05-01 19:48:55 +08:00
endiliey
86c24e9cf5 v2.0.0-alpha.12 2019-04-30 16:19:26 +08:00
Yangshun Tay
5d6dc49bcd
docs(v2): add docs skeleton and structure (#1412)
* docs(v2): add docs skeleton and structure

* docs(v2): add on

* docs(v2): move motivation into contributing
2019-04-28 20:20:24 -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
endiliey
7339bfea35 v2.0.0-alpha.11 2019-04-25 23:02:15 +08: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
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
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
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
endiliey
1ce4195f14 v2.0.0-alpha.7 2019-04-16 22:38:11 +08:00
endiliey
d097f73285 v2.0.0-alpha.6 2019-04-14 01:07:24 +08:00
Yangshun Tay
fbfb26e17c fix(v2): avatar class names 2019-04-12 23:00:36 -07:00
Yangshun Tay
b4bfa084f1 v2.0.0-alpha.5 2019-04-10 13:26:45 -07:00