@@ -46,10 +46,10 @@ contents:
46
46
- uses: actions/cache@v4
47
47
with:
48
48
key: mkdocs-material-${{ env.cache_id }}
49
- path: .cache
49
+ path: .cache # (4)!
50
50
restore-keys: |
51
51
mkdocs-material-
52
- - run: pip install mkdocs-material # (4 )!
52
+ - run: pip install mkdocs-material # (5 )!
53
53
- run: mkdocs gh-deploy --force
54
54
```
55
55
@@ -67,7 +67,10 @@ contents:
67
67
68
68
You can read the [manual page] to learn more about the formatting options of the `date` command.
69
69
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
71
74
extensions with `pip` to be used during the build:
72
75
73
76
``` sh
@@ -105,20 +108,23 @@ contents:
105
108
- uses: actions/cache@v4
106
109
with:
107
110
key: mkdocs-material-${{ env.cache_id }}
108
- path: .cache
111
+ path: .cache # (1)!
109
112
restore-keys: |
110
113
mkdocs-material-
111
- - run: apt-get install pngquant # (1 )!
114
+ - run: apt-get install pngquant # (2 )!
112
115
- run: pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
113
116
- run: mkdocs gh-deploy --force
114
117
env:
115
- GH_TOKEN: ${{ secrets.GH_TOKEN }} # (2 )!
118
+ GH_TOKEN: ${{ secrets.GH_TOKEN }} # (3 )!
116
119
```
117
120
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
119
125
[built-in optimize plugin] to automatically compress images.
120
126
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
122
128
[personal access token] when deploying [Insiders], which can be done
123
129
using [GitHub secrets].
124
130
@@ -140,6 +146,7 @@ Your documentation should shortly appear at `<username>.github.io/<repository>`.
140
146
[ GitHub secrets ] : https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets
141
147
[ publishing source branch ] : https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site
142
148
[ manual page ] : https://man7.org/linux/man-pages/man1/date.1.html
149
+ [ caching ] : plugins/requirements/caching.md
143
150
144
151
### with MkDocs
145
152
@@ -206,7 +213,7 @@ Now, when a new commit is pushed to the [default branch] (typically `master` or
206
213
the file to your repository to see the workflow in action.
207
214
208
215
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
210
217
structure, such as ` <username>.gitlab.io/<repository> ` , you need to adjust
211
218
your configuration.
212
219
@@ -219,7 +226,7 @@ these steps:
219
226
4 . ** Use unique domain** .
220
227
5 . Click ** Save changes** to apply the update.
221
228
222
- Now you can reach your documentation under ` <username>.gitlab.io/<repository> ` .
229
+ Now you can reach your documentation under ` <username>.gitlab.io/<repository> ` .
223
230
224
231
[ ^ 1 ] : [ Release notes for Gitlab 17.4] ( https://about.gitlab.com/releases/2024/09/19/gitlab-17-4-released/ )
225
232
0 commit comments