···11+
22+33+---
44+55+Example plain HTML site using GitLab Pages.
66+77+Learn more about GitLab Pages at https://pages.gitlab.io and the official
88+documentation https://docs.gitlab.com/ce/user/project/pages/.
99+1010+---
1111+1212+<!-- START doctoc generated TOC please keep comment here to allow auto update -->
1313+<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
1414+**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
1515+1616+- [GitLab CI](#gitlab-ci)
1717+- [GitLab User or Group Pages](#gitlab-user-or-group-pages)
1818+- [Did you fork this project?](#did-you-fork-this-project)
1919+- [Troubleshooting](#troubleshooting)
2020+2121+<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2222+2323+## GitLab CI
2424+2525+This project's static Pages are built by [GitLab CI][ci], following the steps
2626+defined in [`.gitlab-ci.yml`](.gitlab-ci.yml):
2727+2828+```
2929+image: alpine:latest
3030+3131+pages:
3232+ stage: deploy
3333+ script:
3434+ - echo 'Nothing to do...'
3535+ artifacts:
3636+ paths:
3737+ - public
3838+ only:
3939+ - master
4040+```
4141+4242+The above example expects to put all your HTML files in the `public/` directory.
4343+4444+## GitLab User or Group Pages
4545+4646+To use this project as your user/group website, you will need one additional
4747+step: just rename your project to `namespace.gitlab.io`, where `namespace` is
4848+your `username` or `groupname`. This can be done by navigating to your
4949+project's **Settings**.
5050+5151+Read more about [user/group Pages][userpages] and [project Pages][projpages].
5252+5353+## Did you fork this project?
5454+5555+If you forked this project for your own use, please go to your project's
5656+**Settings** and remove the forking relationship, which won't be necessary
5757+unless you want to contribute back to the upstream project.
5858+5959+## Troubleshooting
6060+6161+1. CSS is missing! That means that you have wrongly set up the CSS URL in your
6262+ HTML files. Have a look at the [index.html] for an example.
6363+6464+[ci]: https://about.gitlab.com/gitlab-ci/
6565+[index.html]: https://gitlab.com/pages/plain-html/blob/master/public/index.html
6666+[userpages]: https://docs.gitlab.com/ce/user/project/pages/introduction.html#user-or-group-pages
6767+[projpages]: https://docs.gitlab.com/ce/user/project/pages/introduction.html#project-pages
+23
public/index.html
···11+<!DOCTYPE html>
22+<html>
33+ <head>
44+ <meta charset="utf-8">
55+ <meta name="generator" content="GitLab Pages">
66+ <title>Plain HTML site using GitLab Pages</title>
77+ <link rel="stylesheet" href="style.css">
88+ </head>
99+ <body>
1010+ <div class="navbar">
1111+ <a href="https://pages.gitlab.io/plain-html/">Plain HTML Example</a>
1212+ <a href="https://gitlab.com/pages/plain-html/">Repository</a>
1313+ <a href="https://gitlab.com/pages/">Other Examples</a>
1414+ </div>
1515+1616+ <h1>Hello World!</h1>
1717+1818+ <p>
1919+ This is a simple plain-HTML website on GitLab Pages, without any fancy static site generator.
2020+ </p>
2121+ </body>
2222+</html>
2323+