Skip to content

Commit

Permalink
fix: docusaurus config (#1)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
vojtechsimetka authored Feb 4, 2021
1 parent c78565e commit 822f6fe
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/introduction.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
id: introduction
slug: /
title: Welcome!
---

Expand Down
4 changes: 1 addition & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
onBrokenLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'Swarm', // Usually your GitHub org/user name.
projectName: 'bee', // Usually your repo name.
projectName: 'bee-js-docs', // Usually your repo name.
themeConfig: {
colourMode: {
defaultMode: 'dark'
Expand Down Expand Up @@ -110,8 +110,6 @@ module.exports = {
'@docusaurus/preset-classic',
{
docs: {
// It is recommended to set document id as docs home page (`docs/` path).
homePageId: 'introduction',
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
Expand Down
22 changes: 21 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
{
"name": "bee-docusaurus-v-2",
"name": "bee-js-docs",
"version": "0.0.0",
"private": true,
"description": "Documentation for bee-js library",
"keywords": [
"Bee",
"Swarm",
"Decentralised Storage",
"Documentation"
],
"homepage": "https://github.com/ethersphere/bee-js-docs",
"bugs": {
"url": "https://github.com/ethersphere/bee-js-docs/issues/"
},
"license": "BSD-3-Clause",
"repository": {
"type": "git",
"url": "https://github.com/ethersphere/bee-js-docs.git"
},
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
Expand Down Expand Up @@ -30,5 +46,9 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"engines": {
"node": ">=14.0.0",
"npm": ">=6.0.0"
}
}
3 changes: 3 additions & 0 deletions src/theme/SearchBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const Search = props => {
const { siteConfig = {} } = useDocusaurusContext();
const { baseUrl } = siteConfig;
const initAlgolia = (searchDocs, searchIndex, DocSearch) => {
if(searchDocs.length === 0) {
return;
}
new DocSearch({
searchDocs,
searchIndex,
Expand Down
Binary file added static/img/favicon.ico
Binary file not shown.

0 comments on commit 822f6fe

Please sign in to comment.