Skip to content

refactor: replace sortByWeight() with gen-toc output in VitePress pipeline #1035

Description

@VelmiraS

Prerequisites

Changes

  • Add a gen-toc step to the pipeline (after docforge run and before the VitePress build). It should generate hugo/content/toc.yaml.
  • Replace sortByWeight() in sidebar.ts with data from toc.yaml.
  • Check whether parts of the post-processing (part-index.js) can also read from toc.yaml instead of scanning the file system.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementEnhancement, improvement, extension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions