Skip to content

Commit 7b766aa

Browse files
Update mdbook version and version and metadata (#120)
1 parent c0ed391 commit 7b766aa

File tree

5 files changed

+41
-5
lines changed

5 files changed

+41
-5
lines changed

.github/workflows/build-cluster-api-provider-book.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install mdbook
1717
run: |
1818
mkdir mdbook
19-
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.18/mdbook-v0.4.18-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
19+
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.21/mdbook-v0.4.21-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
2020
echo `pwd`/mdbook >> $GITHUB_PATH
2121
cargo install mdbook-admonish
2222
- name: Deploy Book to GitHub Pages

docs/book.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title = "Kubernetes Cluster API Provider for Oracle Cloud Infrastructure"
77

88
[preprocessor.admonish]
99
command = "mdbook-admonish"
10-
assets_version = "1.0.0" # do not edit: managed by `mdbook-admonish install`
10+
assets_version = "2.0.0" # do not edit: managed by `mdbook-admonish install`
1111

1212
[output.html]
1313
curly-quotes = false

docs/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ set -o pipefail
2121
os=$(go env GOOS)
2222
arch=$(go env GOARCH)
2323

24-
MDBOOK_VERSION="0.4.18"
24+
MDBOOK_VERSION="0.4.21"
2525

2626
# translate arch to rust's conventions (if we can)
2727
if [[ ${arch} == "amd64" ]]; then
@@ -66,4 +66,4 @@ ${cmd} /tmp/mdbook.${ext}
6666
chmod +x /tmp/mdbook
6767

6868
# Finally build the book.
69-
(cd docs && /tmp/mdbook build)
69+
(cd docs && /tmp/mdbook build)

docs/mdbook-admonish.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@charset "UTF-8";
12
:root {
23
--md-admonition-icon--note:
34
url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z'/></svg>");
@@ -23,6 +24,8 @@
2324
url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 13v-2h14v2H7m0 6v-2h14v2H7M7 7V5h14v2H7M3 8V5H2V4h2v4H3m-1 9v-1h3v4H2v-1h2v-.5H3v-1h1V17H2m2.25-7a.75.75 0 0 1 .75.75c0 .2-.08.39-.21.52L3.12 13H5v1H2v-.92L4 11H2v-1h2.25z'/></svg>");
2425
--md-admonition-icon--quote:
2526
url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 17h3l2-4V7h-6v6h3M6 17h3l2-4V7H5v6h3l-2 4z'/></svg>");
27+
--md-details-icon:
28+
url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z'/></svg>");
2629
}
2730

2831
:is(.admonition) {
@@ -56,12 +59,21 @@ html :is(.admonition) > :last-child {
5659
margin-bottom: 1.2rem;
5760
}
5861

62+
a.admonition-anchor-link {
63+
display: none;
64+
position: absolute;
65+
left: -1.2rem;
66+
padding-right: 1rem;
67+
}
5968
a.admonition-anchor-link:link, a.admonition-anchor-link:visited {
6069
color: var(--fg);
6170
}
6271
a.admonition-anchor-link:link:hover, a.admonition-anchor-link:visited:hover {
6372
text-decoration: none;
6473
}
74+
a.admonition-anchor-link::before {
75+
content: "§";
76+
}
6577

6678
:is(.admonition-title, summary) {
6779
position: relative;
@@ -94,6 +106,30 @@ html :is(.admonition-title, summary):last-child {
94106
-webkit-mask-size: contain;
95107
content: "";
96108
}
109+
:is(.admonition-title, summary):hover a.admonition-anchor-link {
110+
display: initial;
111+
}
112+
113+
details.admonition > summary.admonition-title::after {
114+
position: absolute;
115+
top: 0.625em;
116+
inset-inline-end: 1.6rem;
117+
height: 2rem;
118+
width: 2rem;
119+
background-color: currentcolor;
120+
mask-image: var(--md-details-icon);
121+
-webkit-mask-image: var(--md-details-icon);
122+
mask-repeat: no-repeat;
123+
-webkit-mask-repeat: no-repeat;
124+
mask-size: contain;
125+
-webkit-mask-size: contain;
126+
content: "";
127+
transform: rotate(0deg);
128+
transition: transform 0.25s;
129+
}
130+
details[open].admonition > summary.admonition-title::after {
131+
transform: rotate(90deg);
132+
}
97133

98134
:is(.admonition):is(.note) {
99135
border-color: #448aff;

metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
apiVersion: clusterctl.cluster.x-k8s.io/v1alpha3
77
releaseSeries:
88
- major: 0
9-
minor: 4
9+
minor: 5
1010
contract: v1beta1

0 commit comments

Comments
 (0)