Skip to content

Commit f031b5c

Browse files
authored
fix(docs): tidying "Getting started" (#166)
* Extract CSS to a file-level `<style>` block * Correct the `docker ...` copy commands, which have been broken for several days (before my recent improvements)
1 parent f723009 commit f031b5c

1 file changed

Lines changed: 25 additions & 3 deletions

File tree

docs/getting-started/index.mdx

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,28 @@ slug: /getting-started
55
import dockerComposeContent from '!!raw-loader!./docker-compose.yaml';
66
import CodeBlock from '@theme/CodeBlock';
77

8+
<style>
9+
{`
10+
.download-button {
11+
display: inline-block;
12+
padding: 8px 16px;
13+
background-color: #0066cc;
14+
color: white;
15+
text-decoration: none;
16+
border-radius: 4px;
17+
margin-bottom: 16px;
18+
transition: all 0.2s ease;
19+
}
20+
21+
.download-button:hover {
22+
background-color: #0052a3;
23+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
24+
color: white;
25+
}
26+
27+
`}
28+
</style>
29+
830
# Getting Started
931

1032
This guide will walk you through setting up a new platform locally and walk you through some of the basic concepts within the OpenTDF platform.
@@ -34,7 +56,7 @@ The first step is to get the platform running locally. You can use the following
3456
Not for production use.
3557
:::
3658

37-
<a href="/quickstart/docker-compose.yaml" download="docker-compose.yaml" style={{display: 'inline-block', padding: '8px 16px', backgroundColor: '#0066cc', color: 'white', textDecoration: 'none', borderRadius: '4px', marginBottom: '16px'}}>Download docker-compose.yaml</a>
59+
<a href="/quickstart/docker-compose.yaml" download="docker-compose.yaml" className="download-button">Download docker-compose.yaml</a>
3860

3961
<details>
4062
<summary>Docker Compose</summary>
@@ -73,11 +95,11 @@ mkdir -p ./opentdf-certs
7395
```
7496

7597
```shell
76-
docker cp opentdf-caddy-1:/data/caddy/certificates/local/keycloak.opentdf.local/keycloak.opentdf.local.crt ./opentdf-certs
98+
docker compose cp caddy:/data/caddy/certificates/local/keycloak.opentdf.local/keycloak.opentdf.local.crt ./opentdf-certs
7799
```
78100

79101
```shell
80-
docker cp opentdf-caddy-1:/data/caddy/certificates/local/platform.opentdf.local/platform.opentdf.local.crt ./opentdf-certs
102+
docker compose cp caddy:/data/caddy/certificates/local/platform.opentdf.local/platform.opentdf.local.crt ./opentdf-certs
81103
```
82104

83105
### Import and Trust Certificates by Operating System

0 commit comments

Comments
 (0)