diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 63377d641..b00a1f9a8 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -66,205 +66,187 @@ module.exports = { } }, nav: require('./nav/en'), - sidebar: [ - { - title: 'Introduction', - path: '/introduction/', - children: [ - '/introduction/new-to-web3', - '/introduction/what-is-filecoin', - '/introduction/why-filecoin', - '/introduction/ipfs-and-filecoin', - '/introduction/filecoin-compared-to', - '/introduction/faq' - ] - }, - { - title: 'How-tos', - path: '/how-to/', - children: [ - { - title: 'Install Filecoin', - sidebarDepth: 1, - collapsable: false, - children: ['/how-to/install-filecoin', '/how-to/networks'] - }, - { - title: 'Store Data', - sidebarDepth: 1, - collapsable: false, - children: [ - '/how-to/store/prepare-data', - '/how-to/store/tokens', - '/how-to/store/making-storage-deals', - '/how-to/store/retrieving-data', - '/how-to/store/large-files' - ] - } - ] - }, - { - title: 'Mine', - path: '/mine/', - children: [ - '/mine/storage-mining', - '/mine/lotus-seal-worker', - '/mine/setting-a-static-port', - '/mine/connectivity', - '/mine/spacerace', - '/mine/mining-troubleshooting' - ] - }, - { - title: 'Build', - path: '/build/', - children: [ - { - title: 'Start Building', - sidebarDepth: 1, - collapsable: false, - children: ['/build/start-building/interacting-with-the-network'] - }, - { - title: 'Core Products', - sidebarDepth: 1, - collapsable: false, - children: [ - '/build/core-products/filecoin-backed-pinning-services', - '/build/core-products/powergate', - '/build/core-products/protocol-implementations' - ] - }, - { - title: 'Developer Tools', - sidebarDepth: 1, - collapsable: false, - children: [ - '/build/developer-tools/wallets-signing-tools-api-clients', - [ - 'https://github.com/filecoin-project/docs/wiki#community-resources', - 'Filecoin Community Resources' - ], - ['http://filecoin.onrender.com/', 'Component Design System'] - ] - }, - { - title: 'Examples', - sidebarDepth: 1, - collapsable: false, - children: [ - '/build/examples/sample-architectures', - { - title: 'Simple Pinning Service', - sidebarDepth: 2, - collapsable: false, - children: [ - '/build/examples/simple-pinning-service/overview', - '/build/examples/simple-pinning-service/powergate-lotus-go-ipfs-interactions', - '/build/examples/simple-pinning-service/step-1-powergate-setup', - '/build/examples/simple-pinning-service/step-2-react-app-setup', - '/build/examples/simple-pinning-service/step-3-connecting-powergate-to-app', - '/build/examples/simple-pinning-service/step-4-explore-pinning-service-app', - '/build/examples/simple-pinning-service/step-5-shut-down-the-application', - '/build/examples/simple-pinning-service/summary' - ] - }, - { - title: 'Web Applications', - sidebarDepth: 1, - collapsable: false, - children: ['/build/examples/web-applications/overview'] - }, - { - title: 'Network Inspector', - sidebarDepth: 2, - collapsable: false, - children: [ - 'build/examples/network-inspector/overview', - 'build/examples/network-inspector/lotus-and-go-ipfs-interactions', - 'build/examples/network-inspector/step-1-start-lotus-devnet-and-go-ipfs', - 'build/examples/network-inspector/step-2-run-the-react-app', - 'build/examples/network-inspector/step-3-set-up-the-lotus-and-go-ipfs-api-clients', - 'build/examples/network-inspector/step-4-explore-the-filecoin-network-inspector-app', - 'build/examples/network-inspector/step-5-shut-down-the-application', - 'build/examples/network-inspector/summary' - ] - }, - { - title: 'Meme Marketplace', - sidebarDepth: 2, - collapsable: false, - children: [ - 'build/examples/meme-marketplace/overview', - 'build/examples/meme-marketplace/textile-hub-buckets-and-erc721', - 'build/examples/meme-marketplace/step-1-blockchain-and-contracts-setup', - 'build/examples/meme-marketplace/step-2-run-react-app', - 'build/examples/meme-marketplace/step-3-run-hub-auth-server', - 'build/examples/meme-marketplace/step-4-connecting-app-with-auth-server', - 'build/examples/meme-marketplace/step-5-connecting-app-with-blockchain', - 'build/examples/meme-marketplace/step-6-explore-app', - 'build/examples/meme-marketplace/step-7-shut-down-the-application', - 'build/examples/meme-marketplace/summary' - ] - } + sidebar: { + '/mine/': [ + '/mine/storage-mining', + '/mine/lotus-seal-worker', + '/mine/setting-a-static-port', + '/mine/connectivity', + '/mine/spacerace', + '/mine/mining-troubleshooting' + ], + '/build/': [ + { + title: 'Start Building', + collapsable: false, + path: '/build/start-building/interacting-with-the-network/', + children: ['start-building/interacting-with-the-network'] + }, + { + title: 'Core Products', + collapsable: false, + path: '/build/core-products/filecoin-backed-pinning-services/', + children: [ + 'core-products/filecoin-backed-pinning-services', + 'core-products/powergate', + 'core-products/protocol-implementations' + ] + }, + { + title: 'Developer Tools', + collapsable: false, + path: '/build/developer-tools/wallets-signing-tools-api-clients/', + children: [ + 'developer-tools/wallets-signing-tools-api-clients', + [ + 'https://github.com/filecoin-project/docs/wiki#community-resources', + 'Filecoin Community Resources' + ], + ['http://filecoin.onrender.com/', 'Component Design System'] + ] + }, + { + title: 'Example Apps', + sidebarDepth: 2, + path: '/build/examples/sample-architectures/', + collapsable: false, + children: [ + 'examples/sample-architectures', + ['examples/web-applications/overview', 'Web Applications'], + { + title: 'Simple Pinning Service', + path: '/build/examples/simple-pinning-service/overview/', + children: [ + '/build/examples/simple-pinning-service/powergate-lotus-go-ipfs-interactions', + '/build/examples/simple-pinning-service/step-1-powergate-setup', + '/build/examples/simple-pinning-service/step-2-react-app-setup', + '/build/examples/simple-pinning-service/step-3-connecting-powergate-to-app', + '/build/examples/simple-pinning-service/step-4-explore-pinning-service-app', + '/build/examples/simple-pinning-service/step-5-shut-down-the-application', + '/build/examples/simple-pinning-service/summary' + ] + }, + { + title: 'Network Inspector', + path: '/build/examples/network-inspector/overview/', + children: [ + '/build/examples/network-inspector/lotus-and-go-ipfs-interactions', + '/build/examples/network-inspector/step-1-start-lotus-devnet-and-go-ipfs', + '/build/examples/network-inspector/step-2-run-the-react-app', + '/build/examples/network-inspector/step-3-set-up-the-lotus-and-go-ipfs-api-clients', + '/build/examples/network-inspector/step-4-explore-the-filecoin-network-inspector-app', + '/build/examples/network-inspector/step-5-shut-down-the-application', + '/build/examples/network-inspector/summary' + ] + }, + { + title: 'Meme Marketplace', + path: '/build/examples/meme-marketplace/overview/', + children: [ + '/build/examples/meme-marketplace/textile-hub-buckets-and-erc721', + '/build/examples/meme-marketplace/step-1-blockchain-and-contracts-setup', + '/build/examples/meme-marketplace/step-2-run-react-app', + '/build/examples/meme-marketplace/step-3-run-hub-auth-server', + '/build/examples/meme-marketplace/step-4-connecting-app-with-auth-server', + '/build/examples/meme-marketplace/step-5-connecting-app-with-blockchain', + '/build/examples/meme-marketplace/step-6-explore-app', + '/build/examples/meme-marketplace/step-7-shut-down-the-application', + '/build/examples/meme-marketplace/summary' + ] + } + ] + } + ], + '/reference/': [ + 'glossary', + ['https://github.com/filecoin-project/specs', 'Specification'], + ['https://lotu.sh/', 'Lotus tutorial'] + ], + '/': [ + { + title: 'Introduction', + path: '/introduction/', + collapsable: false, + children: [ + '/introduction/new-to-web3', + '/introduction/what-is-filecoin', + '/introduction/why-filecoin', + '/introduction/ipfs-and-filecoin', + '/introduction/filecoin-compared-to', + '/introduction/faq' + ] + }, + { + title: 'How-tos', + path: '/how-to/', + collapsable: false, + children: [ + { + title: 'Install Filecoin', + sidebarDepth: 1, + collapsable: false, + children: ['/how-to/install-filecoin', '/how-to/networks'] + }, + { + title: 'Store Data', + collapsable: false, + path: '/how-to/store/prepare-data/', + children: [ + '/how-to/store/prepare-data', + '/how-to/store/tokens', + '/how-to/store/making-storage-deals', + '/how-to/store/retrieving-data', + '/how-to/store/large-files' + ] + } + ] + }, + { + title: 'Project', + path: '/project/', + children: [ + [ + 'https://app.instagantt.com/shared/s/1152992274307505/latest', + 'Roadmap' + ], + ['https://research.filecoin.io/', 'Research'], + '/project/related-projects', + [ + 'https://github.com/filecoin-project/community/blob/master/CODE_OF_CONDUCT.md', + 'Code of conduct' ] - } - ] - }, + ] + }, - { - title: 'Reference', - path: '/reference/', - children: [ - ['/reference/glossary', 'Glossary'], - ['https://github.com/filecoin-project/specs', 'Specification'], - ['https://lotu.sh/', 'Lotus tutorial'] - ] - }, - { - title: 'Community', - path: '/community/', - children: [ - { - title: 'Join the community', - sidebarDepth: 2, - collapsable: false, - children: [ - '/community/contribute/ways-to-contribute', - '/community/chat-and-discussion-forums', - ['https://proto.school/#/events', 'ProtoSchool workshops'], - '/community/social-media/social-media' - ] - }, - { - title: 'Write the docs', - sidebarDepth: 1, - collapsable: false, - children: [ - '/community/contribute/grammar-formatting-and-style', - '/community/contribute/writing-guide', - '/community/contribute/contribution-tutorial' - ] - } - ] - }, - { - title: 'Project', - path: '/project/', - children: [ - [ - 'https://app.instagantt.com/shared/s/1152992274307505/latest', - 'Roadmap' - ], - ['https://research.filecoin.io/', 'Research'], - '/project/related-projects', - [ - 'https://github.com/filecoin-project/community/blob/master/CODE_OF_CONDUCT.md', - 'Code of conduct' + { + title: 'Community', + path: '/community/', + children: [ + { + title: 'Join the community', + sidebarDepth: 2, + collapsable: false, + children: [ + '/community/contribute/ways-to-contribute', + '/community/chat-and-discussion-forums', + ['https://proto.school/#/events', 'ProtoSchool workshops'], + '/community/social-media/social-media' + ] + }, + { + title: 'Write the docs', + sidebarDepth: 1, + collapsable: false, + children: [ + '/community/contribute/grammar-formatting-and-style', + '/community/contribute/writing-guide', + '/community/contribute/contribution-tutorial' + ] + } ] - ] - } - ] + } + ] + } } } }, diff --git a/docs/.vuepress/nav/en.js b/docs/.vuepress/nav/en.js index d7faf17f9..a04535001 100644 --- a/docs/.vuepress/nav/en.js +++ b/docs/.vuepress/nav/en.js @@ -1 +1,6 @@ -module.exports = [] +module.exports = [ + { text: 'Get Started', link: '/' }, + { text: 'Mine', link: '/mine/' }, + { text: 'Build', link: '/build/' }, + { text: 'Reference', link: '/reference/' } +] diff --git a/docs/.vuepress/theme/components/Breadcrumbs.vue b/docs/.vuepress/theme/components/Breadcrumbs.vue new file mode 100644 index 000000000..9a61f67b9 --- /dev/null +++ b/docs/.vuepress/theme/components/Breadcrumbs.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/docs/.vuepress/theme/components/Page.vue b/docs/.vuepress/theme/components/Page.vue index 9906453b7..2ce274a3f 100644 --- a/docs/.vuepress/theme/components/Page.vue +++ b/docs/.vuepress/theme/components/Page.vue @@ -1,7 +1,7 @@