Skip to content

Commit d6d195d

Browse files
committed
fix(gen): fix local asset links
1 parent f31cb5f commit d6d195d

File tree

5 files changed

+26
-10
lines changed

5 files changed

+26
-10
lines changed

pages/instances/api-cli/cli-cheatsheet.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import Requirements from '@macros/iam/requirements.mdx'
1111

1212
import image from './assets/scaleway-instances-cli-cheatsheet.webp'
1313

14+
import instancesCheatSheetPdf from "./assets/Scaleway-Instances-CLI-Cheatsheet.pdf"
15+
16+
1417

1518
This page shows the most common Scaleway CLI commands for creating and managing Scaleway Instances.
1619

@@ -22,9 +25,7 @@ This page shows the most common Scaleway CLI commands for creating and managing
2225

2326

2427
<Message type="tip">
25-
This content is also available as a printable PDF file:
26-
27-
[Download Instances CLI Cheatsheet - Printable](Scaleway-Instances-CLI-Cheatsheet.pdf)
28+
This content is also available as a printable PDF file: <LocalAssetLink href={instancesCheatSheetPdf}>Download Instances CLI Cheatsheet - Printable</LocalAssetLink>
2829
</Message>
2930

3031

pages/instances/reference-content/preventing-outgoing-ddos.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ categories:
88
- compute
99
---
1010

11+
import ddosQuickGuidePdf from "./assets/DDoS_Quick_Guide.pdf"
12+
import npGuidePdf from "./assets/NP_Guide_DDoS.pdf"
13+
14+
1115
<Message type="important">
1216
The explanations given below are known best practices. They do not guarantee that your resources will not be locked if we detect that they are part of a DDoS attack.
1317
</Message>
@@ -16,7 +20,7 @@ categories:
1620

1721
A Denial of Service (DoS) attack is an attack through which a person can render a system unusable, or significantly slow it down for legitimate users, by overloading its resources.
1822

19-
[A Distributed Denial of Service (DDoS) attack](DDoS_Quick_Guide.pdf) is a DoS attack that is performed at the same time by a multitude of compromised systems.
23+
<LocalAssetLink href={ddosQuickGuidePdf}>A Distributed Denial of Service (DDoS) attack</LocalAssetLink> is a DoS attack that is performed at the same time by a multitude of compromised systems.
2024

2125
The goal of a DoS is not to gain unauthorized access to machines or data, but to prevent legitimate users of a service from using it.
2226

@@ -107,4 +111,4 @@ To configure securely your HTTP proxy, proceed as follows:
107111
## External References
108112

109113
- (In English) [Denial of Service (DoS) guidance](https://www.ncsc.gov.uk/collection/denial-service-dos-guidance-collection)
110-
- (In French) [Comprendre et anticiper les attaques DDoS](NP_Guide_DDoS.pdf)
114+
- (In French) <LocalAssetLink href={npGuidePdf}>Comprendre et anticiper les attaques DDoS</LocalAssetLink>

pages/kubernetes/reference-content/kubernetes-cheatsheet.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ categories:
1010
import Requirements from '@macros/iam/requirements.mdx'
1111

1212
import image from './assets/scaleway-kubernetes-cheatsheet.webp'
13+
import cheatSheetPdf from "./assets/scaleway-kubernetes-cheatsheet.pdf"
14+
15+
1316

1417

1518
This page shows the most common `kubectl` commands for creating and managing Scaleway Kapsule and Kosmos clusters.
@@ -23,5 +26,5 @@ This page shows the most common `kubectl` commands for creating and managing Sca
2326
<Message type="tip">
2427
This content is also available as a printable PDF file. Click the link below to download:
2528

26-
- [Kubernetes kubectl cheatsheet - Printable](scaleway-kubernetes-cheatsheet.pdf)
29+
- <LocalAssetLink href={cheatSheetPdf}>Kubernetes kubectl cheatsheet - Printable</LocalAssetLink>
2730
</Message>

pages/kubernetes/reference-content/kubernetes-decision-tree.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ categories:
99
- kubernetes
1010
---
1111
import image from './assets/DecisionTreeKubernetes-DocumentationWebsite.webp'
12+
import decisionTreePdf from "./assets/decision-tree-kubernetes.pdf"
13+
14+
1215

1316

1417
This page helps you evaluate your level of knowledge about Kubernetes and provides comprehensive documentation to help you understand the various offerings, integrations, tools, and usage.
@@ -17,7 +20,7 @@ This page helps you evaluate your level of knowledge about Kubernetes and provid
1720

1821
<Message type="tip">
1922
This content is also available as a printable PDF file. Click the link below to download it:
20-
- [Kubernetes decision tree - Printable](decision-tree-kubernetes.pdf)
23+
- <LocalAssetLink href={decisionTreePdf}>Kubernetes decision tree - Printable</LocalAssetLink>
2124
</Message>
2225

2326
## Referred content

tutorials/python-lists-dicts/index.mdx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ import image6 from './assets/python-dicts-cheatsheet.webp'
1717

1818
import Requirements from '@macros/iam/requirements.mdx'
1919

20+
import pythonCheatSheetPdf from "./assets/python-lists-cheatsheet.pdf"
21+
import pythonDictsCheatSheetPdf from "./assets/python-dicts-cheatsheet.pdf"
22+
23+
24+
2025

2126
<Message type="requirement">
2227
If you're coming to this tutorial as a complete Python beginner, make sure you're familiar with the Python concepts covered in our [Python for complete beginners](/tutorials/get-started-python/) tutorial first. You might also be interested in the next tutorial in the series: [Getting started with Python for-loops](/tutorials/python-for-loops/).
@@ -469,11 +474,11 @@ The table below provides a summary of everything covered above:
469474
<Lightbox image={image5} alt="" size="large" />
470475

471476
<Message type="tip">
472-
This content is also available as a printable PDF file. [Download the Python lists cheatsheet - Printable](python-lists-cheatsheet.pdf).
477+
This content is also available as a printable PDF file. <LocalAssetLink href={pythonCheatSheetPdf}>Download the Python lists cheatsheet - Printable</LocalAssetLink>
473478
</Message>
474479

475480
## Dictionaries
476-
481+
477482
While a simple list may be sufficient for storing values and carrying out operations like finding the average, what if we wanted to have a record not just of the class marks, but of which students got which marks? That's where dictionaries come in. Dictionaries are identified with curly brackets as opposed to square brackets and contain a series of key/value pairs.
478483

479484
Note that the methods we used on our lists - indexing to retrieve values, `insert()`, `extend()`, `append()` etc. - do not work on dictionaries. We need to learn a new set of methods, as shown below.
@@ -723,5 +728,5 @@ The table below provides a summary of everything covered above:
723728
<Lightbox image={image6} alt="" size="large" />
724729

725730
<Message type="tip">
726-
This content is also available as a printable PDF file. [Download the Python dicts cheatsheet - Printable](python-dicts-cheatsheet.pdf)
731+
This content is also available as a printable PDF file. <LocalAssetLink href={pythonDictsCheatSheetPdf}>Download the Python dicts cheatsheet - Printable</LocalAssetLink>
727732
</Message>

0 commit comments

Comments
 (0)