Skip to content

Commit

Permalink
Make "Edit this page" links work (#1183)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Sep 27, 2022
1 parent 9c1e684 commit cdcf9b6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -28,7 +28,7 @@ FerretDB will be compatible with MongoDB drivers and will strive to serve as a d

Currently, the project is in its early stages and welcomes all contributors.
See our [public roadmap](https://github.com/orgs/FerretDB/projects/2/views/1),
a list of [known differences with MongoDB](https://docs.ferretdb.io/docs/diff/),
a list of [known differences with MongoDB](https://docs.ferretdb.io/diff/),
and [contributing guidelines](CONTRIBUTING.md).

## Quickstart
Expand Down
2 changes: 1 addition & 1 deletion website/docs/intro.md
Expand Up @@ -24,7 +24,7 @@ FerretDB is compatible with MongoDB drivers and can be used as a direct replacem

Currently, the project is still in its early stages of development and not yet suitable for use in production-ready environments.
See our [public roadmap](https://github.com/orgs/FerretDB/projects/2/views/1),
a list of [known differences with MongoDB](/docs/diff/),
a list of [known differences with MongoDB](/diff/),
and [contributing guidelines](https://github.com/FerretDB/FerretDB/blob/main/CONTRIBUTING.md).

## Community
Expand Down
25 changes: 12 additions & 13 deletions website/docusaurus.config.js
Expand Up @@ -23,27 +23,26 @@ const config = {
locales: ['en'],
},

plugins: [require.resolve("@cmfcmf/docusaurus-search-local")],
plugins: [
[
require.resolve("@cmfcmf/docusaurus-search-local"),
{
indexBlog: false,
},
],
],

presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/FerretDB/FerretDB/',
editUrl: 'https://github.com/FerretDB/FerretDB/tree/main/website',
},
// blog: {
// showReadingTime: true,
// // Please change this to your repo.
// // Remove this to remove the "edit this page" links.
// editUrl:
// 'https://github.com/FerretDB/FerretDB/',
// },
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
Expand Down Expand Up @@ -83,7 +82,7 @@ const config = {
items: [
{
label: 'Documentation',
to: '/docs/intro',
to: '/intro/',
},
],
},
Expand Down
4 changes: 2 additions & 2 deletions website/sidebars.js
Expand Up @@ -14,11 +14,11 @@
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
sidebar: [{type: 'autogenerated', dirName: '.'}],

// But you can create a sidebar manually
/*
tutorialSidebar: [
sidebar: [
{
type: 'category',
label: 'Tutorial',
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/index.js
Expand Up @@ -17,7 +17,7 @@ function HomepageHeader() {
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro">
to="/intro/">
Get Started
</Link>
</div>
Expand Down

1 comment on commit cdcf9b6

@vercel
Copy link

@vercel vercel bot commented on cdcf9b6 Sep 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ferret-db – ./

ferret-db.vercel.app
ferret-db-ferretdb.vercel.app
ferret-db-git-main-ferretdb.vercel.app

Please sign in to comment.