* docs: self-host fonts, images, and OpenAPI icons; block build egress
Stop hotlinking GitHub/user-images and Google Fonts on the docs site, replace
embedded video iframes with links, and fail CI when a build would fetch
off-origin resources (closed allowlist for the security-updates feed).
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: address CodeRabbit egress review findings
Scan an offline (no-Algolia) rebuild in Docs CI, tighten ATTR/getAttr
boundaries, flag remote template-literal prefixes before ${, and add
alt text for the self-hosted plugin-management image.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: replace egress fixture tree with in-memory unit tests
Keep scanner coverage without committing dozens of tiny HTML/CSS/JS
fixture files. scanSources takes string maps; CLI smoke uses a temp dir.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: keep YouTube/Wistia embeds on hosted site
Restore in-page players for the public docs. Allowlist those hosts in
check-egress; the offline packager strips them for airgap.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: simplify hosted-embed allowlist to base domains
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: tighten hosted-embed allowlist to player kinds and paths
Only iframe/script/img player URLs pass; fetch() and other loads to
YouTube/Wistia hosts still fail egress.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: allow Wistia swatch preload in hosted-embed egress check
The organize-conversations embed emits link[rel=preload] for the
swatch; kind-scoped allowlisting missed it and failed Docs CI.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: use getAttr boundary for script hasSrc check
\b matches inside data-src, so the old hasSrc could skip scanning an
inline script body. Align with ATTR/getAttr and cover the case in tests.
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
* MM-69223: Default-strip post identity props and reinject under verified authority
* Updating the docs to clarify that updates strip caller-supplied identity props but preserve existing ones.
* remove dead function
* update docs and unit test
* fix unit test
* revert doc change, update for failed test
* add back StripActionIntegrations to missing places, add tests for all uses.
* linter fix
* docs: fix dark-mode code block contrast, plan plugin SDK reference migration
- Change the outgoing webhooks pseudo-JSON example to a `text` fence
instead of `json`, since the malformed JSON caused Prism to
misinterpret `//` inside a URL as a comment, rendering it as a
distracting highlighted link in dark mode.
- Restore contrast for Prism's comment token and the active/hover
table-of-contents link in dark mode, both of which were nearly
invisible against the current dark background colors.
- Add a handoff plan for restoring the three plugin SDK reference pages
that were left as migration placeholders (previously rendered by Hugo
shortcodes parsing live Go/TS source).
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: remove migration plan doc from this PR
The plugin SDK reference migration plan is a separate piece of handoff
work, not part of this dark-mode contrast fix — drop it from this PR
(kept locally, untracked, for handing off separately).
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: restore missing e2e/mobile push-notification images
These developer-docs images existed in mattermost-developer-documentation's
static assets but were never copied into the monorepo during the docs
migration, leaving broken image links in e2e-cheatsheets.md and the mobile
push-notification pages. Also fixes e2e-cheatsheets.md's image paths, which
used Hugo-style relative paths that don't resolve under Docusaurus.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: fix broken outgoing webhooks screenshot path
The image reference used an absolute path left over from the old Hugo
site (/integrate/faq/images/...), which doesn't resolve under Docusaurus
since no matching file exists under site/static. The image already lives
co-located in docs/develop/integrate/faq/images/, so point to it with a
relative path instead.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: delete Azure AKS deployment guide page
The page's screenshots never made it into the monorepo during migration
and don't exist under any known source (docs, docs-experimental, or
mattermost-developer-documentation). Remove the page rather than ship
broken images; drop it from the PDF book manifest and repoint its legacy
redirect to the general Kubernetes deployment guide accordingly.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: fix heading levels on Kubernetes deploy guides
deploy-k8s.mdx and deploy-k8s-oke.mdx used H1 (#) for their top-level
in-page sections (Installation steps, Common Errors, etc.) instead of
H2. Docusaurus' contentTitle extraction grabs the first H1 it finds
anywhere in the doc, which stole the page title slot from the actual
frontmatter title, so no title rendered at the top of the page. The
flat H1/H2 mix also meant TOC entries for install steps rendered as a
flat list at the page's TOC root instead of nested under their section,
which made the TOC sidebar overflow/misrender on narrower/zoomed
viewports. Bump every heading in both files one level (H1->H2->H3->H4)
so the page title renders and the TOC nests correctly.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: fix TOC/layout horizontal overflow on wide code blocks
The Kubernetes prerequisites page's TOC sidebar overflowed off-screen at
higher browser zoom levels. Root cause: `.docMainContainer` has `max-width:
none !important` (intentional, so OpenAPI's 2-column layout gets full
width), but that removes the container's only width ceiling. Combined with
the default flexbox `min-width: auto` on both the main container (in its
outer flex row with the left sidebar) and the doc content column (in the
inner content/TOC row), a sufficiently wide code block's intrinsic
min-content size could drag the whole row wider than the viewport instead
of scrolling within itself. Add `min-width: 0` at both flex levels so
`overflow-x: auto` on code blocks and tables actually contains overflow
locally, and make the responsive table-scroll CSS apply unconditionally
instead of only under the 996px breakpoint (zoom shrinks effective layout
width without re-triggering the media query).
Also shorten the illustrative base64 example values in the AWS Aurora
Postgres secret example, which were long enough on their own to be a
secondary contributor to the same overflow.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: restore additional missing images found via full static-resolution scan
Docusaurus's build-time image validator doesn't reliably warn on every
broken absolute-path reference, so npm run build alone missed these.
A direct scan of every image reference in docs/develop and docs/main
against the filesystem turned up 38 more genuinely missing images
(desktop architecture, VPN/Pritunl setup, docker dev environment,
i18n-extract tooling, MVP program, onboarding, schema migration guide,
plugin best-practices, and interactive-message screenshots) that were
never copied over from mattermost-developer-documentation during
migration. Two references (interactive-dialog-date.png and
interactive-dialog-datetime.png) remain unresolved because no source
image exists anywhere in the legacy repo.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: fix broken cross-links after .md to .mdx migration
Several Calls admin guide pages and the air-gapped quick-start runbook
were renamed from .md to .mdx during migration, but their internal
cross-links still pointed at the old .md filenames (and, for
setup-tls, the old flattened path), so Docusaurus couldn't resolve
them. Found via a full scan of every relative markdown link under
docs/main and docs/develop against the filesystem, since the build's
own "couldn't be resolved" warnings don't reliably surface every
broken link.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: remove broken date/datetime element screenshots
These screenshots were never captured before migration (broken on
the currently live docs.mattermost.com too), and no source image
exists anywhere in the legacy repos to restore. Remove the broken
references rather than leave a dead image link.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: move newly-restored desktop architecture images to static/
These 4 images were restored co-located next to their content files,
matching an existing (if inconsistent) convention elsewhere in
docs/develop. Since these are new additions rather than pre-existing
working references, move them to docs/site/static/ instead of
perpetuating the co-located pattern. Repo-wide normalization of the
other ~70 existing co-located image references is left for a separate
follow-up PR.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs: remove deleted AKS page from sidebar generator's manual grouping
master (#37402) fixed the sidebar generator's SRC path but this
branch's deletion of deploy-k8s-aks.mdx still left a dangling
reference in the Deployment Guide's manual Kubernetes grouping,
which fails Docusaurus's sidebar-doc-id validation at build time.
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>