Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new instances #352

Merged
merged 1 commit into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 39 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,36 @@ const config = {
showLastUpdateTime: true,
}),
],
[
'@docusaurus/plugin-content-docs',
({
id: 'storage',
path: 'docs/storage',
routeBasePath: 'storage',
editUrl: (params) => {
return 'https://github.com/gofiber/storage/edit/main/' + params.docPath;
},
editCurrentVersion: true,
sidebarPath: require.resolve('./sidebarsStorage.js'),
showLastUpdateAuthor: false,
showLastUpdateTime: true,
}),
],
[
'@docusaurus/plugin-content-docs',
({
id: 'template',
path: 'docs/template',
routeBasePath: 'template',
editUrl: (params) => {
return 'https://github.com/gofiber/template/edit/main/' + params.docPath;
},
editCurrentVersion: true,
sidebarPath: require.resolve('./sidebarsTemplate.js'),
showLastUpdateAuthor: false,
showLastUpdateTime: true,
}),
],
],

presets: [
Expand Down Expand Up @@ -156,8 +186,16 @@ const config = {
type: 'docsVersion',
label: 'Contrib',
docsPluginId: 'contrib',
}, {
type: 'docsVersion',
label: 'Storage',
docsPluginId: 'storage',
}, {
type: 'docsVersion',
label: 'Template',
docsPluginId: 'template',
}],
},
},
{
to: 'https://gofiber.io/support',
label: '☕ Donate',
Expand Down
22 changes: 22 additions & 0 deletions sidebarsStorage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation

The sidebars can be generated from the filesystem, or explicitly defined here.

Create as many sidebars as you want.
*/

// @ts-check

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
tutorialSidebar: [{
type: 'autogenerated',
dirName: '.'
}],
};

module.exports = sidebars;
22 changes: 22 additions & 0 deletions sidebarsTemplate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation

The sidebars can be generated from the filesystem, or explicitly defined here.

Create as many sidebars as you want.
*/

// @ts-check

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
tutorialSidebar: [{
type: 'autogenerated',
dirName: '.'
}],
};

module.exports = sidebars;
Loading