Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

feat(learn): use displayTitle and minor redirect fixes#2783

Merged
ovflowd merged 9 commits intonodejs:mainfrom
ovflowd:feat/learn-display-title
Sep 21, 2022
Merged

feat(learn): use displayTitle and minor redirect fixes#2783
ovflowd merged 9 commits intonodejs:mainfrom
ovflowd:feat/learn-display-title

Conversation

@ovflowd
Copy link
Copy Markdown
Member

@ovflowd ovflowd commented Sep 20, 2022

Description

This PR adds the displayTitle for learn pages and moves the pages to "category folders" so that files are better organised.

This PR also does a minor fix by always enabling redirectInBrowser which fixes the redirect issues on the GitHub Pages.

Related Issues

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run npm run lint:js -- --fix and/or npm run lint:md -- --fix for my JavaScript and/or Markdown changes.
    • This is important as most of the cases your code changes might not be correctly linted
  • I have run npm run test to check if all tests are passing, and/or npm run test -- -u to update snapshots if I created and/or updated React Components.
  • I have checked that the build works locally and that npm run build work fine.
  • I've covered new added functionality with unit tests if necessary.

@ovflowd ovflowd added bug Something isn't working enhancement New feature or request docs i18n All Issues regarding Localisation of the Website labels Sep 20, 2022
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Base: 66.02% // Head: 62.52% // Decreases project coverage by -3.49% ⚠️

Coverage data is based on head (fce661f) compared to base (fd57b87).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2783      +/-   ##
==========================================
- Coverage   66.02%   62.52%   -3.50%     
==========================================
  Files         118      124       +6     
  Lines        1351     1457     +106     
  Branches      342      361      +19     
==========================================
+ Hits          892      911      +19     
- Misses        422      505      +83     
- Partials       37       41       +4     
Impacted Files Coverage Δ
src/__fixtures__/page.tsx 94.11% <ø> (-5.89%) ⬇️
...components/ApiComponents/Components/ApiHeading.tsx 0.00% <ø> (ø)
...rc/components/ApiComponents/Components/ApiLink.tsx 0.00% <ø> (ø)
...ents/ApiComponents/Components/SourceLink/index.tsx 0.00% <ø> (ø)
...ApiComponents/Components/VersionSelector/index.tsx 0.00% <ø> (ø)
src/components/ApiComponents/index.tsx 0.00% <ø> (ø)
src/components/Article/index.tsx 100.00% <ø> (ø)
src/components/Banner/index.tsx 100.00% <ø> (ø)
src/components/Codebox/index.tsx 100.00% <ø> (ø)
src/components/EditLink/index.tsx 100.00% <ø> (ø)
... and 68 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Copy Markdown
Contributor

@MylesBorins MylesBorins left a comment

Choose a reason for hiding this comment

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

RSLGTM

@benhalverson benhalverson added the create-preview Generate preview on staging.nodejs.dev label Sep 21, 2022
@github-actions github-actions bot removed the create-preview Generate preview on staging.nodejs.dev label Sep 21, 2022
Copy link
Copy Markdown
Member

@benhalverson benhalverson left a comment

Choose a reason for hiding this comment

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

image

@github-actions
Copy link
Copy Markdown

Please find a preview at: https://staging.nodejs.dev/2783/

@ovflowd
Copy link
Copy Markdown
Member Author

ovflowd commented Sep 21, 2022

Merging so that I'd unblock @AugustinMauroy translation changes :)

@AugustinMauroy you know the drill, just rebase your PRs and update the displayTitle fields to the translated text, and the title to the values I modified in this PR.

@ovflowd ovflowd merged commit d9d0f82 into nodejs:main Sep 21, 2022
@ovflowd ovflowd deleted the feat/learn-display-title branch September 21, 2022 10:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working docs enhancement New feature or request i18n All Issues regarding Localisation of the Website

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants