bigbluebutton-Github/docs
Anton Georgiev 4301ed1b7d
docs: allowPromoteGuestToModerator documentation tweak [2.7] (#21242)
* docs: allowPromoteGuestToModerator documentation tweak [2.7]

* Update create.tsx
2024-09-23 19:30:12 -04:00
..
docs docs: allowPromoteGuestToModerator documentation tweak [2.7] (#21242) 2024-09-23 19:30:12 -04:00
src docs: 2.7 released docs 2023-09-06 19:34:21 -04:00
static docs: 2.7.10 features breakouts with own pres; ban posts from user 2024-07-24 21:20:35 -04:00
.gitignore Versioning configuration and improvents in the build script 2023-02-09 10:53:47 +01:00
babel.config.js Move bigbluebutton-docs to the main repository. 2022-12-10 21:21:56 +01:00
build.sh docs: 2.7 released docs 2023-09-06 19:34:21 -04:00
docusaurus.config.js docs: drop plugin @cmfcmf/docusaurus-search-local 2024-05-10 21:23:05 -04:00
package-lock.json build(deps): bump the npm_and_yarn group across 3 directories with 7 updates (#21182) 2024-09-13 15:52:57 -04:00
package.json fix: docs/package.json & docs/package-lock.json to reduce vulnerabilities (#20900) 2024-08-12 13:01:51 -04:00
README.md Update readme and build instructions for 2.6 2023-03-17 21:35:40 +01:00
sidebars.js Update sidebars.js 2023-10-10 06:05:21 -04:00
tsconfig.json Move bigbluebutton-docs to the main repository. 2022-12-10 21:21:56 +01:00

BigBlueButton Docs

These docs are automatically built using Docusaurus 2 and GitHub Actions (see deploy-docs.yml).

Local Development

To test build the docs locally you can either use yarn or npm.

$ yarn install  # install docusaurus and dependencies
$ yarn start  # start local dev server

The last command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

There is also a script build.sh that goes through all branches of the repository and adds all release branches that have a docusaurus.config.js-file as versions to the docs. Note that you can not have uncommited local changes before you run /build.sh, otherwise git will refuse to change branches. This step is optional and if you don't run it, docusaurus will only build the currently checkout out version which is recommended for local development (building all the versions locally can lead to problems with the live updates when using yarn start).

Build

If you only want to build the docs you can run:

$ yarn clear # ensure cached content is not interfering with your changes
$ yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Troubleshooting

Sometimes cached content can interfere with your changes during live updates in development or when building the docs. To avoid this you can run:

$ yarn clear  # ensure cached content is not interfering with your changes
$ rm -r versioned_docs versioned_sidebars versions.json  # if you build multiple versions

Cutting a new release

The docs for all versions are build and deployed from the develop-branch, but the actual documentation per version lives in each version-branch (e.g. v2.6.x-release). When cutting a new BigBlueButton release at least these two files need to be adjusted on develop:

  • build.sh: the variable BRANCHES is a list of all branches for which documentation will be included
  • docusaurus.config.js: adjust metadata and versions in config.presets.docs.versions