Commit Graph

1737 Commits

Author SHA1 Message Date
Wei Gao f2864e0a91
docs(v2): analytics (#1678)
* docs(v2): analytics

* docs(v2): rework analytics docs

* fix broken link
2019-07-23 14:31:59 +08:00
Yangshun Tay a684806a0f fix(v2): do not reveal environment file path (#1692)
* fix(v2): do not reveal environment file path

* changelog

* fix broken markdown linking
2019-07-23 13:12:21 +07:00
Endi 84b2270039
feat(v2): allow custom heading component (#1687)
* feat(v2): allow custom heading component

* changelog
2019-07-23 12:13:47 +07:00
Endi 6287739bec feat(v2): shorter chunk naming for pages (#1688)
* refactor(v2): dont show absolute path for pages chunk/source naming

* test n changelog
2019-07-22 15:53:29 -07:00
Leo Lamprecht f1a504e813 docs: suggest ZEIT Now for quick deployment of 2.0 (#1691)
* Suggest quick deployments for Docusaurus 2.0

* Sub heading

* Sub heading

* Sub heading

* Sub heading

* Update getting-started-publishing.md

* Update getting-started-publishing.md

* Update getting-started-publishing.md

* Update getting-started-publishing.md

* Update deployment.md

* Added to auto-deploy section

* Added to auto-deploy section

* Added to auto-deploy section

* Added to auto-deploy section

* Mention Git integration

* Update deployment.md

* Update deployment.md
2019-07-22 13:55:00 -07:00
Leo Lamprecht 96a970e5bf docs: suggest ZEIT Now for quick deployment (#1690)
* Suggest ZEIT Now for quick deployment

* Simpler heading

* Added 1.10.x

* Added 1.12.0

* Adedd 1.9.x
2019-07-22 10:55:53 -07:00
Endi 55ef751f26 feat(v2): use contenthash instead of chunkhash for longterm caching (#1686)
* feat(v2): use contenthash instead of chunkhash for longterm caching

* changelog
2019-07-21 10:11:39 -07:00
Endi 779c847a86
chore: disable low % translated language and fold docs <= 1.9.x (#1685)
* disable low % translated language and fold docs <= 1.9.x

* tweak

* tweak
2019-07-21 15:23:35 +07:00
Chen Hui Jing bd72aacfe8 fix: content aligning breaks at IE11 (#1684) 2019-07-20 21:48:34 -07:00
endiliey f37269aaad v2.0.0-alpha.23 2019-07-21 11:18:03 +07:00
Endi 71283dc7df
fix(v2): docusaurus route config generation for empty path (#1683)
* fix(v2): route config does not acceptempty string

* test snapshot

* add test

* changelog
2019-07-21 11:14:14 +07:00
Wei Gao 2a1eb365fd
docs(v2): SEO (#1677)
* docs(v2): SEO

* docs(v2): add section on customized SEO

* remove unnecessary comment

* docs(v2): separate SEO doc and fix typos
2019-07-21 00:03:05 +08:00
endiliey ae620cd530 v2.0.0-alpha.22 2019-07-20 18:31:41 +07:00
Yangshun Tay 6f0d858b4f chore(v2): shift v2 CHANGELOG and update classic template (#1682)
* chore(v2): shift v2 CHANGELOG and update classic template

* changelog
2019-07-20 18:08:25 +07:00
陈杨文 ff105bf774 feat(v2): add support for front matter id in blog (#1666) 2019-07-20 03:40:51 -07:00
Wei Gao 05b28b5520 v1.12.0 (#1679)
* v1.12.0

* Add compare version link for v1.12

* Update version numbers for v1.12

* cut new docs

* changelog
2019-07-20 17:21:47 +07:00
Endi 1f0f3e130b
feat(v2): ️ faster and lighter bundle size (optimization) (#1681)
* feat(v2):️  fasterr and lighter bundle size optimization

* lint

* nits
2019-07-20 16:55:24 +07:00
Endi 7f5c1ef581
refactor(v2): use forked lqip-loader for performance (#1680) 2019-07-20 15:23:01 +07:00
Sakti Kr Chourasia 1a5aed404e feat(v2): autoprefix css (#1605)
* docs: make navbar less cluttered

* misc(v2): rename components (#1434)

* misc(v2): clean up work

* misc(v2): rename components

* misc(v2): rename Blog components

* refactor(v2): remove page plugin component

* chore(v2): optimize webpack config

* 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

* fix(v2): add missing layout alias on theme-classic plugin

* feat(v2): easier plugin theme components swizzling (#1436)

* feat(v2): easier plugin theme components override

* add context

* refactor again

* rename eject -> swizzle

* nits

* fix(v2-cli): passes the missing host option to start (#1439)

* 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

* refactor(v2): move headerLinks -> themeConfig & rm dead code (#1442)

* refactor(v2): move headerLinks -> themeConfig & rm dead code

* rm -rf dead code

* chore(v2): better chunk naming

* refactor(v2): add flowtype + refactor test (#1443)

* chore(v2): add flow setup

* nits

* fix

* add flow-typed

* ignore compiled library

* fix error

* fix typing

* fix module name mapper

* setup for @docusaurus/core

* dont try remove type without @flow

* fix can't find @docusaurus/utils

* fix test

* remove obscure relative paths

* more refactoring

* add typing for server/load/theme.js

* no need to ship .flow source

* chore(v2): rm flowtype (#1444)

* chore(v2): tweak eslint config (#1445)

* chore: point website-1.x to correct version so that it can pick latest code

* 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

* fix(v2): docsearch a11y issue (#1449)

* 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

* fix(v2): transpiling, window scroll and console error (#1452)

* chore(v2): better error message style (#1454)

* chore(v2): remove docsearch a11y workaround

* fix(v2): slugify tags

* feat(v2): blog tags (#1453)

* feat(v2): blog tags

* feat(v2): blog tags

* chore(v2): use remark-slug so that rightToc can benefit from it

* fix: right TOC should not strip special chars (#1458)

* fix: right TOC should not strip special chars

* nits

*  fix(v2): handle non existent blog, docs, pages (#1459)

* fix(v2): handle non existent blog, docs, pages

* nits

* feat(v2): list blog tags on posts (#1456)

* feat(v2): list blog tags on posts

* fix date handling on blog header

* fix console log error due to non unique key

* test(v2): test different type of sidebar item

* chore(v2): fix typo

* v2.0.0-alpha.14

* fix(v2): fix wrong dependency problem (#1460)

* v2.0.0-alpha.15

* Chore(v2): use alias instead of relative path for blogpost

* 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

* chore(v2): update dependencies (#1462)

* chore(v2): update dependencies

* nits

* v2.0.0-alpha.16

* fix(v2): fix cannot import css from node_modules in userland (#1463)

* docs: showcase user Express Validator (#1464)

* docs: sort user with alphabetical (#1465)

* chore: fix typo (#1466)

* docs: showcase user tipsi-stripe (#1423)

* docs: make it clear in the tutorial where the `docs` folder is (#1468)

* Make it clear where the `docs` folder is

It was not clear, to the beginner user—who this tutorial is for—where the `docs` folder was . The only reason I know this is because I'm a beginner user and I tried for too many minutes to find the `docs` folder inside the `website` folder. I had this assumption because the previous example is offered under the assumption that you're in the `website` folder.

Feel free to change the wording, I just want to make it clear where you should be looking, if you're new.

* Update tutorial-create-pages.md

* docs: add hint for linking dependencies time (#1470)

In this tutorial we assume that the user may or may not have used Node.js. It would follow then, based on how long it takes the "Linking dependencies" step to complete—243.61s for me—that we give them a hint that it might take a minute.

* doc: mention HTTPS approach in tutorial git clone step (#1471)

* doc: change tutorial git to suggest HTTPS

Since we're instructing the user to create a new repository, it might be a safe bet to assume that they don't have their SSH keys set up. HTTPS might be a better option in this context.

* docs: keep ssh add https

@Hongarc said, "How about keep `SSH` and add `HTTPS`." This is one way to do that.

* Update tutorial-setup.md

* docs: normalized spelling of `web server` (#1473)

* docs: clarify location of sidebars.json (#1472)

In #1468 we clarify where the `docs` folder is. 
Here, we make it clear where `sidebars.json` is.

* fix: missing cli commands (#1478)

* fix: missing cli commands

* centralize

* feat(v2): move navbar config into themeConfig (#1477)

* feat(v2): move navbar config into themeConfig

* misc: fix tests

* fix: support external url for logo

* 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

* fix(v2): should be able to build even if static folder doesnt exist (#1479)

* chore: remove noWatch cli options because you cant disable watch in wds (#1480)

* docs: update StreamPipes logo (#1481)

* docs: showcase user Ax (#1483)

* docs: remove pinned for Taro (#1482)

* docs: fix typo for `docs` folder (#1484)

* docs: fix typo for `docs` folder

* docs: request change for #1484

* Update api-doc-markdown.md

* docs: add some showcase user of `facebook` (#1486)

* docs: showcase user Idb

* docs: showcase user Netconsd

* docs: showcase user Redex

* added autoprefixer code with postcss loader

* removed unused changes

* added correct importloader and removed unused packages and conf
2019-07-19 19:00:10 -07:00
Endi 2d6aaea069 feat(v2): allow custom syntax highlighting theme (#1674) 2019-07-18 11:19:00 -07:00
Endi 0daed4abec feat(v2): optimize dev by omiting production only plugins (#1673) 2019-07-18 11:18:03 -07:00
Endi 381dd75105
feat(v2): better twitter preview meta tag (#1676)
* fix(v2): remove unwanted scale zoom due to initial-scale meta tag

* use summary meta
2019-07-19 01:06:59 +07:00
Endi 52e67a1c35
chore(v2): fix landing page avatar (#1675) 2019-07-19 00:12:18 +07:00
Endi e1eea7b493
fix: dont render html for meta description (#1672) 2019-07-18 18:20:04 +07:00
Ömer Faruk APLAK 682b6af47d docs: add users moleculerjs boilerplate and nextjs boilerplate (#1667)
* add moleculerjs and nextjs boilerplate

* add missing comma on users.js
2019-07-17 23:55:23 -07:00
Wei Gao 40cf5dcc56 docs(v2): subcategories (#1670)
* docs(v2): subcategories

* fix a typo and move call for pr to a comment till new side bar is implemented
2019-07-17 23:46:54 -07:00
Endi 96d6369985
chore(v1.v2): upgrade a lot of packages deps (#1668)
* chore(v2): upgrade a lot of v2 packages deps

* chore(v1): upgrade a lot of v1 packages deps
2019-07-17 22:59:13 +07:00
Endi b34ad721e4
feat(v2): @docusaurus/plugin-ideal-image (#1665)
* chore(v2): tweak image opt before moving to docusaurus-plugin-image

* lint

* feat(v2): convert to docusaurus-plugin-ideal-image

* tweak

* dont need many img

* fix dev err

* tweak

* opt png

* lower qual
2019-07-17 21:53:40 +08:00
Masafumi Koba d77f5538c2 fix: fix PostCSS warning on `build` command (#1664)
The warning is produced on `cssnano` call. See below:

> Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.

Reproduction:

```shell
mkdir work
cd work
npx docusaurus-init
cd website
yarn install
yarn run build
```

Environments:

- Node: 12.6.0
- Yarn: 1.17.3
2019-07-15 18:08:06 +08:00
Endi bc5bceeb87 feat(v2): optimize image processing with sharp & lqip (#1663)
* feat(v2): optimize image processing

* cleanup
2019-07-14 11:28:16 -07:00
Endi f77e96d28d fix(v2): missing deps from preset-classic (#1662)
* fix(v2): missing deps from preset-classic

* nits

* changelog

* Update CHANGELOG.md
2019-07-14 08:24:54 -07:00
endiliey dc15a51745 v2.0.0-alpha.21 2019-07-14 18:54:53 +07:00
Endi e3c0803c0a
fix(v2): Fix babel-loader not transpiling docusaurus package (#1661) 2019-07-14 18:40:20 +07:00
endiliey ea19b35e90 docs(v2): better install docs 2019-07-14 17:58:25 +07:00
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 281f02279f
feat(v2): add showcase page (#1660)
* feat(v2): add showcase page

* misc(v2): shift users out of pages to prevent it from being treated as a page

* misc(v2): update title
2019-07-13 21:44:40 -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
Hongarc 9266dda072 docs: showcase user Almond (#1659) 2019-07-13 17:37:15 -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
endiliey 44beeeaaee chore: fix deploy v1 website error 2019-07-13 20:54:37 +07:00
Endi 811cd9137e
chore: move bitcoin-s image logo to correct site (#1654)
* chore: move bitcoin logo to correct place

* optimize img
2019-07-13 20:22:44 +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
Anurag Goel ee2050d612 docs: add Render hosting guide (#1615)
* Add Render deployment guide

* Add guide for Docusaurus 2

* Update guide for v2
2019-07-12 09:58:23 -07: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
Danny Hurlburt 684a2461bd docs: Fix Rendering of <AUTOGENERATED_TABLE_OF_CONTENTS> Tag on API - Markdown Features Page (#1617) 2019-07-12 23:32:52 +08:00