Skip to content

Commit 396c493

Browse files
committed
Documentation
1 parent 779c54e commit 396c493

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

docs/publishing-your-site.md

+17-10
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ contents:
4646
- uses: actions/cache@v4
4747
with:
4848
key: mkdocs-material-${{ env.cache_id }}
49-
path: .cache
49+
path: .cache # (4)!
5050
restore-keys: |
5151
mkdocs-material-
52-
- run: pip install mkdocs-material # (4)!
52+
- run: pip install mkdocs-material # (5)!
5353
- run: mkdocs gh-deploy --force
5454
```
5555

@@ -67,7 +67,10 @@ contents:
6767

6868
You can read the [manual page] to learn more about the formatting options of the `date` command.
6969

70-
4. This is the place to install further [MkDocs plugins] or Markdown
70+
4. Some Material for MkDocs plugins use [caching] to speed up repeated
71+
builds, and store the results in the `.cache` directory.
72+
73+
5. This is the place to install further [MkDocs plugins] or Markdown
7174
extensions with `pip` to be used during the build:
7275

7376
``` sh
@@ -105,20 +108,23 @@ contents:
105108
- uses: actions/cache@v4
106109
with:
107110
key: mkdocs-material-${{ env.cache_id }}
108-
path: .cache
111+
path: .cache # (1)!
109112
restore-keys: |
110113
mkdocs-material-
111-
- run: apt-get install pngquant # (1)!
114+
- run: apt-get install pngquant # (2)!
112115
- run: pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
113116
- run: mkdocs gh-deploy --force
114117
env:
115-
GH_TOKEN: ${{ secrets.GH_TOKEN }} # (2)!
118+
GH_TOKEN: ${{ secrets.GH_TOKEN }} # (3)!
116119
```
117120

118-
1. This step is only necessary if you want to use the
121+
1. Some Material for MkDocs plugins use [caching] to speed up repeated
122+
builds, and store the results in the `.cache` directory.
123+
124+
2. This step is only necessary if you want to use the
119125
[built-in optimize plugin] to automatically compress images.
120126

121-
2. Remember to set the `GH_TOKEN` repository secret to the value of your
127+
3. Remember to set the `GH_TOKEN` repository secret to the value of your
122128
[personal access token] when deploying [Insiders], which can be done
123129
using [GitHub secrets].
124130

@@ -140,6 +146,7 @@ Your documentation should shortly appear at `<username>.github.io/<repository>`.
140146
[GitHub secrets]: https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets
141147
[publishing source branch]: https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site
142148
[manual page]: https://man7.org/linux/man-pages/man1/date.1.html
149+
[caching]: plugins/requirements/caching.md
143150

144151
### with MkDocs
145152

@@ -206,7 +213,7 @@ Now, when a new commit is pushed to the [default branch] (typically `master` or
206213
the file to your repository to see the workflow in action.
207214

208215
Your documentation is not published under `<username>.gitlab.io/<repository>`
209-
by default since **GitLab 17.4** [^1]. However, if you prefer a cleaner URL
216+
by default since **GitLab 17.4** [^1]. However, if you prefer a cleaner URL
210217
structure, such as `<username>.gitlab.io/<repository>`, you need to adjust
211218
your configuration.
212219

@@ -219,7 +226,7 @@ these steps:
219226
4. **Use unique domain**.
220227
5. Click **Save changes** to apply the update.
221228

222-
Now you can reach your documentation under `<username>.gitlab.io/<repository>`.
229+
Now you can reach your documentation under `<username>.gitlab.io/<repository>`.
223230

224231
[^1]: [Release notes for Gitlab 17.4](https://about.gitlab.com/releases/2024/09/19/gitlab-17-4-released/)
225232

0 commit comments

Comments
 (0)