Skip to content

Commit 822f6fe

Browse files
fix: docusaurus config (#1)
* fix: config * fix: typeerror in development * fix: added favicon * fix: projectName * chore: added missing package.json info * fix: changed url from swarm gateway to ethswarm subdomain * chore: renamed repo to bee-js-docs
1 parent c78565e commit 822f6fe

File tree

5 files changed

+26
-4
lines changed

5 files changed

+26
-4
lines changed

docs/introduction.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
id: introduction
3+
slug: /
34
title: Welcome!
45
---
56

docusaurus.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
onBrokenLinks: 'warn',
99
favicon: 'img/favicon.ico',
1010
organizationName: 'Swarm', // Usually your GitHub org/user name.
11-
projectName: 'bee', // Usually your repo name.
11+
projectName: 'bee-js-docs', // Usually your repo name.
1212
themeConfig: {
1313
colourMode: {
1414
defaultMode: 'dark'
@@ -110,8 +110,6 @@ module.exports = {
110110
'@docusaurus/preset-classic',
111111
{
112112
docs: {
113-
// It is recommended to set document id as docs home page (`docs/` path).
114-
homePageId: 'introduction',
115113
sidebarPath: require.resolve('./sidebars.js'),
116114
// Please change this to your repo.
117115
editUrl:

package.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
{
2-
"name": "bee-docusaurus-v-2",
2+
"name": "bee-js-docs",
33
"version": "0.0.0",
44
"private": true,
5+
"description": "Documentation for bee-js library",
6+
"keywords": [
7+
"Bee",
8+
"Swarm",
9+
"Decentralised Storage",
10+
"Documentation"
11+
],
12+
"homepage": "https://github.com/ethersphere/bee-js-docs",
13+
"bugs": {
14+
"url": "https://github.com/ethersphere/bee-js-docs/issues/"
15+
},
16+
"license": "BSD-3-Clause",
17+
"repository": {
18+
"type": "git",
19+
"url": "https://github.com/ethersphere/bee-js-docs.git"
20+
},
521
"scripts": {
622
"docusaurus": "docusaurus",
723
"start": "docusaurus start",
@@ -30,5 +46,9 @@
3046
"last 1 firefox version",
3147
"last 1 safari version"
3248
]
49+
},
50+
"engines": {
51+
"node": ">=14.0.0",
52+
"npm": ">=6.0.0"
3353
}
3454
}

src/theme/SearchBar/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ const Search = props => {
1616
const { siteConfig = {} } = useDocusaurusContext();
1717
const { baseUrl } = siteConfig;
1818
const initAlgolia = (searchDocs, searchIndex, DocSearch) => {
19+
if(searchDocs.length === 0) {
20+
return;
21+
}
1922
new DocSearch({
2023
searchDocs,
2124
searchIndex,

static/img/favicon.ico

14.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)