sylodev/documentation

Docusaurus config edit page issue

Closed this issue · 1 comments

Slight issue when clicking "edit page" button for documentation, as the edit URL is incorrectly set.

// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

/** @type {import('@docusaurus/types').Config} */
const config = {
  // stuff here

  presets: [
    [
      "classic",
      /** @type {import('@docusaurus/preset-classic').Options} */
      ({
        docs: {
          routeBasePath: "/",
          sidebarPath: require.resolve("./sidebars.js"),
          editUrl: "https://github.com/sylo-digital/documentation",
        },
      }),
    ],
  ],

  // other stuff here
};

module.exports = config;

https://github.com/sylo-digital/documentation needs to be https://github.com/sylo-digital/documentation/tree/main for the edit URLs to work

Closed with #19