Skip to content

Commit 2701ac2

Browse files
Sync help documentation from main repository
Synced from: 39b9459d0b5f010679ac35314d4754845c85a01f Date: 2025-11-29 22:44:47 UTC
1 parent e9b14b2 commit 2701ac2

24 files changed

+162
-10
lines changed

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License
2+
3+
Copyright (c) 2025 GreenRobot LLC
4+
5+
This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
6+
7+
Under the following terms:
8+
9+
Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
10+
11+
NonCommercial — You may not use the material for commercial purposes.
12+
13+
NoDerivatives — If you remix, transform, or build upon the material, you may not distribute the modified material.
14+
15+
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
16+
17+
Notices:
18+
19+
You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation.
20+
21+
No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.
22+

_layouts/help.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,48 @@ <h2>Contents</h2>
6767

6868
<script src="{{ '/assets/js/lunr.min.js' | relative_url }}"></script>
6969
<script src="{{ '/assets/js/lunr-search.js' | relative_url }}"></script>
70+
<script>
71+
// Make scrollable code blocks keyboard accessible
72+
(function() {
73+
document.addEventListener('DOMContentLoaded', function() {
74+
// Find all scrollable pre elements
75+
const scrollablePres = document.querySelectorAll('pre');
76+
scrollablePres.forEach(function(pre) {
77+
// Check if element is scrollable
78+
if (pre.scrollWidth > pre.clientWidth || pre.scrollHeight > pre.clientHeight) {
79+
// Make it keyboard accessible
80+
if (!pre.hasAttribute('tabindex')) {
81+
pre.setAttribute('tabindex', '0');
82+
}
83+
// Add aria-label if missing
84+
if (!pre.hasAttribute('aria-label')) {
85+
const code = pre.querySelector('code');
86+
const lang = code ? code.className.match(/language-(\w+)/) : null;
87+
const label = lang ? 'Code block in ' + lang[1] + ' (scrollable)' : 'Scrollable code block';
88+
pre.setAttribute('aria-label', label);
89+
}
90+
}
91+
});
92+
93+
// Add labels to task list checkboxes
94+
const taskCheckboxes = document.querySelectorAll('.task-list-item-checkbox');
95+
taskCheckboxes.forEach(function(checkbox) {
96+
if (!checkbox.hasAttribute('aria-label') && !checkbox.id) {
97+
// Get the text content of the parent list item
98+
const listItem = checkbox.closest('.task-list-item');
99+
if (listItem) {
100+
const text = listItem.textContent.trim();
101+
// Remove the checkbox text and clean up
102+
const label = text.replace(/^\s*\[[ xX]\]\s*/, '').trim();
103+
if (label) {
104+
checkbox.setAttribute('aria-label', label);
105+
}
106+
}
107+
}
108+
});
109+
});
110+
})();
111+
</script>
70112
</body>
71113
</html>
72114

assets/css/help.css

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ li {
267267
background: var(--help-sidebar);
268268
font-family: 'SF Mono', Monaco, monospace;
269269
font-weight: 600;
270-
color: var(--help-link);
270+
color: #0051a5; /* Changed from var(--help-link) to meet WCAG AA 4.5:1 contrast ratio */
271271
width: 120px;
272272
text-align: center;
273273
}
@@ -304,7 +304,7 @@ code {
304304
border-radius: 4px;
305305
font-family: 'SF Mono', Monaco, monospace;
306306
font-size: 0.9rem;
307-
color: var(--help-link);
307+
color: #0051a5; /* Changed from #007AFF to meet WCAG AA 4.5:1 contrast ratio on #f5f5f7 */
308308
}
309309

310310
pre {
@@ -323,6 +323,59 @@ pre code {
323323
padding: 0;
324324
}
325325

326+
/* Syntax-highlighted code blocks - fix color contrast */
327+
.highlight {
328+
background: #1d1d1f;
329+
border-radius: 8px;
330+
margin: 1rem 0;
331+
overflow-x: auto;
332+
}
333+
334+
.highlight pre {
335+
margin: 0;
336+
padding: 1rem;
337+
overflow-x: auto;
338+
}
339+
340+
/* Fix color contrast for syntax-highlighted code elements */
341+
.highlight .language-plaintext,
342+
.highlight code.language-plaintext,
343+
code.language-plaintext {
344+
color: #0051a5 !important; /* Changed from #007AFF to meet WCAG AA 4.5:1 contrast ratio */
345+
background: var(--help-sidebar);
346+
}
347+
348+
/* Task list checkboxes - add proper labels for accessibility */
349+
.task-list-item {
350+
list-style-type: none;
351+
}
352+
353+
.task-list-item-checkbox {
354+
margin-right: 0.5rem;
355+
cursor: pointer;
356+
}
357+
358+
.task-list-item-checkbox:focus {
359+
outline: 2px solid #0051a5;
360+
outline-offset: 2px;
361+
}
362+
363+
/* Add aria-label support for task list items */
364+
.task-list-item-checkbox[aria-label] {
365+
/* Already has label via aria-label */
366+
}
367+
368+
/* For task list items without explicit labels, use the text content */
369+
.task-list-item:has(.task-list-item-checkbox:not([aria-label])) {
370+
/* The checkbox is implicitly labeled by the list item text */
371+
}
372+
373+
/* Make scrollable pre elements keyboard accessible */
374+
pre[tabindex="0"]:focus {
375+
outline: 2px solid #0051a5;
376+
outline-offset: 2px;
377+
}
378+
326379
footer {
327380
background: #1d1d1f;
328381
color: #a6b1c2; /* Improved contrast: 4.5:1 ratio on #1d1d1f */

help/mas/accessibility-best-practices.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: Accessibility Best Practices
33
layout: help
44
---
55

6+
# Accessibility Best Practices
7+
68
## Overview
79

810
This guide combines best practices for both accessibility and HTML validation to help you build websites that are usable, standards-compliant, and performant.

help/mas/accessibility.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: Accessibility Testing
33
layout: help
44
---
55

6+
# Accessibility Testing
7+
68
## Overview
79

810
CodeFrog includes comprehensive accessibility testing tools designed to help you meet WCAG AA (Web Content Accessibility Guidelines Level AA) standards. These tools help identify and fix accessibility issues before your app or website goes live.

help/mas/ai-coder-coderabbit-augment.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
2-
title: AI Code Review Workflow - CodeRabbit + Augment Code
2+
title: AI Code Review: CodeRabbit + Augment Code
33
layout: help
44
---
55

6+
# AI Code Review Workflow - CodeRabbit + Augment Code
7+
68
## Overview
79

810
This workflow helps you efficiently handle code review feedback from CodeRabbit by importing comments into CodeFrog tasks, exporting them to Markdown format, fixing issues with Augment Code AI assistance, and tracking progress.

help/mas/ai-coder-cursor.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
2-
title: AI Code Review Workflow - Cursor / Other Agents
2+
title: AI Code Review: Cursor & Other Agents
33
layout: help
44
---
55

6+
# AI Code Review: Cursor & Other Agents
7+
68
## Overview
79

810
This workflow helps you use Cursor or other AI coding agents to fix code review issues efficiently by providing structured prompts and managing the fix process.

help/mas/benefits-valid-html-accessibility.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: Benefits of Valid HTML and Accessibility
33
layout: help
44
---
55

6+
# Benefits of Valid HTML and Accessibility
7+
68
## Overview
79

810
Valid HTML and accessibility features provide numerous benefits beyond just meeting compliance standards. These practices improve your website's performance, user experience, search engine visibility, and technical quality.

help/mas/code-analysis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Code Analysis
2+
title: Code Analysis Tools and Features
33
layout: help
44
---
55

help/mas/faq.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: Frequently Asked Questions
33
layout: help
44
---
55

6+
# Frequently Asked Questions
7+
68
## Web Testing
79

810
### Why is my web testing request being blocked?

0 commit comments

Comments
 (0)