Skip to content

Commit 9bd0ab8

Browse files
committed
chore: remove blog feature and related content from Docusaurus configuration
1 parent 336d3ed commit 9bd0ab8

File tree

8 files changed

+2
-174
lines changed

8 files changed

+2
-174
lines changed

blog/2019-05-28-first-blog-post.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

blog/2019-05-29-long-blog-post.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

blog/2021-08-01-mdx-blog-post.mdx

Lines changed: 0 additions & 24 deletions
This file was deleted.
-93.9 KB
Binary file not shown.

blog/2021-08-26-welcome/index.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

blog/authors.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

blog/tags.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

docusaurus.config.js

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// There are various equivalent ways to declare your Docusaurus config.
55
// See: https://docusaurus.io/docs/api/docusaurus-config
66

7-
import {themes as prismThemes} from 'prism-react-renderer';
7+
import { themes as prismThemes } from 'prism-react-renderer';
88

99
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
1010

@@ -53,21 +53,7 @@ const config = {
5353
editUrl:
5454
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
5555
},
56-
blog: {
57-
showReadingTime: true,
58-
feedOptions: {
59-
type: ['rss', 'atom'],
60-
xslt: true,
61-
},
62-
// Please change this to your repo.
63-
// Remove this to remove the "edit this page" links.
64-
editUrl:
65-
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
66-
// Useful options to enforce blogging best practices
67-
onInlineTags: 'warn',
68-
onInlineAuthors: 'warn',
69-
onUntruncatedBlogPosts: 'warn',
70-
},
56+
blog: false, // Disable blog feature
7157
theme: {
7258
customCss: './src/css/custom.css',
7359
},
@@ -93,7 +79,6 @@ const config = {
9379
position: 'left',
9480
label: 'Tutorial',
9581
},
96-
{to: '/blog', label: 'Blog', position: 'left'},
9782
{
9883
href: 'https://github.com/facebook/docusaurus',
9984
label: 'GitHub',
@@ -133,10 +118,6 @@ const config = {
133118
{
134119
title: 'More',
135120
items: [
136-
{
137-
label: 'Blog',
138-
to: '/blog',
139-
},
140121
{
141122
label: 'GitHub',
142123
href: 'https://github.com/facebook/docusaurus',

0 commit comments

Comments
 (0)