Commit graph

2682 commits

Author SHA1 Message Date
Yangshun Tay
9692d4e6d7
fix(v2): only show the Git requirement message for the last update of docs plugin once (#1830) 2019-10-10 22:14:09 -07:00
Yangshun Tay
4fe6ae3c24
feat(v2): docs last update timestamp and author (#1829)
* feat(v2): docs last update timestamp and author

* misc(v2): changelog

* misc(v2): better error messages
2019-10-10 21:45:39 -07:00
Yangshun Tay
54e9e025d8 misc(v2): remove legacy from docs 2019-10-10 19:45:50 -07:00
Yangshun Tay
1c5a6ee244
misc(v2): make playground nicer (#1819)
* misc(v2): make code block nicer

* misc(v2): update changelog for code + playground

* misc(v2): update playground docs
2019-10-10 15:12:17 -07:00
Endi
ae678c9dad feat(v2): add editUrl option to docs plugin (#1818)
* feat(v2): add editUrl option to docs plugin

* nits

* misc(v2): nit

* misc(v2): nit
2019-10-10 11:10:18 -07:00
Yangshun Tay
aba9edc12c
misc(v2): improve docs styles (#1820)
* misc(v2): make doc title larger

* misc(v2): make doc layout better

* misc(v2): update changelog for docs
2019-10-10 10:45:35 -07:00
Yangshun Tay
5eb79b17c3
misc(v2): change blog title size (#1821)
* misc(v2): change blog title size

* misc(v2): change blog title size
2019-10-10 01:25:11 -07:00
Yangshun Tay
17252a079c
feat(v2): make sidebar collapsible (#1817)
* feat(v2): make sidebar collapsible

* fix first page load sidebar category not collapsed

* misc(v2): nit
2019-10-09 08:11:51 -07:00
Endi
e7ba8af6d9
refactor(v2): better docs metadata (#1815) 2019-10-09 12:07:08 +08:00
Yangshun Tay
c4cc7f881b
refactor(v2): add typing for pages plugin (#1813)
* refactor(v2): add typing for pages plugin

* misc: new lines
2019-10-07 22:35:58 -07:00
Endi
95f0552bad feat(v2): allow infinitely nested sidebar (#1812)
* feat(v2): allow infinitely nested sidebar

* Update markdown-features.mdx

* Update sidebar.md

* Update sidebar.md
2019-10-07 11:52:43 -07:00
Endi
1591128cdd
refactor(v2): add typing for docs plugin (#1811)
* refactor(v2): add typing for docs plugin

* nits
2019-10-07 18:28:33 +07:00
endiliey
8d4def5c08 v2.0.0-alpha.25 2019-10-01 20:29:26 +07:00
endiliey
9806b44a6d chore: fix expired discord invite link 2019-09-25 17:05:54 +07:00
Dongwoo Gim
961eb44ab1 refactor(v2): add common typing package @docusaurus/types (#1797)
* add common typing package `@docusaurus/typing-common`
.

* change name to `@docusaurus/types`

* refactor `packages/docusaurus/src/server/types`

* use directly `index.d.ts`
.

* add missing dependency `@docusaurus/types` on `@docusaurus/core`

* add missing dependency `@types/webpack`

* fix mistaken type

* typing package move to dev dependency

* Update package.json

see https://stackoverflow.com/questions/45176661/how-do-i-decide-whether-types-goes-into-dependencies-or-devdependencies
2019-09-25 17:48:56 +08:00
Endi
0397f7b719
chore(v2): upgrade babel, webpack, and mdx (#1798)
* chore: upgrade babel, webpack, and mdx

* changelog
2019-09-24 18:55:07 +08:00
Dongwoo Gim
78159f6dd5 refactor(v2): convert @docusaurus/plugin-content-blog to TypeScript (#1785)
* convert `@docusaurus/plugin-content-blog` to typescript

remove divided plugin
convert `@docusaurus/plugin-content-blog` to typescript
convert `@docusaurus/plugin-content-blog` to typescript
convert `@docusaurus/plugin-content-blog` to typescript
add `packages/docusaurus-plugin-content-blog/lib` to ignores
linted
refactoring type definition
fix test fails
lint

* lint
2019-09-16 23:46:57 +08:00
Yangshun Tay
0584407257
v1.13.0 (#1789) 2019-09-15 23:13:09 -07:00
Shirshendu Bhowmick
0bbf7b8202 refactor(v2): convert SearchBar to hooks (#1755)
* Refactored with Hooks

* refactored for improvements

* Added classnames for conditional CSS rendering
2019-09-14 11:32:46 -07:00
Emelia Smith
250a818e7f feat(v1): strip html from TOC (#1762)
The approach here is to first strip the HTML from the heading's content, then rendered it with markdown to get the HTML content for the TOC entry, then to strip the HTML from the rendered content again, as to get the text for the TOC entry's link.

Adds an additional dependency of striptags (MIT licensed)

Example TOC Entry, given the heading of:

```markdown
```

```javascript
{
  hashLink: 'foo',
  rawContent: '<a name="foo"></a> _Foo_',
  content: '<em>Foo</em>',
  children: []
}
```

Previously this TOC entry would be:

```javascript
{
  hashLink: 'a-name-foo-a-_foo_',
  rawContent: '<a name="foo"></a> _Foo_',
  content: '&lt;a name=&quot;foo&quot;&gt;&lt;/a&gt; <em>Foo</em>',
  children: []
}
```

closes issue #1703
2019-09-13 14:57:22 -07:00
陈杨文
3243e40ca2 feat(v2): blog tags support cjk (#1701) 2019-09-13 14:16:11 -07:00
BlackRedScarf
a16e346c81 fix: footer links margin (#1781)
* fix footer links margin

* Update main.css
2019-09-13 13:11:43 -07:00
Yamagishi Kazutoshi
6c4ce5722e fix(v2): do not escape html and body attributes (#1747)
* fix(v2): do not escape html and body attributes

* Update CHANGELOG-2.x.md
2019-08-07 15:56:31 +07:00
Shirshendu Bhowmick
abc80e9b00 fix(v2): responsive search bar (#1741)
* Fix search bar on smaller devices

* Update packages/docusaurus-theme-search-algolia/src/theme/SearchBar/styles.css

Removed blank line

Co-Authored-By: Endi <endiliey@gmail.com>
2019-08-06 11:49:28 +07:00
Endi
ca3ae5ea96
chore: upgrade deps (#1733) 2019-08-01 19:14:12 +07:00
陈杨文
95ace0e4eb feat(v2): blog support date front matter (#1702)
* feat(v2): blog support date front matter

* feat(v2): blog support date front matter

* feat(v2): blog support date front matter

* feat(v2): blog support date front matter

* Update CHANGELOG-2.x.md
2019-07-27 18:03:14 +07:00
陈杨文
d17a1ea9e3 feat(v2): truncate marker as blog option (#1706)
* feat(v2): allowed more as truncate marker

* feat(v2): blog support truncateMarker option

* feat(v2): blog support truncateMarker option
2019-07-27 16:07:26 +07:00
Endi
7ce6edc1b1
feat(v2): disable optimization.removeAvailableModules for webpack performance (#1711) 2019-07-26 22:42:03 +07:00
Wei Gao
f4f458460c docs(v2) themes (#1645)
* More prep

* rename xxx-api to api-xxx

* move content around for plugins and themes

* wip docs: using themes

* docs(v2): tweak using plugins

* docs(v2): list official themes in docs

* docs(v2): advanced themes

* wip notes for lifecycle apis

* resolve PR review discussions

* lower case "theme"

* better intro for using themes

* add a simple README to @docusaurus/theme-classic

* remove list of components from theme classic README and replace with link to directory
2019-07-26 12:00:40 +07:00
endiliey
41126fed12 v2.0.0-alpha.24 2019-07-24 15:55:28 +07:00
Endi
8b60e93bcb
refactor(v2): remove unused metadata for pages (#1694)
* refactor(v2): remove unused metadata for pages

* changelog
2019-07-23 23:23:21 +07:00
Endi
1c59b5bc1c
chore(v2): upgrade deps and add missing docs on docusaurus config (#1693)
* chore(v2): upgrade deps and add missing docs on docusaurus config

* review
2019-07-23 23:06:15 +07: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
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
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
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
e1eea7b493
fix: dont render html for meta description (#1672) 2019-07-18 18:20:04 +07:00