File tree Expand file tree Collapse file tree 5 files changed +26
-4
lines changed Expand file tree Collapse file tree 5 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
id : introduction
3
+ slug : /
3
4
title : Welcome!
4
5
---
5
6
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ module.exports = {
8
8
onBrokenLinks : 'warn' ,
9
9
favicon : 'img/favicon.ico' ,
10
10
organizationName : 'Swarm' , // Usually your GitHub org/user name.
11
- projectName : 'bee' , // Usually your repo name.
11
+ projectName : 'bee-js-docs ' , // Usually your repo name.
12
12
themeConfig : {
13
13
colourMode : {
14
14
defaultMode : 'dark'
@@ -110,8 +110,6 @@ module.exports = {
110
110
'@docusaurus/preset-classic' ,
111
111
{
112
112
docs : {
113
- // It is recommended to set document id as docs home page (`docs/` path).
114
- homePageId : 'introduction' ,
115
113
sidebarPath : require . resolve ( './sidebars.js' ) ,
116
114
// Please change this to your repo.
117
115
editUrl :
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " bee-docusaurus-v-2 " ,
2
+ "name" : " bee-js-docs " ,
3
3
"version" : " 0.0.0" ,
4
4
"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
+ },
5
21
"scripts" : {
6
22
"docusaurus" : " docusaurus" ,
7
23
"start" : " docusaurus start" ,
30
46
" last 1 firefox version" ,
31
47
" last 1 safari version"
32
48
]
49
+ },
50
+ "engines" : {
51
+ "node" : " >=14.0.0" ,
52
+ "npm" : " >=6.0.0"
33
53
}
34
54
}
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ const Search = props => {
16
16
const { siteConfig = { } } = useDocusaurusContext ( ) ;
17
17
const { baseUrl } = siteConfig ;
18
18
const initAlgolia = ( searchDocs , searchIndex , DocSearch ) => {
19
+ if ( searchDocs . length === 0 ) {
20
+ return ;
21
+ }
19
22
new DocSearch ( {
20
23
searchDocs,
21
24
searchIndex,
You can’t perform that action at this time.
0 commit comments