Skip to content

Commit 75f2821

Browse files
devGregAclaude
andcommitted
Redesign docs site navigation, layout, and UX for world-class experience
- Declutter header: remove release notes API fetch, border around search, consolidate social icons to just GitHub (rest moved to footer) - Add skip-to-content link and id="main-content" target for accessibility - Remove emoji chevrons from nav menu items - Create branded multi-column footer with docs, community, company links - Redesign homepage with hero section, two CTAs, and 6 icon nav cards - Brand the 404 page with large display number and action buttons - Add description/lead text to section list page cards - Enable breadcrumb trail and back-to-top button via Doks params - Replace sidebar inline styles with proper CSS classes - Add scroll progress bar (blue-to-orange gradient) on doc pages - Comprehensive SCSS: footer, hero, home cards, 404, back-to-top, breadcrumbs, typography, TOC active indicator, header nav pills, sidebar chevron rotation, print styles, focus-visible outlines, prefers-reduced-motion support - Fix copyright from "Thulite" to "DefectDojo Inc." No markdown content files were modified. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cfd068b commit 75f2821

12 files changed

Lines changed: 858 additions & 143 deletions

File tree

docs/assets/js/custom.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,35 @@
5858
observer.observe(document.body, { childList: true, subtree: true });
5959

6060
})();
61+
62+
63+
// Scroll progress bar — shows reading progress on doc pages
64+
(() => {
65+
"use strict";
66+
67+
const init = () => {
68+
// Only add on doc pages (pages with .docs-content)
69+
if (!document.querySelector('.docs-content')) return;
70+
71+
const bar = document.createElement('div');
72+
bar.className = 'scroll-progress';
73+
bar.style.width = '0%';
74+
document.body.appendChild(bar);
75+
76+
const update = () => {
77+
const scrollTop = window.scrollY;
78+
const docHeight = document.documentElement.scrollHeight - window.innerHeight;
79+
const progress = docHeight > 0 ? (scrollTop / docHeight) * 100 : 0;
80+
bar.style.width = progress + '%';
81+
};
82+
83+
window.addEventListener('scroll', update, { passive: true });
84+
update();
85+
};
86+
87+
if (document.readyState === 'loading') {
88+
document.addEventListener('DOMContentLoaded', init);
89+
} else {
90+
init();
91+
}
92+
})();

0 commit comments

Comments
 (0)