Skip to content

docs: point the sidebar Awesome and Changelog links at pages that exist - #2874

Closed
blakshmichaitanya wants to merge 1 commit into
docsifyjs:developfrom
blakshmichaitanya:fix/sidebar-dead-links
Closed

blakshmichaitanya wants to merge 1 commit into
docsifyjs:developfrom
blakshmichaitanya:fix/sidebar-dead-links

Conversation

@blakshmichaitanya

@blakshmichaitanya blakshmichaitanya commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The sidebar had two entries that always landed on a 404 page:

* [Awesome docsify](awesome.md)
* [Changelog](changelog.md)

Neither docs/awesome.md nor docs/changelog.md exists in this repository (and never has, so there is no history to restore them from), and the site is published from the docs/ folder, so https://docsify.js.org/awesome.md and https://docsify.js.org/changelog.md both return 404.

This PR points the two entries at the pages that actually hold that content:

Related issue, if any:

None, but here is how it was checked:

$ curl -o /dev/null -w '%{http_code}' https://docsify.js.org/awesome.md
404
$ curl -o /dev/null -w '%{http_code}' https://docsify.js.org/changelog.md
404
$ curl -o /dev/null -w '%{http_code}' https://github.com/docsifyjs/awesome-docsify
200
$ curl -o /dev/null -w '%{http_code}' https://github.com/docsifyjs/docsify/blob/main/CHANGELOG.md
200

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

For any code change,

  • Related documentation has been updated, if needed
  • Related tests have been added or updated, if needed

The sidebar is covered by a snapshot test (test/integration/docs.test.js), so the snapshot in test/integration/__snapshots__/docs.test.js.snap is updated in the second commit.

Does this PR introduce a breaking change?

  • Yes
  • No

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge

N/A, this only changes two links in docs/_sidebar.md plus the matching snapshot. What was run locally:

$ npx prettier --check docs/_sidebar.md
All matched files use Prettier code style!

$ npx cross-env NODE_OPTIONS=--experimental-vm-modules jest test/integration/docs.test.js -u
Test Suites: 1 passed, 1 total
Tests:       5 passed, 5 total
Snapshots:   1 updated, 2 passed, 3 total

The sidebar linked to awesome.md and changelog.md, but neither file is in
docs/, so both entries ended on a 404 page on the live site. The showcase
list lives in the awesome-docsify repository and the changelog is the
CHANGELOG.md file in the repository root, so the links now point there.
@vercel

vercel Bot commented Dec 3, 2026

Copy link
Copy Markdown

@blakshmichaitanya is attempting to deploy a commit to the Docsify Team on Vercel.

A member of the Team first needs to authorize it.

@sy-records sy-records left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the PR, but this was intentional.

We load it via an alias; it doesn't actually exist when accessed directly.

docsify/docs/index.html

Lines 106 to 109 in cb95a0b

'.*?/awesome':
'https://raw.githubusercontent.com/docsifyjs/awesome-docsify/master/README.md',
'.*?/changelog':
'https://raw.githubusercontent.com/docsifyjs/docsify/main/CHANGELOG.md',

@sy-records sy-records closed this Dec 3, 2026
@blakshmichaitanya

blakshmichaitanya commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor Author

My bad, thanks for correcting me. I checked the raw awesome.md / changelog.md URLs and stopped there, without looking at the alias mapping in docs/index.html that resolves them at runtime. Good catch - closing this out and leaving the sidebar as it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants