Skip to content

Commit d6bfa89

Browse files
authored
redesign: Add header and breadcrumbs (#436)
* redesign: Add header and breadcrumbs * Add comment * Fix cloudfront create-invalidation paths
1 parent 792cf01 commit d6bfa89

16 files changed

+152
-32
lines changed

.github/release-drafter.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ categories:
2929
labels:
3030
- 'automation' # When automation is updated
3131
- 'ci' # When automation is updated
32+
- title: '🎨 Redesign' # Temporary category while we're redesigning the docs
33+
labels:
34+
- 'redesign' # When it's a redesign feature
3235
exclude-labels:
3336
- 'changelog:skip' # When a PR should be excluded from the changelog
3437
version-resolver:

.github/workflows/preview-build.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
name: preview-build
22

33
on:
4-
pull_request: ~
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- labeled
10+
- unlabeled
511
workflow_call:
612
inputs:
713
strict:
@@ -25,6 +31,9 @@ permissions:
2531

2632
jobs:
2733
build:
34+
concurrency:
35+
group: ${{ github.workflow }}-${{ github.ref }}
36+
cancel-in-progress: true
2837
runs-on: ubuntu-latest
2938
steps:
3039

@@ -66,6 +75,10 @@ jobs:
6675
- name: Bootstrap Action Workspace
6776
if: github.repository == 'elastic/docs-builder' && steps.check-files.outputs.any_changed == 'true'
6877
uses: ./.github/actions/bootstrap
78+
79+
- name: Set REDESIGN feature flag
80+
if: contains(github.event.pull_request.labels.*.name, 'redesign')
81+
run: echo "REDESIGN=true" >> $GITHUB_ENV
6982

7083
# we run our artifact directly please use the prebuild
7184
# elastic/docs-builder@main GitHub Action for all other repositories!

.github/workflows/preview-deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ jobs:
8989
PR_NUMBER: ${{ needs.pull-request-data.outputs.number }}
9090
run: |
9191
aws s3 sync ./html "s3://elastic-docs-v3-website-preview/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}" --delete
92-
aws cloudfront create-invalidation --distribution-id EKT7LT5PM8RKS --paths "/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}/*"
92+
aws cloudfront create-invalidation \
93+
--distribution-id EKT7LT5PM8RKS \
94+
--paths "/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}" "/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}/*"
9395
9496
- name: Update deployment status
9597
uses: actions/github-script@v7

src/Elastic.Markdown/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ _static/main.js
44
_static/main.js.map
55
_static/styles.css
66
_static/styles.css.map
7+
_static/*.woff2
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
2+
3+
4+
@font-face {
5+
font-family: "Mier B";
6+
src: url("./fonts/MierB-Regular.woff2") format("woff2")
7+
}
48.6 KB
Binary file not shown.
File renamed without changes.
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,34 @@
11
#elastic-docs-v3 {
22
h1 {
3-
@apply text-4xl text-ink font-semibold mb-6;
3+
font-family: "Mier B", "Inter", sans-serif;
4+
@apply text-4xl text-ink font-bold mb-6;
45
line-height: 1.2em;
56
letter-spacing: -0.04em;
67
}
78

89
h2 {
9-
@apply text-2xl text-ink font-bold mb-6;
10+
font-family: "Mier B", "Inter", sans-serif;
11+
@apply text-2xl text-ink mb-6;
1012
line-height: 1.2em;
1113
letter-spacing: -0.02em;
1214
}
1315

1416
h3 {
17+
font-family: "Mier B", "Inter", sans-serif;
1518
@apply text-xl text-ink font-bold mb-6;
1619
line-height: 1.2em;
1720
letter-spacing: -0.02em;
1821
}
1922

2023
p {
24+
font-family: "Inter", sans-serif;
2125
@apply text-base text-body mb-6;
2226
line-height: 1.5em;
2327
letter-spacing: 0;
2428
}
2529

2630
a {
31+
font-family: "Inter", sans-serif;
2732
@apply text-blue-elastic hover:underline underline-offset-4;
2833
}
2934
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@plugin "tailwind-scrollbar-hide"
Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
@import "tailwindcss";
2-
@import "highlight.js/styles/atom-one-dark.css";
2+
@import "./fonts.css";
3+
@import "./plugins.css";
34
@import "./theme.css";
5+
@import "highlight.js/styles/atom-one-dark.css";
46
@import "./markdown/typography.css";
57

6-
main.markdown-content {
7-
max-width: 80ch;
8+
#default-search::-webkit-search-cancel-button {
9+
@apply pr-2;
10+
-webkit-appearance: none;
11+
height: 16px;
12+
width: 16px;
13+
margin-left: .4em;
14+
background-image: url("data:image/svg+xml;utf8,<svg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 24 24'><path stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 18 17.94 6M18 18 6.06 6'/></svg>");
15+
cursor: pointer;
16+
background-repeat: no-repeat;
817
}

0 commit comments

Comments
 (0)