从github wiki(?)轻松导出 [英] Effortless export from github wiki (?)

查看:833
本文介绍了从github wiki(?)轻松导出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在GitHub维基上收集了很多资料。我真的很喜欢使用wiki与其他人合作,恕我直言,这个平台真的很好,我喜欢它!

所以,我想继续使用GH维基收集东西,编辑,保存等,但我也想出口的内容,以创建一个PDF文件,我们可以称之为手册。
我想每次只想运行几个脚本时自动生成手册的更新版本,我不能在这方面付出太多努力。



我想有可能以某种方式导出内容并使用pandoc( http://johnmacfarlane.net/pandoc/ )来创建PDF可能会添加一个索引和一个样式文件。



另一个有趣的想法可能是每月发布一个网站,直接从wiki中转储内容。



我猜其他人已经做了这样的事情,但我没有找到任何东西。
任何想法?

解决方案

但是... GitHub仓库的Github wiki本身就是一个git仓库 2010年8月推出)。



您可以克隆它,推送它或从中拉出。


每个wiki都是一个Git仓库,所以你可以像其他任何东西一样推拉它们。

每个wiki尊重与源仓库相同的权限。

只需添加 .wiki 添加到URL中的任何存储库名称,即可开始使用。


这使得您的问题的导出部分变得非常简单。

从那里,你会发现吨的脚本转换成PDF降价页面:




I am collecting quite a lot of material in a GitHub wiki. I really like to use the wiki to cooperate with other people and IMHO the platform is really nice, I like it!

So, I would like to keep using the GH wiki to collect stuff, edit, save,etc but I also would like to export the content in order to create a pdf file that we can call "a manual". I would like to generate an updated version of the manual automatically everytime I want just running a couple of scripts, I can not put too much effort on this.

I guess it is possible to export the content somehow and the use pandoc (http://johnmacfarlane.net/pandoc/) to create the pdf maybe adding an index and a style file.

Another interesting idea could be publish a website once a month dumping content directly from the wiki.

I guess other people already did something like this but I did not find anynthing. Any idea?

解决方案

But... the Github wiki of a GitHub repo is a git repo in itself (introduced in August 2010).

You can clone it, push to it or pull from it.

Each wiki is a Git repository, so you're able to push and pull them like anything else.
Each wiki respects the same permissions as the source repository.
Just add ".wiki" to any repository name in the URL, and you're ready to go.

That makes the "export" part of your question really trivial.

From there, you will find tons of script for converting markdown pages into pdf:

这篇关于从github wiki(?)轻松导出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆