Commit 96d7f5d6 authored by Marcel Amirault's avatar Marcel Amirault Committed by Evan Read

Fix alert boxes

Changes alert boxes to match style guide
parent f1695a36
---
# Error: gitlab.AlertBoxStyle
#
# Makes sure alert boxes are used with block quotes.
#
# Checks for 3 formatting issues:
# - Alert boxes inside a block quote (">")
# - Alert boxes with the note text on the same line
# - Alert boxes using words other than "NOTE" or "WARNING"
#
# For a list of all options, see https://errata-ai.gitbook.io/vale/getting-started/styles
extends: existence
message: 'Alert box "%s" must use the formatting in the style guide.'
link: https://docs.gitlab.com/ee/development/documentation/styleguide.html#alert-boxes
level: error
nonword: true
scope: raw
raw:
- '(\n *\> *(?:NOTE|WARNING)|'
- '\n(NOTE):[^\n]|' # Adding "WARNING" here causes a false positive
- '\n *(?:> )?\**(Note|note|TIP|Tip|tip|CAUTION|Caution|caution|DANGER|Danger|danger|warning):.*)' ## Adding "Warning" here causes a false positive
...@@ -308,7 +308,8 @@ log data to build up in `pg_xlog`. Removing the unused slots can reduce the amou ...@@ -308,7 +308,8 @@ log data to build up in `pg_xlog`. Removing the unused slots can reduce the amou
sudo gitlab-psql sudo gitlab-psql
``` ```
Note: Using `gitlab-rails dbconsole` will not work, because managing replication slots requires superuser permissions. NOTE:
Using `gitlab-rails dbconsole` will not work, because managing replication slots requires superuser permissions.
1. View your replication slots with: 1. View your replication slots with:
......
...@@ -28,7 +28,8 @@ GitLab Shell solves this by providing a way to authorize SSH users via a fast, ...@@ -28,7 +28,8 @@ GitLab Shell solves this by providing a way to authorize SSH users via a fast,
indexed lookup in the GitLab database. This page describes how to enable the fast indexed lookup in the GitLab database. This page describes how to enable the fast
lookup of authorized SSH keys. lookup of authorized SSH keys.
> **Warning:** OpenSSH version 6.9+ is required because WARNING:
OpenSSH version 6.9+ is required because
`AuthorizedKeysCommand` must be able to accept a fingerprint. These `AuthorizedKeysCommand` must be able to accept a fingerprint. These
instructions will break installations using older versions of OpenSSH, such as instructions will break installations using older versions of OpenSSH, such as
those included with CentOS 6 as of September 2017. If you want to use this those included with CentOS 6 as of September 2017. If you want to use this
......
...@@ -19,7 +19,8 @@ user, including ones that expire 24 hours after issuing. ...@@ -19,7 +19,8 @@ user, including ones that expire 24 hours after issuing.
In such setups some external automated process is needed to constantly In such setups some external automated process is needed to constantly
upload the new keys to GitLab. upload the new keys to GitLab.
> **Warning:** OpenSSH version 6.9+ is required because that version WARNING:
OpenSSH version 6.9+ is required because that version
introduced the `AuthorizedPrincipalsCommand` configuration option. If introduced the `AuthorizedPrincipalsCommand` configuration option. If
using CentOS 6, you can [follow these using CentOS 6, you can [follow these
instructions](fast_ssh_key_lookup.html#compiling-a-custom-version-of-openssh-for-centos-6) instructions](fast_ssh_key_lookup.html#compiling-a-custom-version-of-openssh-for-centos-6)
......
...@@ -40,27 +40,26 @@ storage2: ...@@ -40,27 +40,26 @@ storage2:
## Configure GitLab ## Configure GitLab
> **Warning:** In order for [backups](../raketasks/backup_restore.md) to work correctly, the storage path must **not** be a
> In order for [backups](../raketasks/backup_restore.md) to work correctly, the storage path must **not** be a mount point and the GitLab user should have correct permissions for the parent
> mount point and the GitLab user should have correct permissions for the parent directory of the path. In Omnibus GitLab this is taken care of automatically,
> directory of the path. In Omnibus GitLab this is taken care of automatically, but for source installations you should be extra careful.
> but for source installations you should be extra careful.
> The thing is that for compatibility reasons `gitlab.yml` has a different
> The thing is that for compatibility reasons `gitlab.yml` has a different structure than Omnibus. In `gitlab.yml` you indicate the path for the
> structure than Omnibus. In `gitlab.yml` you indicate the path for the repositories, for example `/home/git/repositories`, while in Omnibus you
> repositories, for example `/home/git/repositories`, while in Omnibus you indicate `git_data_dirs`, which for the example above would be `/home/git`.
> indicate `git_data_dirs`, which for the example above would be `/home/git`. Then, Omnibus creates a `repositories` directory under that path to use with
> Then, Omnibus creates a `repositories` directory under that path to use with `gitlab.yml`.
> `gitlab.yml`.
> This little detail matters because while restoring a backup, the current
> This little detail matters because while restoring a backup, the current contents of `/home/git/repositories` [are moved to](https://gitlab.com/gitlab-org/gitlab/blob/033e5423a2594e08a7ebcd2379bd2331f4c39032/lib/backup/repository.rb#L54-56) `/home/git/repositories.old`,
> contents of `/home/git/repositories` [are moved to](https://gitlab.com/gitlab-org/gitlab/blob/033e5423a2594e08a7ebcd2379bd2331f4c39032/lib/backup/repository.rb#L54-56) `/home/git/repositories.old`, so if `/home/git/repositories` is the mount point, then `mv` would be moving
> so if `/home/git/repositories` is the mount point, then `mv` would be moving things between mount points, and bad things could happen. Ideally,
> things between mount points, and bad things could happen. Ideally, `/home/git` would be the mount point, so then things would be moving within the
> `/home/git` would be the mount point, so then things would be moving within the same mount point. This is guaranteed with Omnibus installations (because they
> same mount point. This is guaranteed with Omnibus installations (because they don't specify the full repository path but the parent path), but not for source
> don't specify the full repository path but the parent path), but not for source installations.
> installations.
Now that you've read that big fat warning above, let's edit the configuration Now that you've read that big fat warning above, let's edit the configuration
files and add the full paths of the alternative repository storage paths. In files and add the full paths of the alternative repository storage paths. In
......
...@@ -123,13 +123,13 @@ Within a directory, server hooks: ...@@ -123,13 +123,13 @@ Within a directory, server hooks:
- Are executed in alphabetical order. - Are executed in alphabetical order.
- Stop executing when a hook exits with a non-zero value. - Stop executing when a hook exits with a non-zero value.
Note: `<hook_name>.d` must be either `pre-receive.d`, `post-receive.d`, or `update.d` to work properly.
Any other names are ignored.
- `<hook_name>.d` must be either `pre-receive.d`, `post-receive.d`, or `update.d` to work properly. Files in `.d` directories must be executable and not match the backup file pattern (`*~`).
Any other names are ignored.
- Files in `.d` directories must be executable and not match the backup file pattern (`*~`). For `<project>.git` you need to [translate](repository_storage_types.md#translating-hashed-storage-paths)
- For `<project>.git` you need to [translate](repository_storage_types.md#translating-hashed-storage-paths) your project name into the hashed storage format that GitLab uses.
your project name into the hashed storage format that GitLab uses.
## Environment Variables ## Environment Variables
......
...@@ -747,7 +747,8 @@ Send IRC messages, on update, to a list of recipients through an Irker gateway. ...@@ -747,7 +747,8 @@ Send IRC messages, on update, to a list of recipients through an Irker gateway.
Set Irker (IRC gateway) service for a project. Set Irker (IRC gateway) service for a project.
> NOTE: Irker does NOT have built-in authentication, which makes it vulnerable to spamming IRC channels if it is hosted outside of a firewall. Please make sure you run the daemon within a secured network to prevent abuse. For more details, read: <http://www.catb.org/~esr/irker/security.html>. NOTE:
Irker does NOT have built-in authentication, which makes it vulnerable to spamming IRC channels if it is hosted outside of a firewall. Please make sure you run the daemon within a secured network to prevent abuse. For more details, read: <http://www.catb.org/~esr/irker/security.html>.
```plaintext ```plaintext
PUT /projects/:id/services/irker PUT /projects/:id/services/irker
......
...@@ -62,8 +62,9 @@ To use GitLab CI/CD with a Bitbucket Cloud repository: ...@@ -62,8 +62,9 @@ To use GitLab CI/CD with a Bitbucket Cloud repository:
1. In Bitbucket, add a script to push the pipeline status to Bitbucket. 1. In Bitbucket, add a script to push the pipeline status to Bitbucket.
> Note: changes made in GitLab are overwritten by any changes made NOTE:
> upstream in Bitbucket. Changes made in GitLab are overwritten by any changes made
upstream in Bitbucket.
Create a file `build_status` and insert the script below and run Create a file `build_status` and insert the script below and run
`chmod +x build_status` in your terminal to make the script executable. `chmod +x build_status` in your terminal to make the script executable.
......
...@@ -188,7 +188,7 @@ All the marks and measures should be instantiated with the constants from ...@@ -188,7 +188,7 @@ All the marks and measures should be instantiated with the constants from
`app/assets/javascripts/performance/constants.js`. When you’re ready to add a new mark’s or `app/assets/javascripts/performance/constants.js`. When you’re ready to add a new mark’s or
measurement’s label, you can follow the pattern. measurement’s label, you can follow the pattern.
NOTE: **Note:** NOTE:
This pattern is a recommendation and not a hard rule. This pattern is a recommendation and not a hard rule.
```javascript ```javascript
......
...@@ -74,7 +74,8 @@ We follow a simple formula roughly based on Hungarian notation. ...@@ -74,7 +74,8 @@ We follow a simple formula roughly based on Hungarian notation.
- `_tab` - `_tab`
- `_menu_item` - `_menu_item`
*Note: If none of the listed types are suitable, please open a merge request to add an appropriate type to the list.* NOTE:
If none of the listed types are suitable, please open a merge request to add an appropriate type to the list.
### Examples ### Examples
......
...@@ -832,7 +832,7 @@ sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production ...@@ -832,7 +832,7 @@ sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
If all items are green, congratulations on successfully installing GitLab! If all items are green, congratulations on successfully installing GitLab!
TIP: **Tip:** NOTE:
Supply the `SANITIZE=true` environment variable to `gitlab:check` to omit project names from the output of the check command. Supply the `SANITIZE=true` environment variable to `gitlab:check` to omit project names from the output of the check command.
### Initial Login ### Initial Login
......
...@@ -12,11 +12,10 @@ This Rake task enables [namespaces](../user/group/index.md#namespaces) for proje ...@@ -12,11 +12,10 @@ This Rake task enables [namespaces](../user/group/index.md#namespaces) for proje
This command enables the namespaces feature introduced in GitLab 4.0. It moves every project in its namespace folder. This command enables the namespaces feature introduced in GitLab 4.0. It moves every project in its namespace folder.
Note: The **repository location changes as part of this task**, so you must **update all your Git URLs** to
point to the new location.
- The **repository location changes as part of this task**, so you must **update all your Git URLs** to The username can be changed at **Profile > Account**.
point to the new location.
- The username can be changed at **Profile > Account**.
For example: For example:
......
...@@ -45,7 +45,7 @@ specific guidelines (should there be any) are covered separately. ...@@ -45,7 +45,7 @@ specific guidelines (should there be any) are covered separately.
### 1. Backup ### 1. Backup
NOTE: If you installed GitLab from source, make sure `rsync` is installed. If you installed GitLab from source, make sure `rsync` is installed.
```shell ```shell
cd /home/git/gitlab cd /home/git/gitlab
...@@ -61,7 +61,8 @@ sudo service gitlab stop ...@@ -61,7 +61,8 @@ sudo service gitlab stop
### 3. Update Ruby ### 3. Update Ruby
NOTE: Beginning in GitLab 13.6, we only support Ruby 2.7 or higher, and dropped NOTE:
Beginning in GitLab 13.6, we only support Ruby 2.7 or higher, and dropped
support for Ruby 2.6. Be sure to upgrade if necessary. support for Ruby 2.6. Be sure to upgrade if necessary.
You can check which version you are running with `ruby -v`. You can check which version you are running with `ruby -v`.
...@@ -81,7 +82,7 @@ sudo make install ...@@ -81,7 +82,7 @@ sudo make install
### 4. Update Node.js ### 4. Update Node.js
NOTE: To check the minimum required Node.js version, see [Node.js versions](../install/requirements.md#nodejs-versions). To check the minimum required Node.js version, see [Node.js versions](../install/requirements.md#nodejs-versions).
GitLab also requires the use of Yarn `>= v1.10.0` to manage JavaScript GitLab also requires the use of Yarn `>= v1.10.0` to manage JavaScript
dependencies. dependencies.
...@@ -99,7 +100,7 @@ More information can be found on the [Yarn website](https://classic.yarnpkg.com/ ...@@ -99,7 +100,7 @@ More information can be found on the [Yarn website](https://classic.yarnpkg.com/
### 5. Update Go ### 5. Update Go
NOTE: To check the minimum required Go version, see [Go versions](../install/requirements.md#go-versions). To check the minimum required Go version, see [Go versions](../install/requirements.md#go-versions).
You can check which version you are running with `go version`. You can check which version you are running with `go version`.
......
...@@ -48,13 +48,10 @@ monospaced font: ...@@ -48,13 +48,10 @@ monospaced font:
and lines breaks will be preserved. and lines breaks will be preserved.
``` ```
An admonition paragraph grabs the reader's attention: Admonition paragraphs grab the reader's attention:
```plaintext - `NOTE: This is a brief reference, please read the full documentation at https://asciidoctor.org/docs/.`
NOTE: This is a brief reference, please read the full documentation at https://asciidoctor.org/docs/. - `TIP: Lists can be indented. Leading whitespace is not significant.`
TIP: Lists can be indented. Leading whitespace is not significant.
```
### Text Formatting ### Text Formatting
......
...@@ -22,7 +22,7 @@ For information on how to contribute to the development of Value Stream Analytic ...@@ -22,7 +22,7 @@ For information on how to contribute to the development of Value Stream Analytic
Group-level Value Stream Analytics is available via **Group > Analytics > Value Stream**. Group-level Value Stream Analytics is available via **Group > Analytics > Value Stream**.
Note: [Project-level Value Stream Analytics](../../analytics/value_stream_analytics.md) is also available. [Project-level Value Stream Analytics](../../analytics/value_stream_analytics.md) is also available.
## Default stages ## Default stages
......
...@@ -1056,7 +1056,7 @@ are separated into their own lines: ...@@ -1056,7 +1056,7 @@ are separated into their own lines:
``` ```
<!-- <!--
Note: The example below uses HTML to force correct rendering on docs.gitlab.com, The example below uses HTML to force correct rendering on docs.gitlab.com,
Markdown is fine in GitLab. Markdown is fine in GitLab.
--> -->
......
...@@ -409,7 +409,8 @@ X-Gitlab-Event: Issue Hook ...@@ -409,7 +409,8 @@ X-Gitlab-Event: Issue Hook
} }
``` ```
NOTE: `assignee` and `assignee_id` keys are deprecated and now show the first assignee only. NOTE:
`assignee` and `assignee_id` keys are deprecated and now show the first assignee only.
### Comment events ### Comment events
...@@ -734,7 +735,8 @@ X-Gitlab-Event: Note Hook ...@@ -734,7 +735,8 @@ X-Gitlab-Event: Note Hook
} }
``` ```
NOTE: `assignee_id` field is deprecated and now shows the first assignee only. NOTE:
`assignee_id` field is deprecated and now shows the first assignee only.
#### Comment on code snippet #### Comment on code snippet
......
...@@ -40,7 +40,7 @@ storage item. Click on each project's title to see a breakdown per storage item. ...@@ -40,7 +40,7 @@ storage item. Click on each project's title to see a breakdown per storage item.
> - It's enabled on GitLab.com. > - It's enabled on GitLab.com.
> - It's recommended for production use. > - It's recommended for production use.
CAUTION: **Warning:** WARNING:
This feature might not be available to you. Check the **version history** note above for details. This feature might not be available to you. Check the **version history** note above for details.
The following storage usage statistics are available to an owner: The following storage usage statistics are available to an owner:
......
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