markup icon indicating copy to clipboard operation
markup copied to clipboard

Reopen issue 346 - Include file-content as part of markdown

Open mcarans opened this issue 8 years ago • 52 comments

Please reopen https://github.com/github/markup/issues/346 - just look at the comments to see the support for this feature

mcarans avatar Feb 05 '18 08:02 mcarans

Just in case anyone else was confused, @BurdetteLamar kindly explained to me that his markdown helper requires running before pushing to GitHub ie. it takes a template and generates the README.md from that template with any include files incorporated. You then check in the generated README.md. Combined with a Git hook, it could be a helpful automated workaround.

The proper solution is for GitHub to add this functionality directly so we do not need any workarounds.

mcarans avatar Feb 26 '18 14:02 mcarans

"Proper solution" indeed. A main difference is that at GH, the inclusion could be done at render time. This would mean that the project's README.md would be the template, instead of being manufactured from the template and uploaded separately. :(

BurdetteLamar avatar Feb 26 '18 18:02 BurdetteLamar

+1

DDBdrift avatar Mar 06 '18 15:03 DDBdrift

+1

mikessoldier avatar Mar 08 '18 14:03 mikessoldier

As I said earlier, I've put up gem markdown_helper, which does file inclusion and a couple of other things. It's written in Ruby, of course. Would some here be more comfortable with similar functionality offered in a different language? If so, which language(s)? Possibly one for Windows and one for Linux?

BurdetteLamar avatar Mar 20 '18 16:03 BurdetteLamar

+1

SamuelMarks avatar Mar 23 '18 11:03 SamuelMarks

I have same docs in different languages. The reason why I need such a feature is, that the code will be equal in every language file. But if the code changes I had to change it in every language.

progral avatar Apr 02 '18 18:04 progral

+1

Would be great to be able to do this. In both the wiki and repo. Have a standard copyright, help, quick jump links back and forth, company policy information, etc... Edit one file and change it everywhere.

novafire99 avatar Apr 23 '18 22:04 novafire99

+1

vnenkpet avatar May 12 '18 09:05 vnenkpet

+1

ttben avatar May 31 '18 08:05 ttben

+1 It makes it easier to keep an organization's github-pages site in sync with the main repo's markdown. Ideally, one could store the common content in a separate file and have it included by other markdown documents.

Currently, If you have content which should be seen (not linked) on a README.md but also seen on a github-pages site then you must duplicate the content or include the whole README.md on the site. I don't think this is preferred for most use cases.

It would be even better if we could include a particular section of a separate markdown document.

What I'm advocating for is not including source files or external content but rather just other markdown from the same repository which shouldn't pose a security problem.

ghost avatar Jun 01 '18 00:06 ghost

+1

Essenceia avatar Jun 19 '18 14:06 Essenceia

+1

mrutkows avatar Jun 19 '18 18:06 mrutkows

+1

basilhariri avatar Jun 19 '18 18:06 basilhariri

+1

kloczek avatar Jul 03 '18 10:07 kloczek

+1

ghost avatar Jul 03 '18 14:07 ghost

+1

fabiojwalter avatar Jul 03 '18 17:07 fabiojwalter

+1

JoshuaWise avatar Jul 08 '18 19:07 JoshuaWise

It would be an idea to use the :+1: reaction to the issue to tally support, rather than flood the issue tracker with "+1" comments, now that Github actually does support that.

FireyFly avatar Jul 09 '18 07:07 FireyFly

+1

SandroLuck avatar Jul 20 '18 08:07 SandroLuck