Skip to content

bug: not adding editLink breaks DocFooter #40

Description

@KalaayPT

Vitepress version: 1.2.2
this bug is a bit convoluted to explain but bear with me:
i recently installed all of this and added the default config and whatever (i.e. used the plugin as intended). something i noticed almost immediately is that my site navigation (specifically, DocFooter prev and next page links, but also "Updated" text if a change hasn't been committed yet) is broken, see example:

image
image

what you can see here is that if i start on welcome, click next to go to "getting started" and land on the getting started page, i encounter three issues at once:

  1. i do not have a "previous page" button
  2. my "next page" button redirects to the page i'm on
  3. LastUpdate says 54 years ago (i have not committed this page yet)

what absolutely baffled me when fiddling around with and trying to fix this myself is that all of this gets fixed instantly once i add editLink: { pattern: 'https://github.com/KalaayPT/Profit-Taker-Guide/edit/master/docs/:path' }, to my config.mjs in docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions