Commit 45e0836d authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Merge branch '5-automatic-path-configuration' into 'develop'

Resolve "Automatic path configuration"

See merge request core-services/pages-jekyll-lcsb-template!1
parents 40c091ca 6b347443
Pipeline #15863 passed with stage
in 1 minute and 20 seconds
image: ruby:2.5
JEKYLL_ENV: production
build the website:
stage: build
- bundle install && bundle update
stage: test
- bundle exec jekyll build -d test
- 'echo "baseurl: /$CI_PROJECT_NAME" >> _config_ci.yml'
- 'echo "url: https://$CI_PROJECT_NAMESPACE.$CI_PAGES_DOMAIN" >> _config_ci.yml'
- bundle exec jekyll build -d test --config "_config.yml,_config_ci.yml"
- 'echo $CI_COMMIT_SHA > test/version'
expire_in: 1 week
expire_in: 3 days
- test
- master
JEKYLL_ENV: production
deploy the pages:
stage: deploy
- master
- develop
- bundle exec jekyll build -d public
- mv test public
- echo "Your website is available at $CI_PAGES_URL"
expire_in: 1 week
- public
- master
......@@ -19,9 +19,11 @@ description: >- # this means to ignore newlines until "baseurl:"
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
# URL settings (the most difficult part, please refer to the guide)
baseurl: "/pages-jekyll-lcsb-template" # the subpath of your site, e.g. /gitlab-repository-name
url: "" # the base hostname & protocol for your site, e.g.
# URL settings that will be used to access on your local machine
# Note #1: you will need to use port 4000, https://localhost:4000/website in your browser)
# Note #2: the configuration used in GitlabCI is generated in .gitlab-ci.yml file automatically for you
baseurl: "/website"
url: "https://localhost"
# Banner settings
banner: default # When you have custom images, change this setting's value to the name of the folder containing them
......@@ -29,11 +29,9 @@ Additionally, you can also navigate to the [repository for theme](https://git-r3
9. (optional) In gitlab, go to **Settings** (under left-hand menu) > **General** > **Advanced** (hit `Expand` button) > **Remove fork relationship** (red button), then follow the instructions from the pop-up.
## What should you change in settings file?
* `baseurl` - this is very important. Set it to the name of the project (i.e. repository name). Here it's `pages-jekyll-lcsb-template`
* `url` - this is equally important. Please set it to ``. For example - if your project is inside `core-services` namespace, it should be: `url: ""`. For `minerva`, it would be: `url: ""`.
Nothing! :) We've taken care of everything for you!
You may want to change:
* `title` field
* `e-mail` field
* `description` field
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment