Skip to content

Conversation

@AugustinMauroy
Copy link
Member

Description

Migration of table of contents from nodejs.dev but using nextra TOC

Related Issues

#5242

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run npx turbo lint to ensure the code follows the style guide. And run npx turbo lint:fix to fix the style errors if necessary.
  • I have run npx turbo format to ensure the code follows the style guide.
  • I have run npx turbo test to check if all tests are passing, and/or npx turbo test:snapshot to update snapshots if I created and/or updated React Components.
  • I've covered new added functionality with unit tests if necessary.

@AugustinMauroy AugustinMauroy requested a review from a team as a code owner May 24, 2023 13:44
@vercel
Copy link

vercel bot commented May 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2023 0:00am
nodejs-org-stories ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2023 0:00am

@vercel
Copy link

vercel bot commented May 24, 2023

@AugustinMauroy is attempting to deploy a commit to the OpenJS Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@AugustinMauroy
Copy link
Member Author

i will rebase/cherrypick to fix everything don't worry

@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories May 25, 2023 19:00 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org May 25, 2023 19:01 Inactive
Harkunwar and others added 14 commits May 25, 2023 21:01
Co-authored-by: Manish Kumar ⛄ <[email protected]>
Co-authored-by: Wai.Tung <[email protected]>
Co-authored-by: Shanmughapriyan S <[email protected]>
Co-authored-by: Michael Esteban <[email protected]>
Co-authored-by: Claudio Wunder <[email protected]>
Co-authored-by: Teja Sai Sandeep Reddy Konala <[email protected]>
Co-authored-by: Claudio Wunder <[email protected]>
Co-authored-by: vasanth9 <cheepurupalli.vasanthkumar.com>
Co-authored-by: Aymen Naghmouchi <[email protected]>
Co-authored-by: Teja Sai Sandeep Reddy Konala <[email protected]>
Co-authored-by: Augustin Mauroy <[email protected]>
Co-authored-by: Guilherme Araújo <[email protected]>
Co-authored-by: Augustin Mauroy <[email protected]>
Co-authored-by: HinataKah0 <[email protected]>
Co-authored-by: Olaleye Blessing <[email protected]>
Co-authored-by: ktssr <[email protected]>
Co-authored-by: vasanthkumar <[email protected]>
Co-authored-by: Floran Hachez <[email protected]>
Co-authored-by: Jatin <[email protected]>
fixed styleling misconfig and fixed storybooks (#5281)
fix storybook styles, imports, typescript config and dependencies (#5319
fix(package.json) Lint command is missing slashes (#5321
fix storybook local development mode (#5335)
fix(i18n): translation key (#5347)
Co-authored-by: Harkunwar Kochar <[email protected]>
Signed-off-by: Augustin Mauroy <[email protected]>
Co-authored-by: Shanmughapriyan S <[email protected]>
Signed-off-by: Augustin Mauroy <[email protected]>
* feat: Add MUI Config and Theme Provider

* added createTheme

* refactor themeConfig

* feat(theme): Fix linting and package-lock

* feat(theme): Add emotion styled and emtion react

---------

Co-authored-by: Harkunwar Kochar <[email protected]>
* feat: create codebox component

* feat: add pointer to copy button

* feat: add shell support

* feat: use code element instead of pre

* chore: fix eslint issues

* refactor: remove shell codebox

* refactor: use react.fc type

* refactor: remove duplicate encoding

* refactor: use pre element for codebox

* style: some eol

* style: some eol

* refactor: use pre element for codebox

* chore: create inlinecode story

* refactor: create inline code story type

* chore: revert .browserslistrc

* test: remove duplicated test

* test: remove beginning space on code

* refactor: setup userEvent on tests

* refactor: remove useless async

* test: manual mock isomorphic-dompurify

* fix: some fixes

* chore: create multi lang story

* test: snapshot before and after switch lang

* refactor: inline mock

* refactor: use decorators

* chore: split inlinecode component

* feat: add selected lang state

* refactor: add inlinecode decorator

* refactor: remove duplicate classes

* chore: revert .browserslistrc

* test: fix tests

* chore: wip

* feat: use story component arg

* style: stories

* test: remove i18n from clipboard test

* chore: migrate pagination component (#5331)

Co-authored-by: Teja Sai Sandeep Reddy Konala <[email protected]>
Co-authored-by: Claudio Wunder <[email protected]>
Co-authored-by: Wai.Tung <[email protected]>

* chore: add a proper decorated component

* refactor: decorated inline code

* Chore(node feat) (#5338)

Co-authored-by: Claudio Wunder <[email protected]>

* (website redesign) Feat(shellbox): migration (#5234)

Co-authored-by: Manish Kumar ⛄ <[email protected]>
Co-authored-by: Claudio Wunder <[email protected]>
Co-authored-by: Shanmughapriyan S <[email protected]>
Co-authored-by: Michael Esteban <[email protected]>
Co-authored-by: Wai.Tung <[email protected]>

* fix(i18n): translation key (#5347)

Co-authored-by: Shanmughapriyan S <[email protected]>
Co-authored-by: Claudio Wunder <[email protected]>

* feat: add hover states

* chore: fix rebase leftovers

* chore: update snapshots

* chore: install @types/prismjs

* Update index.stories.tsx

Signed-off-by: Claudio Wunder <[email protected]>

* chore: remove duplicate snapshots

* chore: remove duplicate snapshot

---------

Signed-off-by: Claudio Wunder <[email protected]>
Co-authored-by: ktssr <[email protected]>
Co-authored-by: Teja Sai Sandeep Reddy Konala <[email protected]>
Co-authored-by: Claudio Wunder <[email protected]>
Co-authored-by: Wai.Tung <[email protected]>
Co-authored-by: Claudio Wunder <[email protected]>
Co-authored-by: Augustin Mauroy <[email protected]>
Co-authored-by: Manish Kumar ⛄ <[email protected]>
Co-authored-by: Shanmughapriyan S <[email protected]>
Co-authored-by: Michael Esteban <[email protected]>
* feat: introduce built-in next.js exports and updated scripts and configs (#5384)

* chore: updated gitignore and rmeoved robots.txt

* chore: updated next-sitemap config

* chore: next-config refactored options and export support

* chore: updated imports to node: prefix

* chore: updated contributing guidelines

* chore: updated scripts

* chore: updated next-sitemap

* chore: added missing props

* fix: github-pages

* chore: remove unused package

* fix(storybook): update packages (#5386)

---------

Co-authored-by: Harkunwar Kochar <[email protected]>
Co-Authored-By: Michael Esteban <[email protected]>
@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories May 25, 2023 19:03 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org May 25, 2023 19:04 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories May 25, 2023 19:11 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories May 25, 2023 19:12 Inactive
@AugustinMauroy
Copy link
Member Author

Rebase done !

@vercel vercel bot temporarily deployed to Preview – nodejs-org May 25, 2023 19:14 Inactive
Copy link
Member

@ovflowd ovflowd left a comment

Choose a reason for hiding this comment

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

I appreciate the effort and work done here. But the current state of the PR is far from something we can ship in this repository.

I left some feedback, but I would rather not giving code examples ad I want you to think by yourself (this time) and be able to achieve something useful without the constant need of mentoring.

Signed-off-by: Augustin Mauroy <[email protected]>
@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories June 22, 2023 08:24 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org June 29, 2023 21:35 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories June 29, 2023 21:35 Inactive
@ovflowd ovflowd added website redesign Issue/PR part of the Node.js Website Redesign feature-request labels Jul 2, 2023
@ovflowd
Copy link
Member

ovflowd commented Jul 2, 2023

@AugustinMauroy this PR #5467 introduces the feature that actually will support headings metadata so you can create the ToC.

This is the overall shape of the Headings:

[
  {"depth": 1, "value": "Heading 1", "data": {"id": "custom-id"}},
  {"depth": 2, "value": "Heading 2"},
  {"depth": 3, "value": "Heading 3"},
]

And the type of Heading is also exported by @vcarl/remark-headings. So now you can adopt the approach we mentioned with the CSS and simple loops.

@AugustinMauroy AugustinMauroy marked this pull request as draft July 3, 2023 11:01
@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories July 4, 2023 11:27 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org July 4, 2023 11:28 Inactive
@AugustinMauroy
Copy link
Member Author

@ovflowd What types of data ?

@AugustinMauroy AugustinMauroy marked this pull request as ready for review July 4, 2023 11:58
@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories July 4, 2023 11:58 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org July 4, 2023 12:00 Inactive
@@ -1 +1 @@
[]
Copy link
Member

Choose a reason for hiding this comment

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

Please do not commit these files.

Copy link
Member

Choose a reason for hiding this comment

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

Run npm ci to install husky.

@ovflowd
Copy link
Member

ovflowd commented Jul 4, 2023

@ovflowd What types of data ?

Could you rephrase your question? I have no idea what you're referring to/talking about.

Copy link
Member

Choose a reason for hiding this comment

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

Why is the name of this fixture page?


li {

// not use for now
Copy link
Member

Choose a reason for hiding this comment

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

Please remove this commented code 😅

&.depth2 {
list-style-type: square;
margin-left: var(--space-08);
}
Copy link
Member

Choose a reason for hiding this comment

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

Empty line between each other statement... 👀

@bmuenzenmeyer
Copy link
Contributor

@AugustinMauroy this PR and a couple other ones seem to be stagnating. Do you want help driving them toward completion?

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

Labels

website redesign Issue/PR part of the Node.js Website Redesign

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants