2022-12-11 04:21:56 +08:00
|
|
|
// @ts-check
|
|
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
|
|
|
|
2023-12-07 03:24:19 +08:00
|
|
|
const lightCodeTheme = require('prism-react-renderer').themes.github;
|
|
|
|
const darkCodeTheme = require('prism-react-renderer').themes.dracula;
|
2022-12-11 04:21:56 +08:00
|
|
|
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
|
|
const config = {
|
|
|
|
title: 'BigBlueButton',
|
|
|
|
tagline: 'Official Documentation',
|
2023-03-22 22:39:40 +08:00
|
|
|
url: 'https://docs.bigbluebutton.org/',
|
|
|
|
baseUrl: '/',
|
2022-12-11 04:21:56 +08:00
|
|
|
onBrokenLinks: 'throw',
|
|
|
|
onBrokenMarkdownLinks: 'warn',
|
|
|
|
favicon: 'img/favicon.ico',
|
2024-01-27 01:18:56 +08:00
|
|
|
trailingSlash: true,
|
2022-12-11 04:21:56 +08:00
|
|
|
|
|
|
|
// GitHub pages deployment config.
|
|
|
|
// If you aren't using GitHub pages, you don't need these.
|
|
|
|
organizationName: 'bigbluebutton', // Usually your GitHub org/user name.
|
2023-02-09 18:02:57 +08:00
|
|
|
projectName: 'bigbluebutton', // Usually your repo name.
|
2022-12-11 04:21:56 +08:00
|
|
|
|
2023-12-15 04:24:40 +08:00
|
|
|
// Even if you don't use internalization, you can use this field to set useful
|
|
|
|
// metadata like html lang. For example, if your site is Chinese, you may want
|
|
|
|
// to replace "en" with "zh-Hans".
|
|
|
|
i18n: {
|
|
|
|
defaultLocale: 'en',
|
|
|
|
locales: ['en'],
|
|
|
|
},
|
|
|
|
|
2024-05-14 01:00:44 +08:00
|
|
|
scripts: [
|
2024-05-14 03:28:09 +08:00
|
|
|
// Cookie consent control required for GDPR. Token is not required to be renewed. Update hN querystring to match domain.
|
2024-05-14 01:00:44 +08:00
|
|
|
'https://cdn.baycloud.com/cl.js?cid=9be233bfe3004dc49e742fd0fa98642c&hN=docs.bigbluebutton.org'
|
|
|
|
],
|
|
|
|
|
2022-12-11 04:21:56 +08:00
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'classic',
|
|
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
|
|
({
|
|
|
|
docs: {
|
|
|
|
routeBasePath: "/",
|
|
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
2023-09-07 03:54:40 +08:00
|
|
|
lastVersion: '2.7',
|
2023-03-18 04:30:37 +08:00
|
|
|
includeCurrentVersion: false,
|
|
|
|
versions: {
|
2023-10-03 23:26:06 +08:00
|
|
|
'2.5-legacy': {
|
2023-03-18 04:30:37 +08:00
|
|
|
banner: 'none'
|
|
|
|
},
|
|
|
|
'2.6': {
|
|
|
|
banner: 'none'
|
|
|
|
},
|
2023-12-08 10:48:57 +08:00
|
|
|
'3.0': {
|
2023-09-07 03:54:40 +08:00
|
|
|
banner: 'none'
|
|
|
|
},
|
2023-12-08 10:48:57 +08:00
|
|
|
'2.7': {
|
2023-10-27 23:32:30 +08:00
|
|
|
banner: 'none'
|
|
|
|
},
|
2023-03-18 04:30:37 +08:00
|
|
|
}
|
2022-12-11 04:21:56 +08:00
|
|
|
},
|
|
|
|
theme: {
|
|
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2023-03-24 21:20:14 +08:00
|
|
|
plugins: [
|
|
|
|
[
|
|
|
|
"@docusaurus/plugin-client-redirects",
|
|
|
|
{
|
2023-04-11 02:17:19 +08:00
|
|
|
fromExtensions: ['html', 'htm'],
|
2023-03-24 21:20:14 +08:00
|
|
|
redirects: [
|
|
|
|
{
|
2024-01-27 01:09:40 +08:00
|
|
|
to: "/2.6/new-features/",
|
|
|
|
from: "/2.6/new/"
|
2023-03-27 22:23:45 +08:00
|
|
|
},
|
2023-04-01 03:22:14 +08:00
|
|
|
{
|
2024-01-27 01:09:40 +08:00
|
|
|
to: "/2.6/new-features/",
|
2023-04-01 03:22:14 +08:00
|
|
|
from: "/2.6/new.html"
|
|
|
|
},
|
2023-04-13 19:40:57 +08:00
|
|
|
{
|
2024-01-27 01:09:40 +08:00
|
|
|
to: "/new-features/",
|
|
|
|
from: "/2.7/new-features/"
|
2023-04-13 19:40:57 +08:00
|
|
|
},
|
2023-03-27 22:23:45 +08:00
|
|
|
{
|
2024-01-27 01:09:40 +08:00
|
|
|
to: "/development/api/",
|
2023-04-04 22:34:55 +08:00
|
|
|
from: "/dev/api.html"
|
2023-04-04 21:49:57 +08:00
|
|
|
},
|
2023-03-29 21:07:37 +08:00
|
|
|
{
|
2024-01-27 01:09:40 +08:00
|
|
|
to: "/greenlight/v3/migration/",
|
2023-03-29 21:07:37 +08:00
|
|
|
from: "/greenlight_v3/gl3-migration.html"
|
2023-03-24 21:20:14 +08:00
|
|
|
}
|
2023-04-10 23:05:09 +08:00
|
|
|
],
|
2023-04-13 22:56:59 +08:00
|
|
|
// We interpret the path argument as the path "to"
|
|
|
|
// and the return of this function as the paths "from"
|
2023-04-10 23:05:09 +08:00
|
|
|
createRedirects: (path) => {
|
|
|
|
// TODO: remove default route to /
|
2023-04-13 22:56:59 +08:00
|
|
|
const redirect_list = [];
|
|
|
|
|
2023-09-07 08:18:23 +08:00
|
|
|
// Create redirect paths for all routes except 2.5 or 2.6 ones
|
|
|
|
if ( !(path.startsWith("/2.5") || path.startsWith("/2.6"))){
|
|
|
|
redirect_list.push("/2.7" + path);
|
2023-04-13 22:56:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
if ( path.includes("/testing/release-testing") ){
|
|
|
|
redirect_list.push( path.replace("/testing/release-testing", "/release-tests.html") )
|
2023-04-10 23:05:09 +08:00
|
|
|
}
|
2023-04-13 22:56:59 +08:00
|
|
|
// Handle the old docs group /admin
|
|
|
|
if ( path.startsWith("/administration") ) {
|
|
|
|
// creates new routes /admin/something pointing to /administration
|
|
|
|
redirect_list.push( path.replace("/administration", "/admin") );
|
2023-04-13 21:36:45 +08:00
|
|
|
}
|
2023-04-13 22:56:59 +08:00
|
|
|
// handle the old docs group /dev
|
|
|
|
if ( path.startsWith("/development") ) {
|
|
|
|
// creates new routes /dev/something pointing to /development
|
|
|
|
redirect_list.push( path.replace("/development", "/dev") );
|
2023-04-13 21:36:45 +08:00
|
|
|
}
|
2023-10-03 23:46:34 +08:00
|
|
|
// redirect old links to the now modified url (includes -legacy)
|
|
|
|
if ( path.startsWith("/2.5") ) {
|
|
|
|
redirect_list.push( path.replace("/2.5", "/2.5-legacy") );
|
|
|
|
}
|
|
|
|
|
2023-04-13 22:56:59 +08:00
|
|
|
return redirect_list;
|
2023-04-10 23:05:09 +08:00
|
|
|
},
|
2023-03-24 21:20:14 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
2022-12-11 04:21:56 +08:00
|
|
|
|
|
|
|
themeConfig:
|
2023-01-13 04:46:18 +08:00
|
|
|
|
2022-12-11 04:21:56 +08:00
|
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
|
|
({
|
2023-01-13 04:46:18 +08:00
|
|
|
tableOfContents: {
|
|
|
|
minHeadingLevel: 2,
|
|
|
|
maxHeadingLevel: 4,
|
|
|
|
},
|
2022-12-11 04:21:56 +08:00
|
|
|
navbar: {
|
|
|
|
title: 'BigBlueButton',
|
|
|
|
logo: {
|
|
|
|
alt: 'BigBlueButton Logo',
|
|
|
|
src: 'img/logo.svg',
|
|
|
|
},
|
|
|
|
items: [
|
2023-03-22 00:26:57 +08:00
|
|
|
{to: 'https://bigbluebutton.org/teachers/tutorials/', label: 'Teaching', position: 'left'},
|
2023-12-08 11:05:47 +08:00
|
|
|
{to: '/development/guide', label: 'Development', position: 'left'},
|
|
|
|
{to: '/administration/install', label: 'Administration', position: 'left'},
|
|
|
|
{to: '/greenlight/v3/install', label: 'Greenlight', position: 'left'},
|
|
|
|
{to: '/new-features', label: 'New Features', position: 'left'},
|
2024-06-25 00:56:08 +08:00
|
|
|
// {to: '/plugins', label: 'Plugins', position: 'left'},
|
2024-03-21 00:01:20 +08:00
|
|
|
{to: '/support/getting-help', label: 'Support', position: 'left'},
|
2023-02-09 17:53:47 +08:00
|
|
|
{
|
|
|
|
type: 'docsVersionDropdown',
|
|
|
|
position: 'right',
|
|
|
|
dropdownActiveClassDisabled: true,
|
|
|
|
},
|
2022-12-11 04:21:56 +08:00
|
|
|
{
|
2024-05-11 04:04:26 +08:00
|
|
|
href: 'https://github.com/bigbluebutton/bigbluebutton/tree/v3.0.x-release/docs',
|
2022-12-11 04:21:56 +08:00
|
|
|
label: 'GitHub',
|
|
|
|
position: 'right',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
style: 'dark',
|
|
|
|
links: [
|
|
|
|
{
|
|
|
|
title: 'BigBlueButton',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Github',
|
|
|
|
href: 'https://github.com/bigbluebutton',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Community',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Setup Forums',
|
|
|
|
href: 'https://groups.google.com/forum/#!forum/bigbluebutton-setup',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Users Forums',
|
|
|
|
href: 'https://groups.google.com/forum/#!forum/bigbluebutton-users',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Developers Forums',
|
|
|
|
href: 'https://groups.google.com/forum/#!forum/bigbluebutton-dev',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Support',
|
2023-01-13 04:46:18 +08:00
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Road Map',
|
|
|
|
to: '/support/road-map',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'FAQ',
|
|
|
|
to: '/support/faq',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Getting help',
|
|
|
|
to: '/support/getting-help',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Troubleshooting',
|
|
|
|
to: '/support/troubleshooting',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Resources',
|
2022-12-11 04:21:56 +08:00
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Knowledge Base',
|
2023-01-13 04:46:18 +08:00
|
|
|
href: 'https://support.bigbluebutton.org/',
|
2022-12-11 04:21:56 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Tutorial Videos',
|
2023-01-13 04:46:18 +08:00
|
|
|
href: 'https://bigbluebutton.org/teachers/tutorials/',
|
2022-12-11 04:21:56 +08:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Social',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Facebook',
|
|
|
|
href: 'https://www.facebook.com/bigbluebutton',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Twitter',
|
|
|
|
href: 'https://twitter.com/bigbluebutton',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Youtube',
|
|
|
|
href: 'https://www.youtube.com/channel/UCYj1_2Q3HTWCAImvI6eZ0SA',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2023-03-17 03:18:27 +08:00
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} BigBlueButton Inc., Built with Docusaurus.`,
|
2022-12-11 04:21:56 +08:00
|
|
|
},
|
|
|
|
prism: {
|
|
|
|
theme: lightCodeTheme,
|
|
|
|
darkTheme: darkCodeTheme,
|
|
|
|
},
|
|
|
|
}),
|
2024-05-09 22:57:35 +08:00
|
|
|
themes: [
|
|
|
|
// ... Your other themes.
|
|
|
|
[
|
|
|
|
require.resolve("@easyops-cn/docusaurus-search-local"),
|
|
|
|
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
|
|
|
|
({
|
|
|
|
// ... Your options.
|
|
|
|
// `hashed` is recommended as long-term-cache of index file is possible.
|
|
|
|
hashed: true,
|
|
|
|
docsRouteBasePath: "/",
|
|
|
|
// For Docs using Chinese, The `language` is recommended to set to:
|
|
|
|
// ```
|
|
|
|
// language: ["en", "zh"],
|
|
|
|
// ```
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
2022-12-11 04:21:56 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|