Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Pages Test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitLab Tests
Pages Test
Commits
b6b085e7
Verified
Commit
b6b085e7
authored
2 years ago
by
Chris Coley
Browse files
Options
Downloads
Patches
Plain Diff
Update README
parent
b8176b5c
Loading
Loading
No related merge requests found
Pipeline
#718
passed
2 years ago
Stage: .pre
Stage: deploy
Changes
1
Pipelines
6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+5
-48
5 additions, 48 deletions
README.md
with
5 additions
and
48 deletions
README.md
+
5
−
48
View file @
b6b085e7
[

](https://git.codingallnight.com/
chri
s/pages-test/-/commits/master)
[

](https://git.codingallnight.com/
gitlab-test
s/pages-test/-/commits/master)
---
Example plain HTML site using GitLab Pages and Environments.
The Pages site is available at https://
chri
s.pages.codingallnight.com/pages-test
The Pages site is available at https://
gitlab-test
s.pages.codingallnight.com/pages-test
The Environments are dynamic, changing every time a CI job is ran. However, you
can see the currently available ones here:
https://git.codingallnight.com/
chri
s/pages-test/-/environments?search=review
https://git.codingallnight.com/
gitlab-page
s/pages-test/-/environments?search=review
Learn more about GitLab Pages at https://pages.gitlab.io and the official
documentation https://docs.gitlab.com/ce/user/project/pages/.
---
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents**
*generated with [DocToc](https://github.com/thlorenz/doctoc)*
-
[
GitLab CI
](
#gitlab-ci
)
-
[
GitLab User or Group Pages
](
#gitlab-user-or-group-pages
)
-
[
Did you fork this project?
](
#did-you-fork-this-project
)
-
[
Troubleshooting
](
#troubleshooting
)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
## GitLab CI
This project's static Pages are built by
[
GitLab CI
][
ci
]
, following the steps
defined in
[
`.gitlab-ci.yml`
](
.gitlab-ci.yml
)
:
```
image: alpine:latest
pages:
stage: deploy
script:
- echo 'Nothing to do...'
artifacts:
paths:
- public
only:
- master
```
The above example expects to put all your HTML files in the
`public/`
directory.
## GitLab User or Group Pages
To use this project as your user/group website, you will need one additional
...
...
@@ -56,18 +22,9 @@ project's **Settings**.
Read more about
[
user/group Pages
][
userpages
]
and
[
project Pages
][
projpages
]
.
## Did you fork this project?
If you forked this project for your own use, please go to your project's
**Settings**
and remove the forking relationship, which won't be necessary
unless you want to contribute back to the upstream project.
## Troubleshooting
1.
CSS is missing! That means that you have wrongly set up the CSS URL in your
HTML files. Have a look at the [index.html] for an example.
[
ci
]:
https://about.gitlab.com/gitlab-ci/
[
index.html
]:
https://gitlab.com/pages/plain-html/blob/master/public/index.html
[
userpages
]:
https://docs.gitlab.com/ce/user/project/pages/introduction.html#user-or-group-pages
[
projpages
]:
https://docs.gitlab.com/ce/user/project/pages/introduction.html#project-pages
[
_modeline
]:
#
( vi: set ts=4 sw=4 et wrap ft=markdown: )
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment