2016-06-15 10:31:41 -04:00
|
|
|
- @no_container = true
|
2015-04-30 15:15:50 -04:00
|
|
|
- page_title "Git Access", "Wiki"
|
2015-09-17 06:16:24 -04:00
|
|
|
|
2016-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2016-11-29 20:46:40 -05:00
|
|
|
.wiki-page-header.has-sidebar-toggle
|
2016-11-14 16:33:21 -05:00
|
|
|
%button.btn.btn-default.visible-xs.visible-sm.pull-right.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" }
|
|
|
|
= icon('angle-double-left')
|
|
|
|
|
2016-11-15 02:45:03 -05:00
|
|
|
.git-access-header
|
|
|
|
Clone repository
|
2016-06-15 10:31:41 -04:00
|
|
|
%strong= @project_wiki.path_with_namespace
|
2013-03-03 22:43:52 -05:00
|
|
|
|
2016-11-15 02:45:03 -05:00
|
|
|
= render "shared/clone_panel", project: @project_wiki
|
2013-03-03 22:43:52 -05:00
|
|
|
|
2016-11-15 02:45:03 -05:00
|
|
|
.wiki-git-access
|
|
|
|
%h3 Install Gollum
|
2017-01-16 19:12:14 -05:00
|
|
|
%pre.dark
|
|
|
|
:preserve
|
|
|
|
gem install gollum
|
|
|
|
%p
|
|
|
|
It is recommended to install
|
|
|
|
%code github-markdown
|
|
|
|
so that GFM features render locally:
|
2016-12-15 07:28:53 -05:00
|
|
|
%pre.dark
|
|
|
|
:preserve
|
|
|
|
gem install github-markdown
|
2013-03-03 22:43:52 -05:00
|
|
|
|
2016-11-15 02:45:03 -05:00
|
|
|
%h3 Clone your wiki
|
|
|
|
%pre.dark
|
|
|
|
:preserve
|
|
|
|
git clone #{ content_tag(:span, default_url_to_repo(@project_wiki), class: 'clone')}
|
|
|
|
cd #{h @project_wiki.path}
|
2013-10-21 06:07:16 -04:00
|
|
|
|
2016-11-15 02:45:03 -05:00
|
|
|
%h3 Start Gollum and edit locally
|
|
|
|
%pre.dark
|
|
|
|
:preserve
|
|
|
|
gollum
|
|
|
|
== Sinatra/1.3.5 has taken the stage on 4567 for development with backup from Thin
|
|
|
|
>> Thin web server (v1.5.0 codename Knife)
|
|
|
|
>> Maximum connections set to 1024
|
|
|
|
>> Listening on 0.0.0.0:4567, CTRL+C to stop
|
2016-11-14 16:33:21 -05:00
|
|
|
|
|
|
|
= render 'sidebar'
|