Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Docs] Add missing metadata in page “using-npm/semver” to fix broken links and nav #1572

Closed
wants to merge 2 commits into from

Conversation

tripu
Copy link
Contributor

@tripu tripu commented Jul 28, 2020

Problem: there have been a number of broken links in docs.npmjs.com for quite some time now. At least hyperlinks to section Using npm / semver are broken.

Examples: visit docs.npmjs.com/configuring-npm/package-json and on your browser find the string See semver; there are 3 instances, all of them linking to docs.npmjs.com/using-npm/semver, which does not exist.

A related outstanding issue (I believe) is that such subsection (semver) does not appear in the index page of section Using npm.


Solution: after digging a bit in the docs and how they are built, I think the cause may be that this specific page is lacking some metadata at the beginning. Because of that, the page is not generated, indexed and/or copied to the output dir. After changing this, Gatsby seems to be serving the page OK, and it appears in the nav sidebar element.

@tripu tripu requested a review from a team as a code owner July 28, 2020 15:33
@tripu
Copy link
Contributor Author

tripu commented Jul 30, 2020

I just committed a small change in one of the Tap tests — the one checking documentation for semver.
I think this issue originated in #274.

Tests pass now.
This is ready for review.

@tripu
Copy link
Contributor Author

tripu commented Aug 11, 2020

@isaacs, am I missing any step here for the team to be able to review the PR?
Cheers.

@ruyadorno ruyadorno added Enhancement new feature or improvement Release 6.x work is associated with a specific npm 6 release semver:patch semver patch level for changes labels Aug 14, 2020
@ruyadorno
Copy link
Contributor

Awesome finding! 🙌 Thank you so much for the fix @tripu!

ruyadorno pushed a commit that referenced this pull request Aug 17, 2020
ruyadorno pushed a commit that referenced this pull request Aug 17, 2020
@ruyadorno ruyadorno closed this in 42dcb3e Aug 17, 2020
Copy link

@turan3548 turan3548 left a comment

Choose a reason for hiding this comment

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

Pıroje takıpcıkazan

@tripu
Copy link
Contributor Author

tripu commented Aug 23, 2020

Excuse me, I'm not familiar with your workflow: when will this be deployed to docs.npmjs.com?

This change does not show there yet, and I was wondering.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Enhancement new feature or improvement Release 6.x work is associated with a specific npm 6 release semver:patch semver patch level for changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants