Commit graph

99 commits

Author SHA1 Message Date
Endi
c45a2c649f fix(v2): metadata error if markdown does not have line break (#2095) 2019-12-06 00:14:44 -08:00
endiliey
3bb251904b v2.0.0-alpha.38 2019-12-06 14:15:48 +07:00
Endi
7f8aca2ddc
perf(v2): smaller bundlesize by embedding metadata to content (#2088)
* wip embed metadata to content

* embed metadata in blog as well

* refactor

* update test

* yarn lock

* avoid overwriting file everytime we run new nodejs process

* nits
2019-12-06 12:34:21 +07:00
endiliey
464d8e529a v2.0.0-alpha.37 2019-12-01 20:29:59 +07:00
Alexey Pyltsyn
3caff0d221 feat(v2): add meta RSS/Atom feed links to head (#2000)
Co-authored-by: Endi <endiliey@gmail.com>

* feat(v2): add meta RSS/Atom feed links to head

* refactor(v2): use new API

* Better typing

* fix typing
2019-11-30 23:05:53 +07:00
Endi
2297ae9f57
refactor(v2): stronger typing for blog plugin (#2072)
* refactor(v2): stronger typing for blog plugin

* Explicit
2019-11-30 22:26:28 +07:00
endiliey
bd5bdb91f7 chore: add missing facebook copyright header 2019-11-27 16:50:20 +07:00
Endi
421f862701 breaking(v2): required nodejs version >=8.9 -> >=8.10 so we can use es2017 (#2045) 2019-11-24 21:40:57 -08:00
endiliey
c413cff212 v2.0.0-alpha.36 2019-11-22 12:41:22 +07:00
Yangshun Tay
65965e060a misc(v2): change blog front matter to snake_case (#1989)
* misc(v2): change blog front matter to snake_case

* Fix blog image url

* Add docs for change

* More migration docs
2019-11-19 15:08:53 +07:00
endiliey
6204d9a9ec v2.0.0-alpha.35 2019-11-17 16:51:57 +07:00
Endi
874b0638cd
refactor(v2): simplify blog truncate function (#1968)
* refactor(v2): simplify blog truncate function

* Update packages/docusaurus-plugin-content-blog/src/blogUtils.ts

Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>
2019-11-12 16:25:33 +07:00
endiliey
f1180d0eb6 v2.0.0-alpha.34 2019-11-11 21:35:03 +07:00
Endi
3be2e86546
chore: bump dev dependencies (#1955)
* chore: bump devdeps

* upd infima url
2019-11-11 17:44:26 +07:00
endiliey
e6b077410c v2.0.0-alpha.33 2019-11-08 13:27:03 +07:00
Pawel Kadluczka
ff83e6f8bc feat(v2): Implement plugin creating feed for blog posts (#1916)
* feat(v2): Implement feed for blog posts

Fixes: #1698

Test plan:
- added tests

Ran `yarn build` on website with the following config (and disabled blog
from preset-classic):

```js
[
'@docusaurus/plugin-content-blog',
  {
    path: '../website-1.x/blog',
    feedOptions: {
      copyright: 'Copy',
      type: 'atom',
    },
  },
],
```
which genereted the following feed:
```xml
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <id>https://v2.docusaurus.io/blog</id>
    <title>Docusaurus Blog</title>
    <updated>2018-12-14T00:00:00.000Z</updated>
    <generator>https://github.com/jpmonette/feed</generator>
    <link rel="alternate" href="https://v2.docusaurus.io/blog"/>
    <subtitle>Docusaurus Blog</subtitle>
    <icon>https://v2.docusaurus.io/img/docusaurus.ico</icon>
    <rights>Copy</rights>
    <entry>
        <title type="html"><![CDATA[Happy 1st Birthday Slash!]]></title>
        <id>Happy 1st Birthday Slash!</id>
        <link href="https://v2.docusaurus.io/blog/2018/12/14/Happy-First-Birthday-Slash"/>
        <updated>2018-12-14T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[![First Birthday Slash](/img/docusaurus-slash-first-birthday.svg)]]></summary>
    </entry>
    <entry>
        <title type="html"><![CDATA[Towards Docusaurus 2]]></title>
        <id>Towards Docusaurus 2</id>
        <link href="https://v2.docusaurus.io/blog/2018/09/11/Towards-Docusaurus-2"/>
        <updated>2018-09-11T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Docusaurus was [officially announced](https://docusaurus.io/blog/2017/12/14/introducing-docusaurus) over nine months ago as a way to easily build open source documentation websites. Since then, it has amassed over 8,600 GitHub Stars, and is used by many popular open source projects such as [React Native](https://facebook.github.io/react-native/), [Babel](https://babeljs.io/), [Jest](https://jestjs.io/), [Reason](https://reasonml.github.io/) and [Prettier](https://prettier.io/).]]></summary>
    </entry>
    <entry>
        <title type="html"><![CDATA[How I Converted Profilo to Docusaurus in Under 2 Hours]]></title>
        <id>How I Converted Profilo to Docusaurus in Under 2 Hours</id>
        <link href="https://v2.docusaurus.io/blog/2018/04/30/How-I-Converted-Profilo-To-Docusaurus"/>
        <updated>2018-04-30T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[> _“Joel and I were discussing having a website and how it would have been great to launch with it. So I challenged myself to add Docusaurus support. It took just over an hour and a half. I'm going to send you a PR with the addition so you can take a look and see if you like it. Your workflow for adding docs wouldn't be much different from editing those markdown files.”_]]></summary>
    </entry>
    <entry>
        <title type="html"><![CDATA[Introducing Docusaurus]]></title>
        <id>Introducing Docusaurus</id>
        <link href="https://v2.docusaurus.io/blog/2017/12/14/introducing-docusaurus"/>
        <updated>2017-12-14T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[![Introducing Slash](/img/slash-introducing.svg)]]></summary>
    </entry>
</feed>
```

* new feedOptions type 'all' and use correct path
2019-11-06 14:45:31 +07:00
endiliey
cd9e2f2346 v2.0.0-alpha.32 2019-11-04 12:45:05 +07:00
Endi
2e58e839ee
feat(v2): simplify blog metadata to minimize number of request (#1908)
* feat(v2): simplify blog metadata to minimize number of request

* remove async
2019-10-29 14:50:54 +07:00
endiliey
d4342dcbf3 v2.0.0-alpha.31 2019-10-26 14:12:15 +07:00
endiliey
b65c1b2242 v2.0.0-alpha.30 2019-10-22 12:23:55 +07:00
endiliey
b56adb7ca1 v2.0.0-alpha.29 2019-10-21 19:28:36 +07:00
endiliey
87866c1d1d v2.0.0-alpha.28 2019-10-21 12:28:12 +07:00
Endi
2c1012b9ec fix(v2): do not show plugin data path (#1861)
* fix(v2): do not show plugin data path

* test fix

* nits
2019-10-20 10:58:22 -07:00
endiliey
0cf5a5bf49 v2.0.0-alpha.27 2019-10-14 18:10:32 +07:00
endiliey
d1e426afd8 v2.0.0-alpha.26 2019-10-12 11:53:42 +07:00
endiliey
8d4def5c08 v2.0.0-alpha.25 2019-10-01 20:29:26 +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
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
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
endiliey
41126fed12 v2.0.0-alpha.24 2019-07-24 15:55:28 +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
endiliey
f37269aaad v2.0.0-alpha.23 2019-07-21 11:18:03 +07:00
endiliey
ae620cd530 v2.0.0-alpha.22 2019-07-20 18:31:41 +07:00
陈杨文
ff105bf774 feat(v2): add support for front matter id in blog (#1666) 2019-07-20 03:40:51 -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
endiliey
dc15a51745 v2.0.0-alpha.21 2019-07-14 18:54:53 +07:00
endiliey
307f384684 v2.0.0-alpha.20 2019-07-14 17:36:40 +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
endiliey
1fecdb7d02 v2.0.0-alpha.19 2019-06-07 00:52:48 +08: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
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
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
Hongarc
594ede3bdc chore: remove @types/chalk and @types/globby (#1540)
* chore: remove `@types/chalk` and `@types/globby`

* chore: update `chalk` and `globby`
2019-06-02 19:04:48 +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
Yangshun Tay
09036743b7 misc(v2): fix CSS 2019-05-27 20:39:23 -07:00
Yangshun Tay
b8965dcf38
feat(v2): use new pagination nav CSS (#1520) 2019-05-26 20:19:16 -07:00