I am writing a tutorial for users of our API and want, for example, to include code snippets and complete files. I can expose the whole directory structure like git to load people; no problem. But I would like to embed the specific code on the corresponding pages as I can, using the entity.
I do this by copying each file to gist, pressing "embed" and copying the resulting link to my training page.
However, it seems wasteful to have a git repository configured with full files, and then duplicate it for each file. Is there a better way to do this?
(Alternatively, if there is a way to insert a link to a specific file from git, I could do it too), it will say here: βHere is a complete sample of the file,β so I would pull it that way well.)
Thanks.
source share