Github wiki由一个单独的git存储库支持,然后是主项目存储库.
Github团队的这篇文章听起来像你应该能够链接到维基标记内的维基存储库中存储的图像.
图像和文件夹
您现在可以引用Git存储库中托管的图像.
我已经检查了我的wiki的存储库,并将资源文件夹和图像压入其中.我的问题是,我该如何使用这张图片?
这甚至可能还是我误解了什么?
是否有GitHub维基存储库的服务挂钩?GitHub是否有其他机制可供我跟踪维基编辑?
我正在尝试使用Gollumn Wiki,所以我可以编辑我的GitHub Wiki,但我似乎无法让它工作.
我在Ubuntu 11.10,64位上.
我也尝试过使用Ruby 1.9,也是同样的错误.
我为我的项目克隆了我的GitHub Wiki git存储库,启动了Gollum,这是我收到的错误:
Redcarpet
:Module的/ undefined方法`new'的NoMethodError
完整的堆栈跟踪是:
:public is no longer used to avoid overloading Module#public, use :public_folder instead
from /var/lib/gems/1.8/gems/gollum-1.3.1/bin/../lib/gollum/frontend/app.rb:17
[2011-12-06 15:20:15] INFO WEBrick 1.3.1
[2011-12-06 15:20:15] INFO ruby 1.8.7 (2011-06-30) [x86_64-linux]
== Sinatra/1.3.1 has taken the stage on 4567 for development with backup from WEBrick
[2011-12-06 15:20:20] INFO WEBrick::HTTPServer#start: pid=22017 port=4567
NoMethodError - undefined method `new' for Redcarpet:Module:
/var/lib/gems/1.8/gems/gollum-1.3.1/lib/gollum/markup.rb:463:in `render'
/var/lib/gems/1.8/gems/gollum-1.3.1/lib/gollum/page.rb:171:in `formatted_data'
/var/lib/gems/1.8/gems/gollum-1.3.1/bin/../lib/gollum/frontend/app.rb:190:in `show_page_or_file'
/var/lib/gems/1.8/gems/gollum-1.3.1/bin/../lib/gollum/frontend/app.rb:42:in `GET /' …
Run Code Online (Sandbox Code Playgroud) 添加多个角色访问权限到Gollum wiki的最佳方法是什么?
我了解如何通过Rack中间件添加Basic HTTP auth.但是,我想知道完整的多用户/角色身份验证和授权需要什么.
可以使用与Rails应用程序类似的方式使用Devise或OmniAuth吗?
需要什么?
在github中有没有办法让wiki的标题基于标记?我找到了另一个使用markdown的项目,其中Home.md wiki页面的标题来自该文件.作者也可以使用Web界面,并使页面标题与降价相同.那个项目在这里:
https://github.com/sitaramc/gitolite/wiki
当我尝试使用restructuredtext(Home.rest)使用='的下划线做同样的事情时,标题最终会被忽略,甚至不会在渲染页面中显示.使用降价时也会发生同样的事情.
我想在子目录中组织我的GitHub维基页面.我们如何引用子目录中的页面?
我正在尝试通过将其作为机架应用程序安装到我的routes.rb文件中来为我的应用程序提供基于gollum的wiki:
require 'gollum/frontend/app'
#Gollun config
gollum_path = Rails.root
Precious::App.set(:gollum_path, gollum_path)
Precious::App.set(:wiki_options, {:universal_toc => false})
TestWiki::Application.routes.draw do
mount Precious::App, :at => "wiki"
end
Run Code Online (Sandbox Code Playgroud)
维基应该在'/ wiki'运行,但每次去这个网址它会重定向到我/wiki/create/Home
,并在创建一个页面后重定向我/wiki/wiki/page_name
.
我错过了一些选择吗?这有可能吗?
有人知道将Confluence wiki 迁移到Github wiki(又名Gollum)的好方法吗?
通过很好的方式,我的意思是快速有效.
是否有任何方式以编程方式(使用库PyGithub
,GitPython
或dulwich
)将任何文件加载到MyRepo.wiki.git
存储库?当然,使用Python.
我可以MyRepo.git
通过帮助轻松地将文件上传到存储库中PyGithub
,但不幸的是,这个库没有API或使用MyRepo.wiki.git
存储库的方法.
以下是我如何将文件上传到MyRepo.git
存储库:
github_repo = github_account.get_user().get_repo('MyRepo')
head_ref = gh_repo.get_git_ref("heads/%s" % github_branch)
latest_commit = gh_repo.get_git_commit(head_ref.object.sha)
base_tree = latest_commit.tree
new_tree = gh_repo.create_git_tree(
[github.InputGitTreeElement(
path="test.txt",
mode='100755' if github_executable else '100644',
type='blob',
content="test"
)],
base_tree)
new_commit = gh_repo.create_git_commit(
message="test commit message",
parents=[latest_commit],
tree=new_tree)
head_ref.edit(sha=new_commit.sha, force=False)
Run Code Online (Sandbox Code Playgroud)
那么,怎么我可以做同样的,但与MyRepo.wiki.git
资源库?如果你能提供一个使用PyGithub库的例子 - 那真的很棒.
PS我可以使用Gollum API吗?
PPS没有人*.wiki.git
使用过任何类型的python库吗?我不相信 :(
PPPS如果我不够清楚:我不想以任何方式创建本地存储库.我只想动态修改repo结构 - 就像我的例子那样.但是使用*.wiki.git存储库.
谢谢!
我想创建一个Wiki页面,该页面是一个序言(标准减价),然后是HTML / JS代码列表,然后是(在我想的框架中)此代码将生成的页面。
这可能吗?