Skip to content

Commit 103afd3

Browse files
committed
Merge branch 'main' of github.com:metal-stack/docs-new into update-links
2 parents 45733d0 + 0f49d96 commit 103afd3

File tree

179 files changed

+3138
-4040
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+3138
-4040
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
bun-version: v1.2
2222

2323
- name: Install Dependencies
24-
run: bun install --frozen-lockfile --production
24+
run: bun install --frozen-lockfile --production --ignore-scripts
2525

2626
- name: Build Website
2727
run: bun run build

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
npx lint-staged

README.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ The used framework to generate docs is [docusaurus](https://docusaurus.io).
1717
│   ├── 2024
1818
│   └── 2025
1919
├── docs # docs folder split by different scopes
20-
│   ├── contributing # guidlines for contributors
20+
│   ├── contributing # guidelines for contributors
2121
│   ├── docs # documentation pages
22-
│   ├── references # auto-genereted references of componets and apis
22+
│   ├── references # auto-generated references of components and apis
2323
├── scripts # custom scripts (e.g: resolving component documentation)
2424
├── src # custom routes and react
2525
│   ├── components
@@ -72,6 +72,17 @@ This file is used to generate the sidebar.
7272
}
7373
```
7474

75+
## Embedding drawio images
76+
77+
> ⚠️ referenced `.drawio.svg` images throw **warnings** because of unsupported file-types. We save `.drawio` files separatly and export them as `svg`. Issue is also known in [docusaurus](https://github.com/facebook/docusaurus/issues/9715)
78+
79+
Some svgs still can have problems e.g:
80+
81+
- `drawio.svg` files pulled by references
82+
- too large svg
83+
84+
For this we have a pre-commit hook, which optimizes them with [svgo](https://github.com/svg/svgo)
85+
7586
## Blog
7687

7788
In order to add a blog-post follow this template. If a new author is referenced you have to add the author to the `authors.yaml`.
@@ -97,26 +108,34 @@ tags:
97108
98109
<YOUR ARTICLE>
99110
```
111+
100112
## Setup & Build
101-
Reqires Bun as .js runtime.
113+
114+
Requires Bun as .js runtime.
102115

103116
Run the following command to install dependencies:
117+
104118
```
105119
bun install
106120
```
107121

108122
To generate a local preview use:
123+
109124
```
110125
bun run start
111126
```
112127

113128
To update the dependencies for the Reference pages:
129+
114130
```
115131
bun run fetch-readmes
116132
```
133+
117134
## Component references
118-
Ensure first, that all files in the docs folder are updated and ready to freeze. Also execute `bun run fetch-readmes` to update files from components and apis.
135+
136+
Ensure first, that all files in the docs folder are updated and ready to freeze. Also execute `bun run fetch-readmes` to update files from components and apis.
119137
All components are referenced in the `/scripts/components.json` file. Use this minimal template to add a new component:
138+
120139
```json
121140
{
122141
"name": "metalctl", // name of the component, will appear in the navigation
@@ -126,12 +145,17 @@ All components are referenced in the `/scripts/components.json` file. Use this m
126145
"withDocs": true // set to true to retrieve further .md files from a /docs folder. With false, only the README.md will be retrieved.
127146
},
128147
```
148+
129149
The `tag` property will be updated automatically from the release-vector file.
150+
130151
## Document Versioning
152+
131153
You create a new version with:
154+
132155
```
133156
bun run docusaurus docs:version v0.21.6
134157
```
158+
135159
Now, the new version will be create and the latest files will be copied to the "`versioned`" folders.
136160

137161
## Comparison
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<mxfile host="65bd71144e">
2+
<diagram id="ToPi5NqXSybOOjagKnuQ" name="Page-1">
3+
<mxGraphModel dx="2104" dy="701" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
4+
<root>
5+
<mxCell id="0"/>
6+
<mxCell id="1" parent="0"/>
7+
<mxCell id="qUONc3NZkDFU0F-GtsOM-1" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
8+
<mxGeometry x="62.01" y="200" width="640" height="548" as="geometry"/>
9+
</mxCell>
10+
<mxCell id="qUONc3NZkDFU0F-GtsOM-2" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;" parent="1" vertex="1">
11+
<mxGeometry x="87" y="275" width="590" height="265" as="geometry"/>
12+
</mxCell>
13+
<mxCell id="qUONc3NZkDFU0F-GtsOM-5" value="&lt;font style=&quot;font-size: 30px&quot;&gt;Management cluster&lt;/font&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
14+
<mxGeometry x="228.38" y="222" width="307.25" height="37" as="geometry"/>
15+
</mxCell>
16+
<mxCell id="qUONc3NZkDFU0F-GtsOM-6" value="&lt;font style=&quot;font-size: 26px&quot;&gt;Core controllers&lt;/font&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
17+
<mxGeometry x="255.75" y="291" width="238.5" height="37" as="geometry"/>
18+
</mxCell>
19+
<mxCell id="qUONc3NZkDFU0F-GtsOM-7" value="&lt;font style=&quot;font-size: 20px&quot;&gt;... controller&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
20+
<mxGeometry x="410" y="406" width="217" height="117" as="geometry"/>
21+
</mxCell>
22+
<mxCell id="qUONc3NZkDFU0F-GtsOM-9" value="&lt;font style=&quot;font-size: 20px&quot;&gt;Machine controller&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
23+
<mxGeometry x="273.51" y="372" width="217" height="117" as="geometry"/>
24+
</mxCell>
25+
<mxCell id="qUONc3NZkDFU0F-GtsOM-10" value="&lt;font style=&quot;font-size: 20px&quot;&gt;Cluster controller&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
26+
<mxGeometry x="115" y="339.5" width="217" height="117" as="geometry"/>
27+
</mxCell>
28+
<mxCell id="qUONc3NZkDFU0F-GtsOM-11" value="&lt;font style=&quot;font-size: 20px&quot;&gt;... provider&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
29+
<mxGeometry x="410" y="609" width="217" height="117" as="geometry"/>
30+
</mxCell>
31+
<mxCell id="qUONc3NZkDFU0F-GtsOM-12" value="&lt;font style=&quot;font-size: 20px&quot;&gt;random provider&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
32+
<mxGeometry x="266.5" y="582" width="217" height="117" as="geometry"/>
33+
</mxCell>
34+
<mxCell id="qUONc3NZkDFU0F-GtsOM-13" value="&lt;font style=&quot;font-size: 20px&quot;&gt;metal-stack provider&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
35+
<mxGeometry x="115" y="554" width="217" height="117" as="geometry"/>
36+
</mxCell>
37+
</root>
38+
</mxGraphModel>
39+
</diagram>
40+
</mxfile>

blog/2021/04-cluster-api-provider/cluster_api.drawio.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)