Skip to content

Commit

Permalink
Merge pull request #413 from ant-media/update-docusaurus-version
Browse files Browse the repository at this point in the history
Document versioning
  • Loading branch information
filip-ams authored Dec 6, 2024
2 parents d33c297 + 7d6dfaa commit 4319341
Show file tree
Hide file tree
Showing 215 changed files with 19,736 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,19 @@ const config = {
// Remove this to remove the "edit this page" links.
// editUrl: 'https://github.com/facebook/docusaurus/edit/main/website/',
editUrl: 'https://github.com/ant-media/ant-media-documentation/edit/master/',
lastVersion: 'current',
versions: {
'current': {
label: '2.12.0', // Customize the label for the current (unversioned) docs
path: '', // Leave empty to use the root URL for the latest version
banner: 'none',
},
'2.11.3': {
label: '2.11.3', // Customize the label for the current (unversioned) docs
path: 'version-2.11.3', // Leave empty to use the root URL for the latest version
banner: 'none',
}
},
},
blog: false,
theme: {
Expand Down Expand Up @@ -267,6 +280,12 @@ const config = {
srcDark: 'img/Ant-Media-Logo-light.png',
},
items: [
{
type: 'docsVersionDropdown',
position: 'right',
dropdownActiveClassDisabled: false,
},

{
type: 'doc',
docId: 'introduction',
Expand Down
Loading

0 comments on commit 4319341

Please sign in to comment.