Commit Graph

55 Commits

Author SHA1 Message Date
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
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
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
endiliey 41126fed12 v2.0.0-alpha.24 2019-07-24 15:55:28 +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
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
endiliey 1fecdb7d02 v2.0.0-alpha.19 2019-06-07 00:52:48 +08: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
endiliey e873c14918 v2.0.0-alpha.16 2019-05-16 16:01:52 +08:00
Endi e31bf50545
chore(v2): update dependencies (#1462)
* chore(v2): update dependencies

* nits
2019-05-16 14:33:32 +07:00
endiliey 86a1c3a1b1 v2.0.0-alpha.15 2019-05-15 21:56:12 +08:00
Endi 4a30bf8947
fix(v2): fix wrong dependency problem (#1460) 2019-05-15 20:54:41 +07:00
endiliey 8055d59131 v2.0.0-alpha.14 2019-05-15 19:37:46 +08:00
Yangshun Tay ba6724281e fix(v2): slugify tags 2019-05-13 21:31:12 -07:00
Yangshun Tay 23b50f17a1
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
2019-05-13 00:16:15 -07:00
Endi 6136fbe1d2
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
2019-05-10 22:37:56 +07:00
Yangshun Tay eedd4c481c 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
2019-05-06 19:25:04 +07:00
endiliey 76d210f1f1 v2.0.0-alpha.13 2019-05-01 21:27:50 +08:00
endiliey fbe2fb879f fix(v2): plugin-content-blog should have mdx-loader as dependency 2019-04-30 16:42:36 +08:00
endiliey 86c24e9cf5 v2.0.0-alpha.12 2019-04-30 16:19:26 +08:00
endiliey 7339bfea35 v2.0.0-alpha.11 2019-04-25 23:02:15 +08:00
Yangshun Tay 33a341e8c0 v2.0.0-alpha.10 2019-04-23 22:03:49 -07:00
Yangshun Tay c50463fed4 v2.0.0-alpha.9 2019-04-23 22:02:29 -07:00
Yangshun Tay f8c2f472c8 v2.0.0-alpha.8 2019-04-23 21:49:43 -07:00
endiliey 1ce4195f14 v2.0.0-alpha.7 2019-04-16 22:38:11 +08:00
endiliey d097f73285 v2.0.0-alpha.6 2019-04-14 01:07:24 +08:00
Yangshun Tay b4bfa084f1 v2.0.0-alpha.5 2019-04-10 13:26:45 -07:00
Yangshun Tay 2fe7d4c3b8 v2.0.0-alpha.4 2019-04-10 13:19:10 -07:00
Yangshun Tay 3ce215eb20 v2.0.0-alpha.3 2019-04-10 13:17:26 -07:00
Yangshun Tay d80e0e5d83 v2.0.0-alpha.2 2019-04-10 13:05:24 -07:00
endiliey a4fc63fbff v2.0.0-alpha.1 2019-04-11 00:56:40 +08:00
endiliey 2a37bbf84a v2.0.0-alpha.0 2019-04-10 22:35:17 +08:00
endiliey 3f09957045 chore: fix scoped packages publish error 2019-04-10 22:21:35 +08:00
Endilie Yacop Sucipto 6e9b85fe43 feat(v2): upgrade addRoutes API to introduce query (#1345)
* feat(v2): upgrade addRoutes API to enable query

* nits
2019-04-08 11:33:40 -07:00
Yangshun Tay a70d9b6720
feat(v2): docs plugin initial work (#1327)
* feat(v2): pluginify docs

* feat(v2): implement docs plugin

* fix(v2): fix bugs in docs plugin for translation and versioning
2019-03-31 11:37:35 -07:00