fn6kd-qaaaa-aaaai-act2a-cai.icp0.io Open in urlscan Pro
2a00:fb01:400:200:5000:45ff:feb5:f777  Public Scan

URL: https://fn6kd-qaaaa-aaaai-act2a-cai.icp0.io/docs/tutorial-extras/manage-docs-versions/index.html
Submission: On December 19 via api from US — Scanned from CH

Form analysis 0 forms found in the DOM

Text Content

Skip to main content

My SiteTutorialBlog
GitHub



 * Tutorial Intro
 * Tutorial - Basics
 * Tutorial - Extras
   * Manage Docs Versions
   * Translate your site

 * 
 * Tutorial - Extras
 * Manage Docs Versions

On this page


MANAGE DOCS VERSIONS

Docusaurus can manage multiple versions of your docs.


CREATE A DOCS VERSION

Release a version 1.0 of your project:

npm run docusaurus docs:version 1.0




The docs folder is copied into versioned_docs/version-1.0 and versions.json is
created.

Your docs now have 2 versions:

 * 1.0 at http://localhost:3000/docs/ for the version 1.0 docs
 * current at http://localhost:3000/docs/next/ for the upcoming, unreleased docs


ADD A VERSION DROPDOWN

To navigate seamlessly across versions, add a version dropdown.

Modify the docusaurus.config.js file:

docusaurus.config.js

export default {
  themeConfig: {
    navbar: {
      items: [
        {
          type: 'docsVersionDropdown',
        },
      ],
    },
  },
};




The docs version dropdown appears in your navbar:




UPDATE AN EXISTING VERSION

It is possible to edit versioned docs in their respective folder:

 * versioned_docs/version-1.0/hello.md updates http://localhost:3000/docs/hello
 * docs/hello.md updates http://localhost:3000/docs/next/hello

Edit this page

Previous
Tutorial - Extras
Next
Translate your site
 * Create a docs version
 * Add a Version Dropdown
 * Update an existing version

Docs
 * Tutorial

Community
 * Stack Overflow
 * Discord
 * Twitter

More
 * Blog
 * GitHub

Copyright © 2024 My Project, Inc. Built with Docusaurus.