Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Refactor tutorial card name and left-side menu to reduce redundancy #205

Closed
jimmychu0807 opened this issue Oct 5, 2021 · 0 comments
Closed
Labels
webdev 🕸 This issue is assigned to @paritytech/webdev team

Comments

@jimmychu0807
Copy link

jimmychu0807 commented Oct 5, 2021

As Sacha pointed out here. Now if we want to update the title of a tutorial. We actually have to updated them in three places:

  • DevNavMenu.tsx
  • pages/tutorials/v3.tsx
  • v3/tutorials//index.mdx

Will be good if the title on the left side menu (currently defined in DevNavMenu.tsx), the tutorial name on the card (defined in pages/tutorials/v3.tsx), are all read and built from the tutorial content page index.mdx. So we only have one source of truth. We will need to introduce a new frontmatter property, order, in mdx content page to determine the order of tutorials being laid out in tutorial index page.

@sacha-l sacha-l removed the phase-2 label Oct 29, 2021
@sacha-l sacha-l added the webdev 🕸 This issue is assigned to @paritytech/webdev team label Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webdev 🕸 This issue is assigned to @paritytech/webdev team
Projects
None yet
Development

No branches or pull requests

3 participants