Commit graph

1193 commits

Author SHA1 Message Date
Endi
d61cc01217
feat(v2): @docusaurus/init package (#1655)
* feat(v2): separate v2 docusaurus/init package

* nits

* docs

* rm unwanted

* readme
2019-07-14 01:06:23 +07:00
Endi
9e9ad1f2b8 fix(v2): clicking logo on mobile sidebar should go to homepage (#1657) 2019-07-13 10:33:12 -07:00
Endi
ca67cad2a7
feat(v2): add more essential meta tags (#1651)
* feat(v2): add more essential meta tags

* nits tagline
2019-07-13 01:23:00 +08:00
Wei Gao
2491c53ba9 feat(v2): improve seo (#1588)
* feat(v2): improve seo

- Add doc specific seo information
- Add twitter meta tags to seo in theme Layout

* Cannot use svg in SEO image

* Add docs about SEO

* add site default image for seo

* Resolve PR discussion

* Add `image` to config optional fields

* Use theme config instead of root config for image, rename in front matter

* Use absolute url for image (wont work on preview)

* update docs for frontmatter field for seo

* refactor

* pages seo

* fix

* nits again'
2019-07-13 00:23:49 +08:00
Bruno Vego
7b7d1e6161 feat(v2): CodeBlock copy button (#1643)
* feat(v2): CodeBlock copy button

* fix: live theme editor breaking bug
2019-07-12 12:55:56 +07:00
Yangshun Tay
e5e085b33d
chore(v2): make v2 docs plugin legacy (#1639)
* chore(v2): make v2 docs plugin legacy

* chore(v2): update fixtures
2019-07-05 17:20:46 -07:00
Yangshun Tay
38a5e4d615
feat(v2): implement client lifecycles dispatcher (#1591)
* WIP feat(v2): implement client lifecycles dispatcher

* misc(v2): remove testing files
2019-06-08 22:35:14 -07:00
Endi
1aa0ea1152 fix(v2): handle case when <code> children is not a string (#1584) 2019-06-07 08:54:26 -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
endiliey
1fecdb7d02 v2.0.0-alpha.19 2019-06-07 00:52:48 +08: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
937be4d231 fix(v2): fix footer CSS 2019-06-05 22:00:43 -07:00
Yangshun Tay
5962cda8b7
feat(v2): responsive sidebar (#1562)
* feat(v2): responsive sidebar

* feat(v2): separate css modules from Infima

* fix(v2): sidebar a11y
2019-06-05 10:58:04 -07:00
Wei Gao
c66ae5a507 feat(v2): refactor live code to css modules (#1558)
* feat(v2): Refactor live code to css modules

* Add a piece in doc about live coding

* Resolve PR discussions
2019-06-04 21:04:52 -07:00
Wei Gao
924668a077 fix(v2): trim code block before passing to prism react renderer (#1560) 2019-06-04 11:08:41 -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
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
Wei Gao
f41970376a feat(v2): Sun moon toggle (#1529)
* feat(v2): Add sun moon toggle 🌞🌛

* Remove dependency of react-toggle

* Move credit to MR

* Add transition effect for the theme toggle

* Revert "Remove dependency of react-toggle"

This reverts commit a47350b65a.

* Revert "feat(v2): Add sun moon toggle 🌞🌛"

This reverts commit 730bed274e.

* feat(v2): Use sun / moon emoji as checked / unchecked icons

* Flex toggle container to avoid positioning with magic numbers

* Move toggle styles to CSS Modules

* Sort CSS properties alphabetically

* Use infima variable for transition time

* Add 🌞 and 🌜 to the Toggle on mobile
2019-06-01 13:27:50 +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
9bb6ba113d feat(v2): persistent & responsive dark mode toggle (#1521) 2019-05-28 08:53:26 -07:00
endiliey
f5a8caf34d fix(v2): a11y responsive navbar 2019-05-28 16:25:28 +08:00
Yangshun Tay
e76288341f feat(v2): responsive navbar 2019-05-27 17:59:42 -07:00
Endi
99a58263ca
feat(v2): docusaurus init (#1516)
* feat(v2): docusaurus init

* change logo
2019-05-25 14:16:42 +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
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
Endi
e31bf50545
chore(v2): update dependencies (#1462)
* chore(v2): update dependencies

* nits
2019-05-16 14:33:32 +07: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
Endi
4a30bf8947
fix(v2): fix wrong dependency problem (#1460) 2019-05-15 20:54:41 +07:00
endiliey
8055d59131 v2.0.0-alpha.14 2019-05-15 19:37:46 +08: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
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
endiliey
3298d8cd23 fix(v2): add missing layout alias on theme-classic plugin 2019-05-06 20:32:49 +08: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