Commit 5f869559 authored by Marcel Amirault's avatar Marcel Amirault Committed by Suzanne Selhorn

Update pages keyword to new style

parent 08cd6b69
...@@ -4351,15 +4351,12 @@ name level and not in the `vault` section. ...@@ -4351,15 +4351,12 @@ name level and not in the `vault` section.
### `pages` ### `pages`
Use `pages` to upload static content to GitLab. The content Use `pages` to define a [GitLab Pages](../../user/project/pages/index.md) job that
is then published as a website. You must: uploads static content to GitLab. The content is then published as a website.
- Place any static content in a `public/` directory. **Keyword type**: Job name.
- Define [`artifacts`](#artifacts) with a path to the `public/` directory.
The following example moves all files from the root of the project to the **Example of `pages`**:
`public/` directory. The `.public` workaround is so `cp` does not also copy
`public/` to itself in an infinite loop:
```yaml ```yaml
pages: pages:
...@@ -4375,7 +4372,15 @@ pages: ...@@ -4375,7 +4372,15 @@ pages:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
``` ```
View the [GitLab Pages user documentation](../../user/project/pages/index.md). This example moves all files from the root of the project to the `public/` directory.
The `.public` workaround is so `cp` does not also copy `public/` to itself in an infinite loop.
**Additional details**:
You must:
- Place any static content in a `public/` directory.
- Define [`artifacts`](#artifacts) with a path to the `public/` directory.
### `inherit` ### `inherit`
......
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