Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .github/workflows/docs-preview-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set pending commit status
uses: mattermost/actions/delivery/update-commit-status@fec7b836001c9380d4bfaf28d443945c103a098c
env:
GITHUB_TOKEN: ${{ github.token }}
with:
repository_full_name: ${{ github.repository }}
commit_sha: ${{ inputs.COMMIT_SHA }}
context: docs-preview
description: "Docs preview build for ${{ inputs.COMMIT_SHA }} is running"
status: pending
COMMIT_SHA: ${{ inputs.COMMIT_SHA }}
CONTEXT_NAME: docs-preview
GH_TOKEN: ${{ github.token }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_RUN_ID: ${{ github.run_id }}
run: |
gh api "repos/${GITHUB_REPOSITORY}/statuses/${COMMIT_SHA}" \
-f state=pending \
-f context="${CONTEXT_NAME}" \
-f description="Docs preview build for ${COMMIT_SHA} is running" \
-f target_url="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"

deploy:
uses: ./.github/workflows/docs-preview-template.yml
Expand Down
39 changes: 22 additions & 17 deletions .github/workflows/docs-preview-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,25 +107,30 @@ jobs:
# Details (⋯) on this check links to the preview URL via target_url.
- name: Set success commit status
if: ${{ inputs.STATUS_CONTEXT != '' }}
uses: mattermost/actions/delivery/update-commit-status@fec7b836001c9380d4bfaf28d443945c103a098c
env:
GITHUB_TOKEN: ${{ github.token }}
with:
repository_full_name: ${{ github.repository }}
commit_sha: ${{ inputs.COMMIT_SHA }}
context: ${{ inputs.STATUS_CONTEXT }}
description: "Docs preview build for ${{ inputs.COMMIT_SHA }} succeeded"
status: success
target_url: ${{ steps.preview.outputs.url }}
COMMIT_SHA: ${{ inputs.COMMIT_SHA }}
CONTEXT_NAME: ${{ inputs.STATUS_CONTEXT }}
PREVIEW_URL: ${{ steps.preview.outputs.url }}
GH_TOKEN: ${{ github.token }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: |
gh api "repos/${GITHUB_REPOSITORY}/statuses/${COMMIT_SHA}" \
-f state=success \
-f context="${CONTEXT_NAME}" \
-f description="Docs preview build for ${COMMIT_SHA} succeeded" \
-f target_url="$PREVIEW_URL"

- name: Set failure commit status
if: ${{ always() && inputs.STATUS_CONTEXT != '' && (failure() || cancelled()) }}
uses: mattermost/actions/delivery/update-commit-status@fec7b836001c9380d4bfaf28d443945c103a098c
env:
GITHUB_TOKEN: ${{ github.token }}
with:
repository_full_name: ${{ github.repository }}
commit_sha: ${{ inputs.COMMIT_SHA }}
context: ${{ inputs.STATUS_CONTEXT }}
description: "Docs preview build for ${{ inputs.COMMIT_SHA }} failed"
status: failure
COMMIT_SHA: ${{ inputs.COMMIT_SHA }}
CONTEXT_NAME: ${{ inputs.STATUS_CONTEXT }}
GH_TOKEN: ${{ github.token }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_RUN_ID: ${{ github.run_id }}
run: |
gh api "repos/${GITHUB_REPOSITORY}/statuses/${COMMIT_SHA}" \
-f state=failure \
-f context="${CONTEXT_NAME}" \
-f description="Docs preview build for ${COMMIT_SHA} failed" \
-f target_url="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
12 changes: 11 additions & 1 deletion docs/site/src/components/Callout/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@
box-shadow: 0 1px 2px rgba(30, 50, 92, 0.04);
}

/* The base rule's --mm-border-subtle resolves to denim-700 in dark mode —
* ~1:1 contrast from the page background (#0E1525), so the box had no
* visible edge. --mm-border-strong (denim-500) is a real step up. Fill
* needs no override: --mm-bg-surface above already resolves to a
* theme-appropriate value per mode. */
[data-theme='dark'] .callout {
background: var(--mm-denim-800);
border-color: var(--mm-border-strong);
}

.bar {
Expand Down Expand Up @@ -61,6 +66,11 @@
/* Kind variants */
.note .bar { background: var(--mm-color-denim); }
.note .label { color: var(--mm-denim-600); }
/* Every other kind below pairs its light-mode label color with a
* dark-mode override — "note" was missing one, so it fell back to this
* light-mode-only denim-600 in dark mode too: dark navy text on a dark
* navy background. */
[data-theme='dark'] .note .label { color: var(--mm-denim-200); }

.tip .bar { background: #2C7A4F; } /* operational green */
.tip .label { color: #1F5A39; }
Expand Down
Loading
Loading