Skip to main content

docusaurus plugin - an even better plan ctd

From docusaurus plugin - an even better plan

More things to take care for:

  1. Convert backlinks into proper links for docusaurus. (can be done later)
  2. Show tags into the docs itself in docusaurus (same as abve, for later), and with appropriate ui/ux

Approx pseudo-code:

  • Create a var to keep track of filenames and corresponding tags ✅ 2024-07-24
  • Create a function that will take the source dir ✅ 2024-07-24
    • Glob sync doc files, from a specified dir ✅ 2024-07-24
    • For each file (use map or forEach): ✅ 2024-07-25
      • Read the file ✅ 2024-07-24
      • Extract the existing tags from frontmatter using gray matter ✅ 2024-07-24
      • Change all backlinks to suitable docusaurus format (later) 🔽 ✅ 2024-07-24
      • Add this to the global tags var ✅ 2024-07-24
      • Write additional metadata+existing meta data+content to a file in the target dir 🔺 ✅ 2024-07-24
  • Copy the blog ✅ 2024-07-25
  • Use the tags dictionary to create the sidebar file ✅ 2024-07-25