Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
139ebce6
Commit
139ebce6
authored
Dec 18, 2015
by
Achilleas Pipinellis
Committed by
James Edwards-Jones
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up the text in pages view
parent
6f999703
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+15
-8
No files found.
app/views/projects/edit.html.haml
View file @
139ebce6
...
@@ -142,25 +142,32 @@
...
@@ -142,25 +142,32 @@
.panel-body
.panel-body
-
if
@project
.
pages_url
-
if
@project
.
pages_url
%strong
%strong
Congratulations
.
Your pages are served at:
Congratulations
!
Your pages are served at:
%p
=
link_to
@project
.
pages_url
,
@project
.
pages_url
%p
=
link_to
@project
.
pages_url
,
@project
.
pages_url
-
else
-
else
%p
%p
To publish pages create .gitlab-ci.yml with
Learn how to upload your static site and have it served by
%strong
pages job
GitLab by following the
#{
link_to
"documentation on GitLab Pages"
,
"http://doc.gitlab.com/pages/README.html"
,
target: :blank
}
.
and send public/ folder to GitLab.
%p
%p
Use existing tools:
In the example below we define a special job named
%code
pages
which is using Jekyll to build a static site. The generated
HTML will be stored in the
%code
public/
directory which will then be archived and uploaded to GitLab.
The name of the directory should not be different than
%code
public/
in order for the pages to work.
%ul
%ul
%li
%li
%pre
%pre
:plain
:plain
pages:
pages:
image: jekyll
image: jekyll
/jekyll
script: jekyll build
script: jekyll build
-d public/
artifacts:
artifacts:
paths:
paths:
- public
- public
/
-
if
@project
.
pages_url
&&
can?
(
current_user
,
:remove_pages
,
@project
)
-
if
@project
.
pages_url
&&
can?
(
current_user
,
:remove_pages
,
@project
)
.form-actions
.form-actions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment