this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Initial template creation

authored by

GitLab and committed by
Jason Lenny
2e0dd521

+125
+11
.gitlab-ci.yml
··· 1 + image: alpine:latest 2 + 3 + pages: 4 + stage: deploy 5 + script: 6 + - echo 'Nothing to do...' 7 + artifacts: 8 + paths: 9 + - public 10 + only: 11 + - master
+67
README.md
··· 1 + ![Build Status](https://gitlab.com/pages/plain-html/badges/master/build.svg) 2 + 3 + --- 4 + 5 + Example plain HTML site using GitLab Pages. 6 + 7 + Learn more about GitLab Pages at https://pages.gitlab.io and the official 8 + documentation https://docs.gitlab.com/ce/user/project/pages/. 9 + 10 + --- 11 + 12 + <!-- START doctoc generated TOC please keep comment here to allow auto update --> 13 + <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> 14 + **Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)* 15 + 16 + - [GitLab CI](#gitlab-ci) 17 + - [GitLab User or Group Pages](#gitlab-user-or-group-pages) 18 + - [Did you fork this project?](#did-you-fork-this-project) 19 + - [Troubleshooting](#troubleshooting) 20 + 21 + <!-- END doctoc generated TOC please keep comment here to allow auto update --> 22 + 23 + ## GitLab CI 24 + 25 + This project's static Pages are built by [GitLab CI][ci], following the steps 26 + defined in [`.gitlab-ci.yml`](.gitlab-ci.yml): 27 + 28 + ``` 29 + image: alpine:latest 30 + 31 + pages: 32 + stage: deploy 33 + script: 34 + - echo 'Nothing to do...' 35 + artifacts: 36 + paths: 37 + - public 38 + only: 39 + - master 40 + ``` 41 + 42 + The above example expects to put all your HTML files in the `public/` directory. 43 + 44 + ## GitLab User or Group Pages 45 + 46 + To use this project as your user/group website, you will need one additional 47 + step: just rename your project to `namespace.gitlab.io`, where `namespace` is 48 + your `username` or `groupname`. This can be done by navigating to your 49 + project's **Settings**. 50 + 51 + Read more about [user/group Pages][userpages] and [project Pages][projpages]. 52 + 53 + ## Did you fork this project? 54 + 55 + If you forked this project for your own use, please go to your project's 56 + **Settings** and remove the forking relationship, which won't be necessary 57 + unless you want to contribute back to the upstream project. 58 + 59 + ## Troubleshooting 60 + 61 + 1. CSS is missing! That means that you have wrongly set up the CSS URL in your 62 + HTML files. Have a look at the [index.html] for an example. 63 + 64 + [ci]: https://about.gitlab.com/gitlab-ci/ 65 + [index.html]: https://gitlab.com/pages/plain-html/blob/master/public/index.html 66 + [userpages]: https://docs.gitlab.com/ce/user/project/pages/introduction.html#user-or-group-pages 67 + [projpages]: https://docs.gitlab.com/ce/user/project/pages/introduction.html#project-pages
+23
public/index.html
··· 1 + <!DOCTYPE html> 2 + <html> 3 + <head> 4 + <meta charset="utf-8"> 5 + <meta name="generator" content="GitLab Pages"> 6 + <title>Plain HTML site using GitLab Pages</title> 7 + <link rel="stylesheet" href="style.css"> 8 + </head> 9 + <body> 10 + <div class="navbar"> 11 + <a href="https://pages.gitlab.io/plain-html/">Plain HTML Example</a> 12 + <a href="https://gitlab.com/pages/plain-html/">Repository</a> 13 + <a href="https://gitlab.com/pages/">Other Examples</a> 14 + </div> 15 + 16 + <h1>Hello World!</h1> 17 + 18 + <p> 19 + This is a simple plain-HTML website on GitLab Pages, without any fancy static site generator. 20 + </p> 21 + </body> 22 + </html> 23 +
+24
public/style.css
··· 1 + body { 2 + font-family: sans-serif; 3 + margin: auto; 4 + max-width: 1280px; 5 + } 6 + 7 + .navbar { 8 + background-color: #313236; 9 + border-radius: 2px; 10 + max-width: 800px; 11 + } 12 + 13 + .navbar a { 14 + color: #aaa; 15 + display: inline-block; 16 + font-size: 15px; 17 + padding: 10px; 18 + text-decoration: none; 19 + } 20 + 21 + .navbar a:hover { 22 + color: #ffffff; 23 + } 24 +