Skip to content

Index links point to online repository #16

Description

@nhevia

Since we know the path of each file (ex: src/sdocs.js) using options to determine git online repository (be github, gitlab, bitbucket, etc) can be reproduced easily (ex: https://github.com/nhevia/simple-docs/blob/master/src/sdocs.js).

File paths in the index are links already (hash links inside the output file), so this needs to be added next to them (icon for example).

Things to take into consideration:

  • User is able to opt-out (default: true)
  • Git remote option list (github, gitlab, bitbucket, etc). This will need maintenance as providers might differ in their url structure.
  • Consider main branch?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions