Dennis Lee a946bd85d6 Use an updated version of ruby | 4 年之前 | |
---|---|---|
_includes | 7 年之前 | |
_layouts | 8 年之前 | |
_posts | 7 年之前 | |
_sass | 8 年之前 | |
css | 8 年之前 | |
.gitattributes | 7 年之前 | |
.gitignore | 4 年之前 | |
.gitlab-ci.yml | 4 年之前 | |
404.html | 4 年之前 | |
Gemfile | 4 年之前 | |
Gemfile.lock | 4 年之前 | |
README.md | 7 年之前 | |
_config.yml | 4 年之前 | |
about.md | 4 年之前 | |
feed.xml | 8 年之前 | |
index.html | 8 年之前 |
Example Jekyll website using GitLab Pages. View it live at https://pages.gitlab.io/jekyll
Learn more about GitLab Pages or read the the official GitLab Pages documentation.
Table of Contents generated with DocToc
You can get started with GitLab Pages using Jekyll easily by either forking this repository or by uploading a new/existing Jekyll project.
Remember you need to wait for your site to build before you will be able to see your changes. You can track the build on the Pipelines tab.
jekyll new
to create a new Jekyll Project..gitlab-ci.yml
to the root of your project.This project's static Pages are built by GitLab CI, following the steps
defined in .gitlab-ci.yml
:
image: ruby:2.3
variables:
JEKYLL_ENV: production
pages:
script:
- bundle install
- bundle exec jekyll build -d public
artifacts:
paths:
- public
only:
- master
To work locally with this project, you'll have to follow the steps below:
bundle
bundle exec jekyll serve
The above commands should be executed from the root directory of this project.
Read more at Jekyll's documentation.
To use this project as your user/group website, you will need one additional
step: just rename your project to namespace.gitlab.io
, where namespace
is
your username
or groupname
. This can be done by navigating to your
project's Settings.
Read more about user/group Pages and project Pages.
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.