Commit graph

275 commits

Author SHA1 Message Date
endiliey
307f384684 v2.0.0-alpha.20 2019-07-14 17:36:40 +07:00
endiliey
568d9fd7dd chore(v2): update changelog 2019-07-14 17:32:48 +07:00
Yangshun Tay
c021367a18
docs(v2): proofread docs for alpha.20 (#1658)
* docs(v2): proofread docs for alpha.20

* docs(v2): update creating pages doc

* docs(v2): further updates to creating pages doc

* chore(v2): update CHANGELOG
2019-07-13 19:21:39 -07:00
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
22ce04d3fb feat(v2): better splitchunks and babel default (#1653)
* feat(v2): better splitchunks and babel default

* common chunks

* chunks: all
2019-07-13 10:38:48 -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
1f5f06134f feat(v2): render 404 html page (#1652) 2019-07-13 03:57:09 -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
Endi
83e8e440fa
chore(v2): upgrade mdx deps (#1650) 2019-07-13 00:42:52 +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
Saugat Acharya
4faa608edd docs(v1): introduce docsSideNavCollapsible in siteConfig.js (#1649)
* Add information for docsSideNavCollapsible

* Add trailing comma
2019-07-11 21:30:19 -07:00
Endi
b2558ac379
fix: wrong bootstrapped footer social links (#1647) 2019-07-10 23:45:17 +07:00
Endi
a124929b41
chore(v2): upgrade deps (#1646) 2019-07-10 23:15:14 +07:00
Endi
d57110d15c
feat(v2): minor webpack build perf optimization (#1612)
* feat(v2): improve webpack build time

* revert devtool

* nits

* nits

* prettier
2019-07-10 22:12:07 +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
702dba1c81 docs(v2): add README for template 2019-07-05 16:05:29 -07:00
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