Skip to content

docs: point "Edit this page" links to the GitHub editor - #16326

Merged
vkarpov15 merged 2 commits into
masterfrom
docs/update-edit-link
Jun 10, 2026
Merged

docs: point "Edit this page" links to the GitHub editor#16326
vkarpov15 merged 2 commits into
masterfrom
docs/update-edit-link

Conversation

@AbdelrahmanHafez

Copy link
Copy Markdown
Collaborator

Changes the edit links on docs pages from blob/master to edit/master, so clicking "Edit this page" opens the file in GitHub's editor instead of the read-only view. Covers both the API reference pages (docs/source/api.js) and the guide pages (scripts/website.js).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates documentation “Edit this page” links to open directly in GitHub’s file editor (via edit/master) rather than the read-only file view (via blob/master), affecting both the website-rendered guide docs and the generated API reference docs.

Changes:

  • Switch guide docs edit-link base URL from .../blob/master to .../edit/master in scripts/website.js.
  • Switch API docs edit-link base URL from .../blob/master/ to .../edit/master/ in docs/source/api.js.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
scripts/website.js Updates the computed options.editLink base URL to use GitHub’s editor route for guide pages.
docs/source/api.js Updates the generated data.editLink base URL to use GitHub’s editor route for API reference pages.

@AbdelrahmanHafez
AbdelrahmanHafez marked this pull request as ready for review June 10, 2026 12:35
@AbdelrahmanHafez AbdelrahmanHafez added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Jun 10, 2026
@vkarpov15 vkarpov15 added this to the 9.7.1 milestone Jun 10, 2026
@vkarpov15
vkarpov15 merged commit 49c896e into master Jun 10, 2026
27 of 28 checks passed
@hasezoey
hasezoey deleted the docs/update-edit-link branch June 10, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs This issue is due to a mistake or omission in the mongoosejs.com documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants