Commit d0364fa
docs: introduce Mintlify-inspired Material theme (#2702)
* docs: introduce Mintlify-inspired Material theme
* docs: address theme PR review feedback (source link + image hook)
- source-link.html: filter empty path segments with Jinja `select` so an
empty `page.meta.path` no longer produces a double slash in the URL
(gemini-code-assist review).
- image_metadata.py: open SVG files via a context manager before
`iterparse` so the file descriptor is released immediately instead of
waiting for GC (gemini-code-assist review).
- image_metadata.py: match <img> tags without truncating on a '>' inside a
quoted attribute value (codacy review).
- image_metadata.py: log unreadable images at DEBUG (strict mode promotes
WARNING to a build failure, and an unreadable image must never break the
build) (codacy review).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs: rebalance footer and keep support widget clear of it
Marketing feedback on the footer:
- Remove the "Full scan / Free trial / No credit card" tagline line: it has
no value without a sign-up CTA, and the header already carries the
"Get started" CTA.
- Rebalance into three columns - brand tagline (left), links (center),
copyright (right) - replacing the previous left/right split.
- The floating Zendesk support widget overlapped the bottom-right links. The
links are now centered and the footer reserves bottom space; docs-theme.js
also flags <html> via an IntersectionObserver when the footer is visible so
CSS lifts the widget above the footer (no-op if the widget is absent).
Also folds in a review nitpick: replace the deprecated navigator.platform
check with navigator.userAgentData.platform (falling back to platform, then
the UA string) for the Cmd/Ctrl-K shortcut label.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs: inline Ionicons SVGs at build time, drop the JS runtime
The Ionicons web-component runtime hydrated <ion-icon> elements after page
load and lazily fetched each SVG, causing a visible flash / layout shift on
every page load. It also vendored ~11 opaque JS chunks that were hard to
maintain. Icons must stay local (a CDN URL breaks on air-gapped self-hosted
docs), so the fix is to inline the SVGs at build time.
- Add theme/partials/icon.html: a Jinja macro icon(name, class="") that
includes the source SVG from assets/vendor/ionicons/svg/<name>.svg and
injects the shared "docs-icon" class + aria-hidden onto the <svg>.
- Replace every <ion-icon> with an icon(...) call across header, search,
palette, source, toc, path-item and nav-item partials (dynamic names for
the palette toggle and sidebar_icons work as macro arguments).
- Remove the two ionicons <script> includes from main.html and delete the 11
vendored ionicons JS chunks. The 27 source SVGs and the MIT LICENSE stay.
- Retarget the ion-icon CSS selectors to svg (header.css) and add a
.docs-icon base rule (base.css) mirroring the old default sizing and
currentColor inheritance.
Result: icons are server-rendered inline SVG - zero runtime JS, zero network
fetches, no flash / layout shift, and trivially works offline. Verified with
a strict mkdocs build: 0 <ion-icon> elements and no references to the deleted
JS remain in the generated site; icons render as inline <svg class="docs-icon">.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs: use a linear <img> regex to clear Codacy ReDoS gate
The quote-aware <img> pattern added earlier tripped Codacy's Critical
"inefficient regular expression" (ReDoS) check, failing the quality gate.
Revert _IMAGE_TAG to the linear `<img\b[^>]*>` and instead insert the
generated attributes right after the `<img` token (rather than before the
closing `>`). The output stays valid even when the match stops early at a
`>` inside an attribute value, which addresses the original truncation
concern without a backtracking-prone regex.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs: restructure footer to tagline-left, links + copyright right
Drop the centered links column. The footer is now two regions: the tagline
on the left (no longer bold) and the nav links followed by the copyright
grouped together on the right (Pricing · Blog · Support · Privacy · ©).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs: fix self-hosted sidebar icon and trim footer copyright
- server-outline.svg declared fill="none" on the root <svg> instead of on
its shapes. The theme's `.docs-icon { fill: currentColor }` rule overrides
a root fill, so the shapes inherited currentColor and the icon rendered as
a filled blob. Move fill="none" onto each shape (matching every other
outline icon) so it renders as an outline again.
- Footer copyright now drops the " - Automated code review" suffix (stripped
in the footer template only; the site-wide config.copyright is unchanged so
the RSS feed etc. keep the full string).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs: keep header visible and stop scroll jump when search opens
Opening search triggers Material's scroll-lock, which sets the body to
position: fixed. That dragged the sticky header (and its theme toggle) out
of view and behind the full-screen search overlay, and read as the page
jumping upward.
- Pin the header to the viewport (position: fixed, z-index above the search
overlay) while search is open, so the whole navbar — including the theme
toggle — stays visible and interactive.
- Give the search box enough top margin to clear the pinned header.
- Focus the search input with { preventScroll: true } so opening search never
nudges the scroll position.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 4747675 commit d0364fa
84 files changed
Lines changed: 2098 additions & 192 deletions
File tree
- .github/styles/config/vocabularies/Codacy
- docs
- account
- assets
- images
- includes
- javascripts
- stylesheets
- codacy-cloud-cli
- codacy-guardrails
- getting-started
- organizations
- release-notes
- theme
- assets
- fonts
- vendor/ionicons
- svg
- hooks
- partials
- integrations
- stylesheets
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| |||
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| |||
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
97 | 105 | | |
| 106 | + | |
98 | 107 | | |
99 | 108 | | |
100 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
| |||
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
31 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
42 | 112 | | |
43 | 113 | | |
44 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
0 commit comments