-
-
Notifications
You must be signed in to change notification settings - Fork 322
Files can now be included from other places than source/includes. #47
Files can now be included from other places than source/includes. #47
Conversation
Exactly the same as #46, but from a fresh branch. Sorry for the trouble! |
No trouble, thanks for taking the time. |
LGTM. I'm just thinking we may want to document this somewhere. Because I'm likely to want to build on this with #42 maybe creating a |
No problem, I'll add a |
Thanks, that's great. |
Done! Please edit them some more if you wish! |
Fab, thanks again! |
Included in |
@MikeRalphson, I now realise that this fix didn't actually help in cases where shins is included in a separate project from where the documentation is generated.
A more likely case is that the user wants to include files from Do you want me to change the functionality of Or should i submit a PR where the user can use |
I think the former ( |
Take 2. ;)
Not sure if this is within the scope of Shins, but feel free to use it if you want!
This PR let's a user include files from other places than
source/includes
if the included file begins with a slash/
. The files are included relative to the root shins path and doesn't have to begin with an underscore.So it's now possible to include
file-a.md
,file-b.md
andfile-c.md
fromshins/myfolder
like this;If you use widdershins;
--includes '/myfolder/file-a,/myfolder/file-b,/myfolder/file-c'
.