Commit graph

306 commits

Author SHA1 Message Date
Wei Gao
e2338bd0c2
docs(v2): minor revisions on live coding docs (#1594)
* Use relative file path in md

* Need .md file extention in link

* docs(v2): minor revisions on live coding block
2019-06-09 12:04:37 +08:00
Wei Gao
111a21ea08 fix(v2): browser window styles on smaller screen (#1586) 2019-06-07 09:32:52 -07:00
Wei Gao
ebfb585741
feat(v2): doc page layout changes (#1580)
* feat(v2): doc page layout changes

- Add a max-width to main content
- Use 17px font size on large screen
- Add a border-right to sidebar
2019-06-07 14:32:45 +08:00
Wei Gao
96c048b040 docs(v2): remove links to other page that looks like partial toc (#1579) 2019-06-06 11:53:38 -07:00
endiliey
1fecdb7d02 v2.0.0-alpha.19 2019-06-07 00:52:48 +08:00
Endi
26e4c1d883
fix(v2): fix scrolling problem for location with hash (#1576) 2019-06-06 23:28:28 +07:00
Yangshun Tay
fd8c02b1dd chore(v2): upgrade Infima to 0.2.0-alpha.2 (#1577) 2019-06-06 23:28:01 +07:00
Endi
f0d5313d48
refactor(v2): move themes components from docs blog (#1571)
* refactor(v2): move themes from docs blog

* move mdxprovider to docs and blog only
2019-06-06 16:53:47 +07:00
Endi
5362c2cda2
refactor(v2): move livecodeblock as plugin (#1566)
* refactor(v2): move livecodeblock as plugin

* tweak from rebase

* nits

* nits

* dep
2019-06-06 15:49:11 +07:00
Yangshun Tay
6a905dd736
refactor(v2): change plugin format within docusaurus.config.js to be like plugins (#1568)
* refactor(v2): change plugin format within `docusaurus.config.js` to be like presets

* docs(v2): mention customizing CSS
2019-06-05 21:35:54 -07:00
Wei Gao
22ed720faa docs(v2): revise "writing docs" (#1561)
* Revise doc on writing docs

* More work on docs doc

* misc(v2): tweak docs

* misc(v2): fix typo
2019-06-05 13:45:40 -07:00
Endi
b789624d2e feat(v2): allow easy css override with custom css (#1559)
* feat(v2): allow easy css override with custom css

* lint

* fix(v2): use back require for client modules
2019-06-04 10:03:11 -07:00
Endi
e35c1efdf8 feat(v2): live playground should be lazily loaded on visibility (#1557)
* feat(v2): live playground should kbe lazily loaded on visibility

* add docs

* nits

* nits
2019-06-04 08:56:59 -07:00
Endi
305a4f0a29
feat(v2): composition syntax highlighting & live code editors (#1555)
* feat(v2): composition syntax highlighting & react-live playground

* mobile friendly tweak

* refactor styling

* revert docs
2019-06-04 15:59:51 +07:00
Yangshun Tay
246c1814c0
fix(v2): use infima from npm instead of trunk CDN (#1556) 2019-06-04 00:46:31 -07:00
Yangshun Tay
c06ccc0a07
feat(v2): implement client modules API (#1554)
* feat(v2): load client modules

* docs(v2): update plugins API

* misc(v2): change to import
2019-06-03 23:33:00 -07:00
endiliey
38af934464 chore(v2): improve typing 2019-06-03 20:55:45 +08:00
Wei Gao
5af8cd566e docs(v2): Configuration (#1539)
* docs(v2): Configuration

* Revamp docs for configurations

* Move configuration guide to a lower position on the sidebar

* Use filename links inside md

* Wrap up configuration docs

* Update docusaurus.config.js.md
2019-06-03 15:59:32 +07:00
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