2017-06-12 11:47:46 +00:00
- @content_class = "limit-container-width limit-container-width-sm" unless fluid_layout
2017-09-27 17:13:29 +00:00
- page_title s_("WikiClone|Git Access"), _("Wiki")
2015-09-17 10:16:24 +00:00
2017-06-12 11:47:46 +00:00
.wiki-page-header.has-sidebar-toggle
2018-05-10 19:22:56 +00:00
%button.btn.btn-default.d-block.d-sm-block.d-md-none.float-right.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" }
2017-06-12 11:47:46 +00:00
= icon('angle-double-left')
2016-11-14 21:33:21 +00:00
2017-06-12 11:47:46 +00:00
.git-access-header
2017-09-27 17:13:29 +00:00
= _("Clone repository")
2017-07-22 00:37:22 +00:00
%strong= @project_wiki.full_path
2013-03-04 03:43:52 +00:00
2017-06-12 11:47:46 +00:00
= render "shared/clone_panel", project: @project_wiki
2013-03-04 03:43:52 +00:00
2017-06-12 11:47:46 +00:00
.wiki-git-access
2017-09-27 17:13:29 +00:00
%h3= s_("WikiClone|Install Gollum")
2017-06-12 11:47:46 +00:00
%pre.dark
:preserve
gem install gollum
%p
2017-09-27 17:13:29 +00:00
= (s_("WikiClone|It is recommended to install %{markdown} so that GFM features render locally:") % { markdown: "<code>github-markdown</code>" }).html_safe
2017-06-12 11:47:46 +00:00
%pre.dark
:preserve
gem install github-markdown
2013-03-04 03:43:52 +00:00
2017-09-27 17:13:29 +00:00
%h3= s_("WikiClone|Clone your wiki")
2017-06-12 11:47:46 +00:00
%pre.dark
:preserve
git clone #{ content_tag(:span, h(default_url_to_repo(@project_wiki)), class: 'clone')}
cd #{h @project_wiki.path}
2013-10-21 10:07:16 +00:00
2017-09-27 17:13:29 +00:00
%h3= s_("WikiClone|Start Gollum and edit locally")
2017-06-12 11:47:46 +00:00
%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 21:33:21 +00:00
= render 'sidebar'