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?
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:
true)mainbranch?