Skip to content

Commit

Permalink
chore: hide stable version in docs (microsoft#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Aug 3, 2022
1 parent 2704f67 commit ddf8cd4
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 81 deletions.
37 changes: 17 additions & 20 deletions dotnet/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,22 @@ let plugins = [
require.resolve("@docusaurus/plugin-content-docs"),
{
sidebarPath: require.resolve("./sidebars.js"),
versions: {
stable: {
badge: false,
}
},
},
],
[
'content-docs',
/** @type {import('@docusaurus/plugin-content-docs').Options} */
({
id: 'community',
path: 'community',
routeBasePath: 'community',
sidebarPath: require.resolve('./sidebarCommunity.js'),
}),
],
[
require.resolve("@docusaurus/plugin-content-blog"),
{
showReadingTime: true,
editUrl:
"https://github.com/microsoft/playwright.dev/edit/master/",
},
'content-docs',
/** @type {import('@docusaurus/plugin-content-docs').Options} */
({
id: 'community',
path: 'community',
routeBasePath: 'community',
sidebarPath: require.resolve('./sidebarCommunity.js'),
}),
],
require.resolve("@docusaurus/plugin-content-pages"),
require.resolve("./plugins/playwright-analytics-integration/lib/index.js"),
Expand Down Expand Up @@ -107,10 +104,10 @@ module.exports = {
],
},
{
to: '/community/welcome',
label: 'Community',
position: 'left',
activeBaseRegex: `/community/`,
to: '/community/welcome',
label: 'Community',
position: 'left',
activeBaseRegex: `/community/`,
},
],
},
Expand Down
37 changes: 17 additions & 20 deletions java/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,22 @@ let plugins = [
require.resolve("@docusaurus/plugin-content-docs"),
{
sidebarPath: require.resolve("./sidebars.js"),
versions: {
stable: {
badge: false,
}
},
},
],
[
'content-docs',
/** @type {import('@docusaurus/plugin-content-docs').Options} */
({
id: 'community',
path: 'community',
routeBasePath: 'community',
sidebarPath: require.resolve('./sidebarCommunity.js'),
}),
],
[
require.resolve("@docusaurus/plugin-content-blog"),
{
showReadingTime: true,
editUrl:
"https://github.com/microsoft/playwright.dev/edit/master/",
},
'content-docs',
/** @type {import('@docusaurus/plugin-content-docs').Options} */
({
id: 'community',
path: 'community',
routeBasePath: 'community',
sidebarPath: require.resolve('./sidebarCommunity.js'),
}),
],
require.resolve("@docusaurus/plugin-content-pages"),
require.resolve("./plugins/playwright-analytics-integration/lib/index.js"),
Expand Down Expand Up @@ -107,10 +104,10 @@ module.exports = {
],
},
{
to: '/community/welcome',
label: 'Community',
position: 'left',
activeBaseRegex: `/community/`,
to: '/community/welcome',
label: 'Community',
position: 'left',
activeBaseRegex: `/community/`,
},
],
},
Expand Down
39 changes: 18 additions & 21 deletions nodejs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,22 @@ let plugins = [
require.resolve("@docusaurus/plugin-content-docs"),
{
sidebarPath: require.resolve("./sidebars.js"),
versions: {
stable: {
badge: false,
}
},
},
],
[
'content-docs',
/** @type {import('@docusaurus/plugin-content-docs').Options} */
({
id: 'community',
path: 'community',
routeBasePath: 'community',
sidebarPath: require.resolve('./sidebarCommunity.js'),
}),
],
[
require.resolve("@docusaurus/plugin-content-blog"),
{
showReadingTime: true,
editUrl:
"https://github.com/microsoft/playwright.dev/edit/master/",
},
'content-docs',
/** @type {import('@docusaurus/plugin-content-docs').Options} */
({
id: 'community',
path: 'community',
routeBasePath: 'community',
sidebarPath: require.resolve('./sidebarCommunity.js'),
}),
],
require.resolve("@docusaurus/plugin-content-pages"),
require.resolve("./plugins/playwright-analytics-integration/lib/index.js"),
Expand Down Expand Up @@ -74,7 +71,7 @@ module.exports = {
label: "API",
position: "left",
},

{
href: "https://github.com/microsoft/playwright",
position: "right",
Expand Down Expand Up @@ -108,10 +105,10 @@ module.exports = {
],
},
{
to: '/community/welcome',
label: 'Community',
position: 'left',
activeBaseRegex: `/community/`,
to: '/community/welcome',
label: 'Community',
position: 'left',
activeBaseRegex: `/community/`,
},
],
},
Expand Down
37 changes: 17 additions & 20 deletions python/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,22 @@ let plugins = [
require.resolve("@docusaurus/plugin-content-docs"),
{
sidebarPath: require.resolve("./sidebars.js"),
versions: {
stable: {
badge: false,
}
},
},
],
[
'content-docs',
/** @type {import('@docusaurus/plugin-content-docs').Options} */
({
id: 'community',
path: 'community',
routeBasePath: 'community',
sidebarPath: require.resolve('./sidebarCommunity.js'),
}),
],
[
require.resolve("@docusaurus/plugin-content-blog"),
{
showReadingTime: true,
editUrl:
"https://github.com/microsoft/playwright.dev/edit/master/",
},
'content-docs',
/** @type {import('@docusaurus/plugin-content-docs').Options} */
({
id: 'community',
path: 'community',
routeBasePath: 'community',
sidebarPath: require.resolve('./sidebarCommunity.js'),
}),
],
require.resolve("@docusaurus/plugin-content-pages"),
require.resolve("./plugins/playwright-analytics-integration/lib/index.js"),
Expand Down Expand Up @@ -107,10 +104,10 @@ module.exports = {
],
},
{
to: '/community/welcome',
label: 'Community',
position: 'left',
activeBaseRegex: `/community/`,
to: '/community/welcome',
label: 'Community',
position: 'left',
activeBaseRegex: `/community/`,
},

],
Expand Down

0 comments on commit ddf8cd4

Please sign in to comment.