gitbook-cli icon indicating copy to clipboard operation
gitbook-cli copied to clipboard

include ignores relative links

Open mixmix opened this issue 9 years ago • 1 comments

when I include a file from another git repo, it ignores the relative links. This means that images that were referenced, or links 'break'

mixmix avatar May 31 '16 01:05 mixmix

e.g.

{% include '[email protected]:swcarpentry/shell-novice.git/'+ 'index.md' + '#gh-pages' %}

Which includes (sample):

## Topics

1.  [Automated Version Control](01-basics.html)
2.  [Setting Up Git](02-setup.html)
3.  [Creating a Repository](03-create.html)
4.  [Tracking Changes](04-changes.html)
5.  [Exploring History](05-history.html)

builds like this

selection_004

When I want the link to be something like : https://raw.github.com/swcarpentry/shell-novice/blob/gh-pages/01-basics.html

(having raw html isn't that useful, the more important case is for valid paths to images)

mixmix avatar May 31 '16 01:05 mixmix