Skip to content

update harness docs#1405

Merged
oss-maintainer merged 1 commit into
agentscope-ai:mainfrom
chickenlj:harness-docs2
May 15, 2026
Merged

update harness docs#1405
oss-maintainer merged 1 commit into
agentscope-ai:mainfrom
chickenlj:harness-docs2

Conversation

@chickenlj
Copy link
Copy Markdown
Collaborator

No description provided.

@chickenlj chickenlj requested review from a team and Copilot May 15, 2026 13:08
@oss-maintainer oss-maintainer merged commit 13a7167 into agentscope-ai:main May 15, 2026
6 checks passed
@chickenlj chickenlj deleted the harness-docs2 branch May 15, 2026 13:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the docs’ Mermaid “expand/zoom” behavior by replacing the previous lightweight fullscreen clone with a custom modal overlay that supports zoom controls, wheel-zoom, and drag-to-pan, and by targeting Sphinx’s .mermaid-container structure for attachment.

Changes:

  • Replaces the existing Mermaid zoom wrapper/modal with a new .mz-* implementation (new CSS, modal layout, and interaction handlers).
  • Adds explicit zoom controls (+/−/reset), mouse-wheel zoom, and click-drag panning inside the modal viewport.
  • Updates the attachment logic to prefer .mermaid-container (with a polling fallback) and hides sphinxcontrib-mermaid’s built-in fullscreen button.

'.mz-viewport.mz-grabbing { cursor: grabbing; }',

/* SVG holder – width % controls zoom */
'.mz-svgholder { min-width: 100%; display: inline-block; }',
closeBtn.title = 'Close (Esc)';
closeBtn.setAttribute('aria-label', 'Close');
closeBtn.className = 'mz-close';
closeBtn.innerHTML = '×';
Comment on lines +167 to +176
function mkBtn(html, title, cb) {
var b = document.createElement('button');
b.className = 'mz-tbtn';
b.innerHTML = html; b.title = title;
b.addEventListener('click', cb);
return b;
}
var btnOut = mkBtn('−', 'Zoom out (−)', function () { setScale(scale - STEP); });
var btnReset = mkBtn('↺', 'Reset zoom', function () { setScale(1.0); });
var btnIn = mkBtn('+', 'Zoom in (+)', function () { setScale(scale + STEP); });
overlay.className = 'mz-overlay';
overlay.appendChild(box);
document.body.appendChild(overlay);

Comment on lines 1 to 3
(function () {
'use strict';

@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants