Skip to content

Commit 4923ddc

Browse files
committed
docs: add link to playground in main page.
1 parent 0e459fc commit 4923ddc

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

.github/workflows/site.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,28 @@ jobs:
3838
steps:
3939
- name: Checkout
4040
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
41+
4142
- name: Setup Node.js
4243
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
4344
with:
4445
node-version: '22'
4546
cache: 'npm'
4647
cache-dependency-path: 'site'
48+
4749
- name: Setup Pages
4850
id: pages
4951
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
52+
5053
- name: Install dependencies
5154
run: |
5255
cd site
5356
[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true
57+
5458
- name: Install playground dependencies
5559
run: |
5660
cd playground
5761
npm install
62+
5863
- name: Build production website
5964
env:
6065
# For maximum backward compatibility with Hugo modules
@@ -67,15 +72,18 @@ jobs:
6772
--gc \
6873
--minify \
6974
--environment production
75+
7076
- name: Build playground
7177
run: |
7278
cd playground
7379
npm run build
80+
7481
- name: Merge playground into Pages artifact
7582
run: |
7683
rm -rf site/public/playground
7784
mkdir -p site/public/playground
7885
cp -R playground/dist/. site/public/playground/
86+
7987
- name: Upload artifact
8088
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
8189
with:

site/.hugo_build.lock

Whitespace-only changes.

site/assets/scss/common/_custom.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@
99
}
1010

1111
.docs-toc {
12-
width: 290px;
12+
width: 290px;
1313
}
1414

1515
.expressive-code pre {
1616
padding: 8px;
17+
}
18+
19+
.bg-dots {
20+
margin-top: -4rem;
1721
}

site/hugo_stats.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"btn-cta",
8181
"btn-lg",
8282
"btn-link",
83+
"btn-outline-secondary",
8384
"btn-primary",
8485
"callout",
8586
"callout-body",

site/layouts/index.html

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@
133133
<a class="btn btn-primary btn-cta rounded-pill btn-lg my-3"
134134
href="docs/{{ if site.Params.doks.docsVersioning }}{{ site.Params.doks.docsVersion }}/{{ end }}intro/getting-started/"
135135
role="button">{{ i18n "get_started" }}</a>
136+
<a class="btn btn-outline-secondary btn-cta rounded-pill btn-lg my-3"
137+
href="playground/"
138+
role="button">Playground</a>
136139
{{ .Content }}
137140
</div>
138141
</div>
@@ -172,16 +175,4 @@ <h2 class="h4">Easy integration</h2>
172175
{{ end }}
173176

174177
{{ define "sidebar-footer" }}
175-
{{ if site.Params.doks.sectionFooter -}}
176-
<section class="section section-md container-fluid bg-light">
177-
<div class="row justify-content-center text-center">
178-
<div class="col-lg-7">
179-
<h2 class="mt-2">Start building with Doks today</h2>
180-
<a class="btn btn-primary rounded-pill px-4 my-2"
181-
href="/docs/{{ if site.Params.doks.docsVersioning }}{{ site.Params.doks.docsVersion }}/{{ end }}prologue/introduction/"
182-
role="button">{{ i18n "get-started" }}</a>
183-
</div>
184-
</div>
185-
</section>
186-
{{ end -}}
187178
{{ end }}

0 commit comments

Comments
 (0)