Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5238 removing blog from Docusaurus #5239

Merged
merged 7 commits into from
Oct 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 0 additions & 49 deletions website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ my-docusaurus/
doc-2.md
doc-3.md
website/
blog/
2016-3-11-oldest-post.md
2017-10-24-newest-post.md
core/
node_modules/
pages/
Expand Down Expand Up @@ -67,22 +64,6 @@ Edit me...

For more information about docs, click [here](https://docusaurus.io/docs/en/navigation)

## Editing an existing blog post

Edit blog posts by navigating to `website/blog` and editing the corresponding post:

`website/blog/post-to-be-edited.md`
```markdown
---
id: post-needs-edit
title: This Blog Post Needs To Be Edited
---

Edit me...
```

For more information about blog posts, click [here](https://docusaurus.io/docs/en/adding-blog)

# Adding Content

## Adding a new docs page to an existing sidebar
Expand Down Expand Up @@ -116,36 +97,6 @@ My new content here..

For more information about adding new docs, click [here](https://docusaurus.io/docs/en/navigation)

## Adding a new blog post

1. Make sure there is a header link to your blog in `website/siteConfig.js`:

`website/siteConfig.js`
```javascript
headerLinks: [
...
{ blog: true, label: 'Blog' },
...
]
```

2. Create the blog post with the format `YYYY-MM-DD-My-Blog-Post-Title.md` in `website/blog`:

`website/blog/2018-05-21-New-Blog-Post.md`

```markdown
---
author: Frank Li
authorURL: https://twitter.com/foobarbaz
authorFBID: 503283835
title: New Blog Post
---

Lorem Ipsum...
```

For more information about blog posts, click [here](https://docusaurus.io/docs/en/adding-blog)

## Adding items to your site's top navigation bar

1. Add links to docs, custom pages or external links by editing the headerLinks field of `website/siteConfig.js`:
Expand Down
18 changes: 0 additions & 18 deletions website/blog/2016-03-11-blog-post.md

This file was deleted.

18 changes: 0 additions & 18 deletions website/blog/2017-04-10-blog-post-two.md

This file was deleted.

11 changes: 0 additions & 11 deletions website/blog/2017-09-25-testing-rss.md

This file was deleted.

10 changes: 0 additions & 10 deletions website/blog/2017-09-26-adding-rss.md

This file was deleted.

8 changes: 0 additions & 8 deletions website/blog/2017-10-24-new-version-1.0.0.md

This file was deleted.

1 change: 0 additions & 1 deletion website/core/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ class Footer extends React.Component {
</div>
<div>
<h5>More</h5>
<a href={`${this.props.config.baseUrl}blog`}>Blog</a>
<a href="https://github.com/">GitHub</a>
<a
className="github-button"
Expand Down
3 changes: 1 addition & 2 deletions website/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"links": {
"Docs": "Docs",
"API": "API",
"Help": "Help",
"Blog": "Blog"
"Help": "Help"
},
"categories": {
"Docusaurus": "Docusaurus",
Expand Down
1 change: 0 additions & 1 deletion website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const siteConfig = {
{doc: 'doc1', label: 'Docs'},
{doc: 'doc4', label: 'API'},
{page: 'help', label: 'Help'},
{blog: true, label: 'Blog'},
],

// If you have users set above, you add it here:
Expand Down