docusaurus/website/docs
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
..
advanced-plugins.md feat(v2): Implement plugin creating feed for blog posts (#1916) 2019-11-06 14:45:31 +07:00
advanced-themes.md docs(v2): code block line highlighting (#1904) 2019-10-29 14:59:24 +08:00
analytics.md chore(v2): typos (#1726) 2019-07-29 19:13:59 -07:00
blog.md feat(v2): Implement plugin creating feed for blog posts (#1916) 2019-11-06 14:45:31 +07:00
cli.md feat(v2): add ability disable to open page in browser when start command (#1856) 2019-10-19 11:17:34 +07:00
configuration.md docs(v2): theme, plugin, and preset config (#1929) 2019-11-03 17:59:39 +08:00
contributing.md misc(v2): docs updates 2019-10-12 12:02:16 -07:00
creating-pages.md docs(v2): proofread docs for alpha.20 (#1658) 2019-07-13 19:21:39 -07:00
deployment.md docs(v2): add windows batch instructions for publishing to gh pages (#1914) 2019-10-29 23:49:01 +07:00
design-principles.md misc(v2): docs updates 2019-10-12 12:02:16 -07:00
docusaurus-core.md docs(v2): Redirect component for easy redirect (#1913) 2019-10-30 10:19:30 +07:00
docusaurus.config.js.md docs(v2): update config docs (#1885) 2019-10-25 23:35:02 +07:00
installation.md docs(v2): fix typos (#1930) 2019-11-02 08:12:04 +08:00
introduction.md feat(v2): optimize dev by omiting production only plugins (#1673) 2019-07-18 11:18:03 -07:00
lifecycle-apis.md docs(v2): code block line highlighting (#1904) 2019-10-29 14:59:24 +08:00
markdown-features.mdx feat(v2): add ability default lang for code blocks (#1910) 2019-11-05 10:36:22 +03:00
migrating-from-v1-to-v2.md chore(v2): changelog 2019-11-04 12:56:10 +07:00
presets.md docs(v2): fix typos (#1930) 2019-11-02 08:12:04 +08:00
search.md fix(v2): custom searchbar should appear even if themeconfig.algolia is undefined (#1909) 2019-10-30 08:51:53 +08:00
seo.md fix(v2): keywords frontmatter should work properly (#1840) 2019-10-15 10:57:08 +07:00
sidebar.md docs(v2): code block line highlighting (#1904) 2019-10-29 14:59:24 +08:00
static-assets.md feat(v2): polyfill automatically depending on browserslist (#1857) 2019-10-21 11:09:16 +07:00
styling-layout.md docs(v2): code block line highlighting (#1904) 2019-10-29 14:59:24 +08:00
theme-classic.md feat(v2): add ability default lang for code blocks (#1910) 2019-11-05 10:36:22 +03:00
using-plugins.md docs(v2): code block line highlighting (#1904) 2019-10-29 14:59:24 +08:00
using-themes.md docs(v2): code block line highlighting (#1904) 2019-10-29 14:59:24 +08:00