Commit graph

258 commits

Author SHA1 Message Date
James George
d8b5323836 misc(v2): refactor utils code to be slightly more concise (#1633) 2019-07-05 11:16:57 -07:00
PA
725219716f feat: use primary color for highlighted items in table of contents (#1628)
Currently the items in table of contents are highlighted as bold based on items being
viewed on the screen or as the user scrolls up/down on a page. Added the `primaryColor`
of the site's configuration to make the current section being viewed standout more
in the table of content.

closes #1608
2019-07-02 23:09:14 -07:00
James George
f4effe49fc chore: minor refactor (#1630)
* feat: minor refactor

* Minor fix

* Update init.ts
2019-06-29 22:38:39 -07:00
Wei Gao
a6736dd8dc feat(v2): report port number when starting dev server (#1582)
* feat(v2): report port number when starting dev server

* Attempt to print dev server URL

* Use digit dino

* Resolve merge conflict

* remove dino
2019-06-24 15:17:13 +07:00
Wei Gao
d1418af5ba chore(v2): tweak installation doc (#1621)
- generated site to match what is described in the doc
- minor changes in the installation page
2019-06-23 10:32:10 -07:00
Parth Patel
db44eccac3 fix: replace apostrophe with empty string in header slugification (#1618)
* Replace apostrophe with empty string in header

This change is to replicate the github behviour with respect to apostrophe in
headers. When there is an apostrophe in a header, github replaces it with empty string
when creating an anchor link to that header. Docusaurus should follow the same convention.
2019-06-21 17:40:04 -07:00
Yangshun Tay
49cfdeb42b feat: make blog posts unlisted only in production 2019-06-15 10:32:43 -07:00
Yangshun Tay
ffbc7a37f8
refactor(v2): move source files to be under website/src directory (#1609)
* refactor(v2): move source files to be under website/src directory

* misc: rename src constant
2019-06-15 09:59:23 -07:00
Ólafur Páll Geirsson
da3c91373e feat: add "unlisted" front matter option for blog posts (#1396)
* Add `unlisted` header option for blog posts, fixes #1393.

Previously, the blog sidebar listed the most recent blog posts sorted by
their publish date. This commit adds the ability to hide a specific blog
post from the sidebar and the feed of all blog posts by adding the
`unlisted: true` header option.

```md
title: My Draft Post
unlisted: true # Hide from blog sidebar and main blog page feed.
---
```

* Rename "unlisted" into "draft".
2019-06-15 09:24:15 -07:00
Oscar Walter
a5996829ef fix: require babel dependencies directly (#1575)
**What it does:**
 - Directly require babel dependencies instead of asking babel to do it.
2019-06-14 12:58:46 +08:00
Shawn Tabrizi
b1023aa9ac fix: remove the Container component from the docsNavContainer (#1599)
In this case, the `docsNavContainer` does not pick up any styles or attributes from the `container` component it is wrapped in.

It does however pick up the pesky `.container` className, which when paired with bootstrap, messes up the styling of the top navigation in mobile.

This change is completely non-destructive, but helps enable the use of bootstrap on top of Docusaurus.
2019-06-13 09:05:41 -07:00
Yangshun Tay
2d7a456208 misc(v2): misc fixes 2019-06-10 22:20:12 -07:00
Yangshun Tay
8a6f8ef9c3 fix(v2): make Google analytics and Google gtag plugins work 2019-06-10 00:48:38 -07:00
Yangshun Tay
cfffad8c6d feat(v2): implement Google analytics plugin 2019-06-10 00:16:06 -07:00
Yangshun Tay
7375789e46 feat(v2): implement Google gtag plugin 2019-06-09 23:21:36 -07:00
Yangshun Tay
dcd1b89ac0 refactor(v2): tweak classic template 2019-06-09 21:38:45 -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
Yangshun Tay
3496f6e609
v1.11.1 (#1592)
* v1.11.1

* chore: publish new website

* misc: fix tests
2019-06-08 10:56:21 -07:00
Endi
1aa0ea1152 fix(v2): handle case when <code> children is not a string (#1584) 2019-06-07 08:54:26 -07:00
Endi
d98b4c50d2
refactor(v2): move core typing to types.ts (#1585)
* refactor(v2): move typing to types.ts

* nits
2019-06-07 20:00:56 +07:00
Yangshun Tay
bc761d41ad
refactor(v2): improve PendingNavigation to not use componentWillReceiveProps (#1583)
* refactor(v2): improve PendingNavigation to not use componentWillReceiveProps

* misc(v2): add TODO
2019-06-07 00:34:39 -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
endiliey
ebc23e13e4 chore(v2): update changelog 2019-06-07 00:49:40 +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
b08b472435
chore(v2): dependency update (#1573)
* chore(v2): dependency update

* nits
2019-06-06 19:03:29 +07:00
Endi
f07791b303
feat(v2): minify css (#1572)
* feat(v2): minify css

* fix docusaurus.js logic
2019-06-06 18:00:43 +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
Sviatoslav
e486d3d1b0 fix: Add support for non-latin characters in scrollSpy ToC highlighter (#1570) 2019-06-06 16:50:55 +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
Endi
a0777f7c57
feat(v2): better webpack splitchunks optimization (#1565)
* feat(v2): better webpack splitchunks optimization

* tweak

* comment
2019-06-06 14:49:44 +07:00
Yangshun Tay
937be4d231 fix(v2): fix footer CSS 2019-06-05 22:00:43 -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
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
Tushar Sharma
ec69460b4f fix(v2): removes hardcoded sidebar width (#1535)
* fix(v2): removes hardcoded sidebar width

* fix(v2): remove grid layout and keep fixed width of sidebar
2019-06-04 21:53:53 -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
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
1e79a4b5ee fix(v2): right toc should be sticky 2019-06-03 13:06:34 -07:00
endiliey
38af934464 chore(v2): improve typing 2019-06-03 20:55:45 +08:00
Hongarc
cbf80bef5a chore(v2): use boolean instead of Boolean for type (#1551) 2019-06-03 19:49:41 +07:00
Yangshun Tay
7115cfc743 misc(v2): add more typing for server code (#1548)
* refactor(v2): add types to loading code

* misc(v2): better typing

* misc(v2): rename presets

* misc(v2): further typing

* fix typing for webpack config
2019-06-03 17:16:17 +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