style: format user guide files with prettier
This commit is contained in:
1 parent
c7107a5034
commit
b196d0de78
20 files changed
+400
-190
No files matched your search
@@ -6,7 +6,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-guide-breadcrumb-link:hover {
|
.user-guide-breadcrumb-link:hover {
|
||||||
color: #1570EF;
|
color: #1570ef;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ToC link hover */
|
/* ToC link hover */
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-guide-toc-link:hover {
|
.user-guide-toc-link:hover {
|
||||||
color: #1570EF;
|
color: #1570ef;
|
||||||
text-decoration: underline !important;
|
text-decoration: underline !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-guide-nav-button:hover .nav-text {
|
.user-guide-nav-button:hover .nav-text {
|
||||||
color: #1570EF;
|
color: #1570ef;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Article body typography */
|
/* Article body typography */
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-guide-article-body a {
|
.user-guide-article-body a {
|
||||||
color: #1570EF;
|
color: #1570ef;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
@@ -104,7 +104,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-guide-article-body blockquote {
|
.user-guide-article-body blockquote {
|
||||||
border-left: 3px solid #1570EF;
|
border-left: 3px solid #1570ef;
|
||||||
background-color: rgba(255, 255, 255, 0.05);
|
background-color: rgba(255, 255, 255, 0.05);
|
||||||
padding: 12px 16px;
|
padding: 12px 16px;
|
||||||
border-radius: 0 4px 4px 0;
|
border-radius: 0 4px 4px 0;
|
||||||
|
|||||||
@@ -136,7 +136,9 @@ const ArticlePage = ({
|
|||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: isInApp
|
backgroundColor: isInApp
|
||||||
? isDark ? "rgba(255, 255, 255, 0.05)" : "rgba(0, 0, 0, 0.02)"
|
? isDark
|
||||||
|
? "rgba(255, 255, 255, 0.05)"
|
||||||
|
: "rgba(0, 0, 0, 0.02)"
|
||||||
: "transparent",
|
: "transparent",
|
||||||
borderRadius: isInApp ? border.radius : 0,
|
borderRadius: isInApp ? border.radius : 0,
|
||||||
padding: isInApp ? spacing.md : 0,
|
padding: isInApp ? spacing.md : 0,
|
||||||
@@ -188,9 +190,7 @@ const ArticlePage = ({
|
|||||||
style={{
|
style={{
|
||||||
fontFamily: typography.fontFamily.sans,
|
fontFamily: typography.fontFamily.sans,
|
||||||
fontSize: isInApp ? 13 : 12,
|
fontSize: isInApp ? 13 : 12,
|
||||||
color: isActive
|
color: isActive ? colors.brand.primary : colors.text.secondary,
|
||||||
? colors.brand.primary
|
|
||||||
: colors.text.secondary,
|
|
||||||
fontWeight: isActive
|
fontWeight: isActive
|
||||||
? typography.fontWeight.medium
|
? typography.fontWeight.medium
|
||||||
: typography.fontWeight.normal,
|
: typography.fontWeight.normal,
|
||||||
@@ -250,7 +250,11 @@ const ArticlePage = ({
|
|||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ChevronLeft size={16} strokeWidth={1.5} color={colors.text.muted} />
|
<ChevronLeft
|
||||||
|
size={16}
|
||||||
|
strokeWidth={1.5}
|
||||||
|
color={colors.text.muted}
|
||||||
|
/>
|
||||||
<div>
|
<div>
|
||||||
<span
|
<span
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-guide-back-link:hover {
|
.user-guide-back-link:hover {
|
||||||
color: #1570EF;
|
color: #1570ef;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Article row hover */
|
/* Article row hover */
|
||||||
@@ -27,5 +27,5 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-guide-article-row:hover .arrow-icon {
|
.user-guide-article-row:hover .arrow-icon {
|
||||||
color: #1570EF;
|
color: #1570ef;
|
||||||
}
|
}
|
||||||
@@ -117,9 +117,7 @@ const CollectionPage = ({ collection, onBack, onArticleClick }) => {
|
|||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div
|
<div style={{ display: "flex", alignItems: "flex-start", gap: spacing.md }}>
|
||||||
style={{ display: "flex", alignItems: "flex-start", gap: spacing.md }}
|
|
||||||
>
|
|
||||||
<FileText
|
<FileText
|
||||||
size={16}
|
size={16}
|
||||||
strokeWidth={1.5}
|
strokeWidth={1.5}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-guide-article-link-item:hover .link-title {
|
.user-guide-article-link-item:hover .link-title {
|
||||||
color: #1570EF;
|
color: #1570ef;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-guide-article-link-item .arrow-icon {
|
.user-guide-article-link-item .arrow-icon {
|
||||||
@@ -41,5 +41,5 @@
|
|||||||
|
|
||||||
.user-guide-article-link-item:hover .arrow-icon {
|
.user-guide-article-link-item:hover .arrow-icon {
|
||||||
transform: translateX(4px);
|
transform: translateX(4px);
|
||||||
color: #1570EF;
|
color: #1570ef;
|
||||||
}
|
}
|
||||||
@@ -53,7 +53,8 @@ const iconMap = {
|
|||||||
const getIcon = (name) => iconMap[name] || Info;
|
const getIcon = (name) => iconMap[name] || Info;
|
||||||
|
|
||||||
const ContentRenderer = ({ content, onNavigate }) => {
|
const ContentRenderer = ({ content, onNavigate }) => {
|
||||||
const { colors, typography, spacing, border, chipStyles, imageStyles, isDark } = useUserGuideTheme();
|
const { colors, typography, spacing, border, chipStyles, imageStyles, isDark } =
|
||||||
|
useUserGuideTheme();
|
||||||
const [lightboxImage, setLightboxImage] = useState(null);
|
const [lightboxImage, setLightboxImage] = useState(null);
|
||||||
|
|
||||||
// Parse basic markdown in text (inside component to access onNavigate)
|
// Parse basic markdown in text (inside component to access onNavigate)
|
||||||
@@ -83,7 +84,10 @@ const ContentRenderer = ({ content, onNavigate }) => {
|
|||||||
// Code: `text`
|
// Code: `text`
|
||||||
const style = getChipStyle(match[2]);
|
const style = getChipStyle(match[2]);
|
||||||
parts.push(
|
parts.push(
|
||||||
<span key={key++} style={style}>
|
<span
|
||||||
|
key={key++}
|
||||||
|
style={style}
|
||||||
|
>
|
||||||
{match[2]}
|
{match[2]}
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
@@ -317,7 +321,10 @@ const ContentRenderer = ({ content, onNavigate }) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const renderChecklist = (block, index) => (
|
const renderChecklist = (block, index) => (
|
||||||
<div key={index} style={{ marginBottom: spacing["2xl"], paddingLeft: spacing.sm }}>
|
<div
|
||||||
|
key={index}
|
||||||
|
style={{ marginBottom: spacing["2xl"], paddingLeft: spacing.sm }}
|
||||||
|
>
|
||||||
{block.items.map((item, i) => (
|
{block.items.map((item, i) => (
|
||||||
<div
|
<div
|
||||||
key={i}
|
key={i}
|
||||||
@@ -383,7 +390,11 @@ const ContentRenderer = ({ content, onNavigate }) => {
|
|||||||
height: "22px",
|
height: "22px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconComponent size={20} strokeWidth={1.5} color={colors.brand.primary} />
|
<IconComponent
|
||||||
|
size={20}
|
||||||
|
strokeWidth={1.5}
|
||||||
|
color={colors.brand.primary}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span
|
<span
|
||||||
@@ -513,7 +524,11 @@ const ContentRenderer = ({ content, onNavigate }) => {
|
|||||||
height: "20px",
|
height: "20px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Clock size={16} strokeWidth={1.5} color={colors.brand.primary} />
|
<Clock
|
||||||
|
size={16}
|
||||||
|
strokeWidth={1.5}
|
||||||
|
color={colors.brand.primary}
|
||||||
|
/>
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
style={{
|
style={{
|
||||||
@@ -762,7 +777,12 @@ const ContentRenderer = ({ content, onNavigate }) => {
|
|||||||
display: "grid",
|
display: "grid",
|
||||||
gridTemplateColumns: block.columns.map((col) => col.width || "1fr").join(" "),
|
gridTemplateColumns: block.columns.map((col) => col.width || "1fr").join(" "),
|
||||||
borderBottom: i < block.rows.length - 1 ? border.default : "none",
|
borderBottom: i < block.rows.length - 1 ? border.default : "none",
|
||||||
backgroundColor: i % 2 === 1 ? (isDark ? "rgba(255, 255, 255, 0.02)" : "rgba(0, 0, 0, 0.02)") : "transparent",
|
backgroundColor:
|
||||||
|
i % 2 === 1
|
||||||
|
? isDark
|
||||||
|
? "rgba(255, 255, 255, 0.02)"
|
||||||
|
: "rgba(0, 0, 0, 0.02)"
|
||||||
|
: "transparent",
|
||||||
padding: `10px ${spacing.lg}`,
|
padding: `10px ${spacing.lg}`,
|
||||||
gap: spacing.md,
|
gap: spacing.md,
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
@@ -820,7 +840,10 @@ const ContentRenderer = ({ content, onNavigate }) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const renderArticleLinks = (block, index) => (
|
const renderArticleLinks = (block, index) => (
|
||||||
<div key={index} style={{ marginBottom: spacing["2xl"] }}>
|
<div
|
||||||
|
key={index}
|
||||||
|
style={{ marginBottom: spacing["2xl"] }}
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
height: "1px",
|
height: "1px",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-guide-help-button:hover {
|
.user-guide-help-button:hover {
|
||||||
border-color: #1570EF;
|
border-color: #1570ef;
|
||||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,11 @@ const HelpSection = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Join our Discord
|
Join our Discord
|
||||||
<ExternalLink size={14} strokeWidth={1.5} color={colors.text.muted} />
|
<ExternalLink
|
||||||
|
size={14}
|
||||||
|
strokeWidth={1.5}
|
||||||
|
color={colors.text.muted}
|
||||||
|
/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -116,7 +120,11 @@ const HelpSection = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
GitHub discussions
|
GitHub discussions
|
||||||
<ExternalLink size={14} strokeWidth={1.5} color={colors.text.muted} />
|
<ExternalLink
|
||||||
|
size={14}
|
||||||
|
strokeWidth={1.5}
|
||||||
|
color={colors.text.muted}
|
||||||
|
/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -74,7 +74,11 @@ const ImageLightbox = ({ src, alt, caption, onClose }) => {
|
|||||||
}}
|
}}
|
||||||
title="Close (Esc)"
|
title="Close (Esc)"
|
||||||
>
|
>
|
||||||
<X size={24} strokeWidth={1.5} color="#fff" />
|
<X
|
||||||
|
size={24}
|
||||||
|
strokeWidth={1.5}
|
||||||
|
color="#fff"
|
||||||
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{/* Image container */}
|
{/* Image container */}
|
||||||
|
|||||||
@@ -9,15 +9,18 @@ This document defines the writing standards, formatting rules, and content patte
|
|||||||
### Core Principles
|
### Core Principles
|
||||||
|
|
||||||
1. **Second person, active voice** - Address the reader directly
|
1. **Second person, active voice** - Address the reader directly
|
||||||
|
|
||||||
- ✅ "You can configure monitors from the dashboard"
|
- ✅ "You can configure monitors from the dashboard"
|
||||||
- ❌ "Monitors can be configured from the dashboard"
|
- ❌ "Monitors can be configured from the dashboard"
|
||||||
|
|
||||||
2. **Professional but approachable** - Clear and helpful, not stiff or overly casual
|
2. **Professional but approachable** - Clear and helpful, not stiff or overly casual
|
||||||
|
|
||||||
- ✅ "Select the notification channel you want to use"
|
- ✅ "Select the notification channel you want to use"
|
||||||
- ❌ "Go ahead and pick whatever notification channel works for you!"
|
- ❌ "Go ahead and pick whatever notification channel works for you!"
|
||||||
- ❌ "The user shall select the appropriate notification channel"
|
- ❌ "The user shall select the appropriate notification channel"
|
||||||
|
|
||||||
3. **Direct and instructional** - Tell users what to do, not what the system does
|
3. **Direct and instructional** - Tell users what to do, not what the system does
|
||||||
|
|
||||||
- ✅ "Click Save to apply your changes"
|
- ✅ "Click Save to apply your changes"
|
||||||
- ❌ "The Save button will apply your changes"
|
- ❌ "The Save button will apply your changes"
|
||||||
|
|
||||||
@@ -28,18 +31,21 @@ This document defines the writing standards, formatting rules, and content patte
|
|||||||
### Language Patterns
|
### Language Patterns
|
||||||
|
|
||||||
**Opening phrases:**
|
**Opening phrases:**
|
||||||
|
|
||||||
- "The [Feature] allows you to..."
|
- "The [Feature] allows you to..."
|
||||||
- "[Feature] is..."
|
- "[Feature] is..."
|
||||||
- "You can..."
|
- "You can..."
|
||||||
- "To [action]:"
|
- "To [action]:"
|
||||||
|
|
||||||
**Navigation instructions:**
|
**Navigation instructions:**
|
||||||
|
|
||||||
- "Navigate to [location]"
|
- "Navigate to [location]"
|
||||||
- "Click [element]"
|
- "Click [element]"
|
||||||
- "Select [option]"
|
- "Select [option]"
|
||||||
- "From the [page], click..."
|
- "From the [page], click..."
|
||||||
|
|
||||||
**Avoid:**
|
**Avoid:**
|
||||||
|
|
||||||
- Passive voice where active is clearer
|
- Passive voice where active is clearer
|
||||||
- Jargon without explanation
|
- Jargon without explanation
|
||||||
- Assuming prior knowledge
|
- Assuming prior knowledge
|
||||||
@@ -88,11 +94,11 @@ Never use H4 or deeper. If content requires more nesting, restructure into separ
|
|||||||
|
|
||||||
### Section Length
|
### Section Length
|
||||||
|
|
||||||
| Element | Target Length |
|
| Element | Target Length |
|
||||||
|---------|---------------|
|
| ------------- | -------------- |
|
||||||
| Paragraphs | 2-4 sentences |
|
| Paragraphs | 2-4 sentences |
|
||||||
| H2 sections | 100-300 words |
|
| H2 sections | 100-300 words |
|
||||||
| H3 sections | 50-150 words |
|
| H3 sections | 50-150 words |
|
||||||
| Full articles | 800-1500 words |
|
| Full articles | 800-1500 words |
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -102,6 +108,7 @@ Never use H4 or deeper. If content requires more nesting, restructure into separ
|
|||||||
### Lists
|
### Lists
|
||||||
|
|
||||||
**Bullet lists** - Use for features, options, characteristics (unordered items)
|
**Bullet lists** - Use for features, options, characteristics (unordered items)
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
type: 'bullet-list',
|
type: 'bullet-list',
|
||||||
@@ -114,6 +121,7 @@ Never use H4 or deeper. If content requires more nesting, restructure into separ
|
|||||||
```
|
```
|
||||||
|
|
||||||
**Ordered lists** - Use for step-by-step procedures (sequential actions)
|
**Ordered lists** - Use for step-by-step procedures (sequential actions)
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
type: 'ordered-list',
|
type: 'ordered-list',
|
||||||
@@ -127,6 +135,7 @@ Never use H4 or deeper. If content requires more nesting, restructure into separ
|
|||||||
```
|
```
|
||||||
|
|
||||||
**List guidelines:**
|
**List guidelines:**
|
||||||
|
|
||||||
- Keep procedures to 4-6 steps maximum
|
- Keep procedures to 4-6 steps maximum
|
||||||
- If longer, break into multiple procedures
|
- If longer, break into multiple procedures
|
||||||
- Start each item with an action verb for procedures
|
- Start each item with an action verb for procedures
|
||||||
@@ -138,12 +147,12 @@ Use callouts sparingly for important information that shouldn't be missed.
|
|||||||
|
|
||||||
**Types:**
|
**Types:**
|
||||||
|
|
||||||
| Variant | Use For | Example |
|
| Variant | Use For | Example |
|
||||||
|---------|---------|---------|
|
| --------- | --------------------------------- | -------------------------------------------------------------------------- |
|
||||||
| `info` | Additional context, clarification | "Monitors check at the interval you specify, starting from creation time." |
|
| `info` | Additional context, clarification | "Monitors check at the interval you specify, starting from creation time." |
|
||||||
| `tip` | Best practices, recommendations | "Use descriptive names to easily identify monitors in alerts." |
|
| `tip` | Best practices, recommendations | "Use descriptive names to easily identify monitors in alerts." |
|
||||||
| `warning` | Restrictions, potential issues | "Deleting a monitor removes all associated check history." |
|
| `warning` | Restrictions, potential issues | "Deleting a monitor removes all associated check history." |
|
||||||
| `success` | Confirmations, positive outcomes | "Your monitor is now active and checking every 5 minutes." |
|
| `success` | Confirmations, positive outcomes | "Your monitor is now active and checking every 5 minutes." |
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
@@ -155,6 +164,7 @@ Use callouts sparingly for important information that shouldn't be missed.
|
|||||||
```
|
```
|
||||||
|
|
||||||
**Callout guidelines:**
|
**Callout guidelines:**
|
||||||
|
|
||||||
- Maximum 2-3 callouts per article
|
- Maximum 2-3 callouts per article
|
||||||
- Keep callout text concise (1-2 sentences)
|
- Keep callout text concise (1-2 sentences)
|
||||||
- Title is optional but helps scannability
|
- Title is optional but helps scannability
|
||||||
@@ -163,11 +173,13 @@ Use callouts sparingly for important information that shouldn't be missed.
|
|||||||
### Inline Formatting
|
### Inline Formatting
|
||||||
|
|
||||||
**Bold** - Use for:
|
**Bold** - Use for:
|
||||||
|
|
||||||
- UI element names: "Click **Save**"
|
- UI element names: "Click **Save**"
|
||||||
- Key terms on first use: "**Uptime** measures availability over time"
|
- Key terms on first use: "**Uptime** measures availability over time"
|
||||||
- Emphasis in lists: "**Name** — The display name for your monitor"
|
- Emphasis in lists: "**Name** — The display name for your monitor"
|
||||||
|
|
||||||
**Code/monospace** - Use for:
|
**Code/monospace** - Use for:
|
||||||
|
|
||||||
- URLs: `https://example.com`
|
- URLs: `https://example.com`
|
||||||
- File paths: `/api/v1/monitors`
|
- File paths: `/api/v1/monitors`
|
||||||
- Technical values: `200`, `timeout`
|
- Technical values: `200`, `timeout`
|
||||||
@@ -175,12 +187,15 @@ Use callouts sparingly for important information that shouldn't be missed.
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
// In paragraph text, use backticks in markdown:
|
// In paragraph text, use backticks in markdown:
|
||||||
{ text: 'Enter the URL (e.g., `https://example.com`) in the field' }
|
{
|
||||||
|
text: "Enter the URL (e.g., `https://example.com`) in the field";
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Tables
|
### Tables
|
||||||
|
|
||||||
Use tables for:
|
Use tables for:
|
||||||
|
|
||||||
- Feature comparisons
|
- Feature comparisons
|
||||||
- Configuration options
|
- Configuration options
|
||||||
- Reference data with multiple attributes
|
- Reference data with multiple attributes
|
||||||
@@ -206,19 +221,19 @@ Use tables for:
|
|||||||
|
|
||||||
### Block Types Reference
|
### Block Types Reference
|
||||||
|
|
||||||
| Type | Purpose | When to Use |
|
| Type | Purpose | When to Use |
|
||||||
|------|---------|-------------|
|
| --------------- | ----------------- | ------------------------- |
|
||||||
| `heading` | Section titles | Start each major topic |
|
| `heading` | Section titles | Start each major topic |
|
||||||
| `paragraph` | Body text | Explanations, context |
|
| `paragraph` | Body text | Explanations, context |
|
||||||
| `bullet-list` | Unordered items | Features, options |
|
| `bullet-list` | Unordered items | Features, options |
|
||||||
| `ordered-list` | Sequential steps | Procedures |
|
| `ordered-list` | Sequential steps | Procedures |
|
||||||
| `checklist` | Checkable items | Requirements, checklists |
|
| `checklist` | Checkable items | Requirements, checklists |
|
||||||
| `callout` | Important notices | Tips, warnings |
|
| `callout` | Important notices | Tips, warnings |
|
||||||
| `code` | Code blocks | Commands, config examples |
|
| `code` | Code blocks | Commands, config examples |
|
||||||
| `table` | Structured data | Comparisons, reference |
|
| `table` | Structured data | Comparisons, reference |
|
||||||
| `image` | Screenshots | UI demonstration |
|
| `image` | Screenshots | UI demonstration |
|
||||||
| `icon-cards` | Feature grids | Capability overviews |
|
| `icon-cards` | Feature grids | Capability overviews |
|
||||||
| `article-links` | Related content | End-of-article navigation |
|
| `article-links` | Related content | End-of-article navigation |
|
||||||
|
|
||||||
### Icon Cards
|
### Icon Cards
|
||||||
|
|
||||||
@@ -284,11 +299,13 @@ Always end articles with related content:
|
|||||||
```
|
```
|
||||||
|
|
||||||
**Alt text guidelines:**
|
**Alt text guidelines:**
|
||||||
|
|
||||||
- Describe what the image shows (15-30 words)
|
- Describe what the image shows (15-30 words)
|
||||||
- Include key UI elements visible
|
- Include key UI elements visible
|
||||||
- Make it useful for screen readers
|
- Make it useful for screen readers
|
||||||
|
|
||||||
**Caption guidelines:**
|
**Caption guidelines:**
|
||||||
|
|
||||||
- Explain the context or what to notice
|
- Explain the context or what to notice
|
||||||
- Keep to one sentence
|
- Keep to one sentence
|
||||||
- Optional but recommended
|
- Optional but recommended
|
||||||
@@ -308,6 +325,7 @@ Always end articles with related content:
|
|||||||
### Step-by-Step Instructions
|
### Step-by-Step Instructions
|
||||||
|
|
||||||
**Format:**
|
**Format:**
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
type: 'ordered-list',
|
type: 'ordered-list',
|
||||||
@@ -322,6 +340,7 @@ Always end articles with related content:
|
|||||||
```
|
```
|
||||||
|
|
||||||
**Guidelines:**
|
**Guidelines:**
|
||||||
|
|
||||||
- Start each step with an action verb (Click, Enter, Select, Navigate)
|
- Start each step with an action verb (Click, Enter, Select, Navigate)
|
||||||
- One action per step
|
- One action per step
|
||||||
- Include the location of UI elements
|
- Include the location of UI elements
|
||||||
@@ -331,6 +350,7 @@ Always end articles with related content:
|
|||||||
### Describing Features
|
### Describing Features
|
||||||
|
|
||||||
**Format:**
|
**Format:**
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
type: 'bullet-list',
|
type: 'bullet-list',
|
||||||
@@ -350,18 +370,19 @@ Always end articles with related content:
|
|||||||
|
|
||||||
Use these terms consistently throughout documentation:
|
Use these terms consistently throughout documentation:
|
||||||
|
|
||||||
| Term | Use | Don't Use |
|
| Term | Use | Don't Use |
|
||||||
|------|-----|-----------|
|
| ------------ | ------------------------- | --------------------- |
|
||||||
| Monitor | The configured check | Watcher, probe, check |
|
| Monitor | The configured check | Watcher, probe, check |
|
||||||
| Check | A single monitoring event | Ping, request, poll |
|
| Check | A single monitoring event | Ping, request, poll |
|
||||||
| Incident | A detected problem | Outage, alert, issue |
|
| Incident | A detected problem | Outage, alert, issue |
|
||||||
| Notification | Alert sent to user | Message, email, ping |
|
| Notification | Alert sent to user | Message, email, ping |
|
||||||
| Dashboard | Main overview page | Home, overview |
|
| Dashboard | Main overview page | Home, overview |
|
||||||
| Sidebar | Left navigation | Menu, nav |
|
| Sidebar | Left navigation | Menu, nav |
|
||||||
|
|
||||||
### Feature Names
|
### Feature Names
|
||||||
|
|
||||||
Always match UI exactly:
|
Always match UI exactly:
|
||||||
|
|
||||||
- **Uptime** (not "Uptime Monitoring")
|
- **Uptime** (not "Uptime Monitoring")
|
||||||
- **PageSpeed** (not "Page Speed" or "Pagespeed")
|
- **PageSpeed** (not "Page Speed" or "Pagespeed")
|
||||||
- **Infrastructure** (not "Server Monitoring")
|
- **Infrastructure** (not "Server Monitoring")
|
||||||
@@ -375,36 +396,36 @@ Always match UI exactly:
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
blocks: [
|
blocks: [
|
||||||
{
|
{
|
||||||
type: 'heading',
|
type: "heading",
|
||||||
level: 2,
|
level: 2,
|
||||||
text: 'Overview',
|
text: "Overview",
|
||||||
id: 'overview'
|
id: "overview",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'paragraph',
|
type: "paragraph",
|
||||||
text: '[1-2 sentences: What this feature/concept is]'
|
text: "[1-2 sentences: What this feature/concept is]",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'paragraph',
|
type: "paragraph",
|
||||||
text: '[1-2 sentences: Why it matters to users]'
|
text: "[1-2 sentences: Why it matters to users]",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'heading',
|
type: "heading",
|
||||||
level: 2,
|
level: 2,
|
||||||
text: '[Main topic]',
|
text: "[Main topic]",
|
||||||
id: 'main-topic'
|
id: "main-topic",
|
||||||
},
|
},
|
||||||
// ... content blocks
|
// ... content blocks
|
||||||
{
|
{
|
||||||
type: 'article-links',
|
type: "article-links",
|
||||||
title: 'Next steps',
|
title: "Next steps",
|
||||||
items: [
|
items: [
|
||||||
// 2-3 logical next articles
|
// 2-3 logical next articles
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
]
|
];
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -412,40 +433,40 @@ Always match UI exactly:
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
blocks: [
|
blocks: [
|
||||||
{
|
{
|
||||||
type: 'heading',
|
type: "heading",
|
||||||
level: 2,
|
level: 2,
|
||||||
text: 'Overview',
|
text: "Overview",
|
||||||
id: 'overview'
|
id: "overview",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'paragraph',
|
type: "paragraph",
|
||||||
text: '[Brief description of what user will accomplish]'
|
text: "[Brief description of what user will accomplish]",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'heading',
|
type: "heading",
|
||||||
level: 2,
|
level: 2,
|
||||||
text: '[Action: Creating/Configuring/Setting up...]',
|
text: "[Action: Creating/Configuring/Setting up...]",
|
||||||
id: 'action'
|
id: "action",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'ordered-list',
|
type: "ordered-list",
|
||||||
items: [
|
items: [
|
||||||
// 4-6 steps
|
// 4-6 steps
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'callout',
|
type: "callout",
|
||||||
variant: 'tip',
|
variant: "tip",
|
||||||
text: '[Best practice or helpful hint]'
|
text: "[Best practice or helpful hint]",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'article-links',
|
type: "article-links",
|
||||||
title: 'Related articles',
|
title: "Related articles",
|
||||||
items: []
|
items: [],
|
||||||
}
|
},
|
||||||
]
|
];
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -492,6 +513,7 @@ Always match UI exactly:
|
|||||||
Before publishing any article, verify:
|
Before publishing any article, verify:
|
||||||
|
|
||||||
### Content
|
### Content
|
||||||
|
|
||||||
- [ ] Overview explains what AND why
|
- [ ] Overview explains what AND why
|
||||||
- [ ] Procedures are tested and accurate
|
- [ ] Procedures are tested and accurate
|
||||||
- [ ] All UI element names match exactly
|
- [ ] All UI element names match exactly
|
||||||
@@ -499,6 +521,7 @@ Before publishing any article, verify:
|
|||||||
- [ ] Related articles are linked
|
- [ ] Related articles are linked
|
||||||
|
|
||||||
### Formatting
|
### Formatting
|
||||||
|
|
||||||
- [ ] Only H2 and H3 headings used
|
- [ ] Only H2 and H3 headings used
|
||||||
- [ ] All headings have unique IDs
|
- [ ] All headings have unique IDs
|
||||||
- [ ] Lists use correct type (bullet vs ordered)
|
- [ ] Lists use correct type (bullet vs ordered)
|
||||||
@@ -506,6 +529,7 @@ Before publishing any article, verify:
|
|||||||
- [ ] Bold used for UI elements
|
- [ ] Bold used for UI elements
|
||||||
|
|
||||||
### Style
|
### Style
|
||||||
|
|
||||||
- [ ] Active voice throughout
|
- [ ] Active voice throughout
|
||||||
- [ ] Second person ("you")
|
- [ ] Second person ("you")
|
||||||
- [ ] Action verbs start procedure steps
|
- [ ] Action verbs start procedure steps
|
||||||
@@ -513,6 +537,7 @@ Before publishing any article, verify:
|
|||||||
- [ ] No marketing language
|
- [ ] No marketing language
|
||||||
|
|
||||||
### Technical
|
### Technical
|
||||||
|
|
||||||
- [ ] All links work
|
- [ ] All links work
|
||||||
- [ ] Images have alt text
|
- [ ] Images have alt text
|
||||||
- [ ] Code examples are correct
|
- [ ] Code examples are correct
|
||||||
@@ -525,6 +550,7 @@ Before publishing any article, verify:
|
|||||||
For icon-cards and other icon references, use these Lucide icon names:
|
For icon-cards and other icon references, use these Lucide icon names:
|
||||||
|
|
||||||
**Navigation:**
|
**Navigation:**
|
||||||
|
|
||||||
- `Globe` - Uptime/HTTP
|
- `Globe` - Uptime/HTTP
|
||||||
- `Gauge` - PageSpeed
|
- `Gauge` - PageSpeed
|
||||||
- `Server` - Infrastructure
|
- `Server` - Infrastructure
|
||||||
@@ -536,6 +562,7 @@ For icon-cards and other icon references, use these Lucide icon names:
|
|||||||
- `Users` - Team
|
- `Users` - Team
|
||||||
|
|
||||||
**Actions:**
|
**Actions:**
|
||||||
|
|
||||||
- `CheckCircle` - Success/complete
|
- `CheckCircle` - Success/complete
|
||||||
- `Clock` - Time/scheduling
|
- `Clock` - Time/scheduling
|
||||||
- `Info` - Information
|
- `Info` - Information
|
||||||
@@ -543,6 +570,7 @@ For icon-cards and other icon references, use these Lucide icon names:
|
|||||||
- `ArrowRight` - Navigation
|
- `ArrowRight` - Navigation
|
||||||
|
|
||||||
**Features:**
|
**Features:**
|
||||||
|
|
||||||
- `Database` - Data/storage
|
- `Database` - Data/storage
|
||||||
- `Terminal` - Commands
|
- `Terminal` - Commands
|
||||||
- `FileText` - Documentation
|
- `FileText` - Documentation
|
||||||
@@ -557,13 +585,13 @@ Articles are stored in `/content/index.js`:
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
export const articleContents = {
|
export const articleContents = {
|
||||||
'collection-id': {
|
"collection-id": {
|
||||||
'article-id': {
|
"article-id": {
|
||||||
blocks: [
|
blocks: [
|
||||||
// Content blocks
|
// Content blocks
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -583,9 +611,11 @@ Article metadata is in `/content/userGuideConfig.js`:
|
|||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
### Good Paragraph
|
### Good Paragraph
|
||||||
|
|
||||||
> "HTTP monitors check your websites and APIs at regular intervals. When a check fails—due to a timeout, error response, or connection issue—Checkmate creates an incident and sends notifications to your configured channels."
|
> "HTTP monitors check your websites and APIs at regular intervals. When a check fails—due to a timeout, error response, or connection issue—Checkmate creates an incident and sends notifications to your configured channels."
|
||||||
|
|
||||||
### Good Procedure
|
### Good Procedure
|
||||||
|
|
||||||
> 1. Navigate to **Uptime** in the sidebar
|
> 1. Navigate to **Uptime** in the sidebar
|
||||||
> 2. Click **Create monitor** in the top right
|
> 2. Click **Create monitor** in the top right
|
||||||
> 3. Enter the URL you want to monitor (include `https://`)
|
> 3. Enter the URL you want to monitor (include `https://`)
|
||||||
@@ -593,9 +623,11 @@ Article metadata is in `/content/userGuideConfig.js`:
|
|||||||
> 5. Click **Save** to create the monitor
|
> 5. Click **Save** to create the monitor
|
||||||
|
|
||||||
### Good Callout
|
### Good Callout
|
||||||
|
|
||||||
> **Tip:** Use descriptive monitor names like "Production API" or "Marketing Website" to quickly identify issues in notifications.
|
> **Tip:** Use descriptive monitor names like "Production API" or "Marketing Website" to quickly identify issues in notifications.
|
||||||
|
|
||||||
### Good Feature List
|
### Good Feature List
|
||||||
|
|
||||||
> - **Name** — A descriptive label for easy identification
|
> - **Name** — A descriptive label for easy identification
|
||||||
> - **URL** — The address to monitor (must include protocol)
|
> - **URL** — The address to monitor (must include protocol)
|
||||||
> - **Interval** — How often to check (1-60 minutes)
|
> - **Interval** — How often to check (1-60 minutes)
|
||||||
@@ -603,4 +635,4 @@ Article metadata is in `/content/userGuideConfig.js`:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
*Last updated: January 2025*
|
_Last updated: January 2025_
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
/* SearchResults styles (Dark theme) */
|
/* SearchResults styles (Dark theme) */
|
||||||
|
|
||||||
.user-guide-search-result-item {
|
.user-guide-search-result-item {
|
||||||
transition: background-color 150ms ease, border-color 150ms ease;
|
transition:
|
||||||
|
background-color 150ms ease,
|
||||||
|
border-color 150ms ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-guide-search-result-item:hover {
|
.user-guide-search-result-item:hover {
|
||||||
|
|||||||
@@ -6,12 +6,12 @@
|
|||||||
|
|
||||||
.user-guide-header-icon-button:hover {
|
.user-guide-header-icon-button:hover {
|
||||||
background-color: rgba(255, 255, 255, 0.1) !important;
|
background-color: rgba(255, 255, 255, 0.1) !important;
|
||||||
color: #1570EF !important;
|
color: #1570ef !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-guide-header-icon-button.active {
|
.user-guide-header-icon-button.active {
|
||||||
background-color: #0d0d0d;
|
background-color: #0d0d0d;
|
||||||
color: #1570EF;
|
color: #1570ef;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-guide-breadcrumb-dropdown-trigger {
|
.user-guide-breadcrumb-dropdown-trigger {
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
.user-guide-search-input:focus {
|
.user-guide-search-input:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
border-color: #1570EF;
|
border-color: #1570ef;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-guide-search-input::placeholder {
|
.user-guide-search-input::placeholder {
|
||||||
|
|||||||
@@ -105,7 +105,10 @@ const SidebarHeader = ({
|
|||||||
}}
|
}}
|
||||||
title="Back"
|
title="Back"
|
||||||
>
|
>
|
||||||
<ChevronLeft size={16} strokeWidth={1.5} />
|
<ChevronLeft
|
||||||
|
size={16}
|
||||||
|
strokeWidth={1.5}
|
||||||
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{/* Forward button */}
|
{/* Forward button */}
|
||||||
@@ -129,7 +132,10 @@ const SidebarHeader = ({
|
|||||||
}}
|
}}
|
||||||
title="Forward"
|
title="Forward"
|
||||||
>
|
>
|
||||||
<ChevronRight size={16} strokeWidth={1.5} />
|
<ChevronRight
|
||||||
|
size={16}
|
||||||
|
strokeWidth={1.5}
|
||||||
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{/* Home button */}
|
{/* Home button */}
|
||||||
@@ -156,7 +162,10 @@ const SidebarHeader = ({
|
|||||||
}}
|
}}
|
||||||
title="Home"
|
title="Home"
|
||||||
>
|
>
|
||||||
<Home size={16} strokeWidth={1.5} />
|
<Home
|
||||||
|
size={16}
|
||||||
|
strokeWidth={1.5}
|
||||||
|
/>
|
||||||
</button>
|
</button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
@@ -167,9 +176,7 @@ const SidebarHeader = ({
|
|||||||
style={{ position: "relative", flex: 1, minWidth: 0 }}
|
style={{ position: "relative", flex: 1, minWidth: 0 }}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
onClick={() =>
|
onClick={() => breadcrumbs.length > 1 && setIsDropdownOpen(!isDropdownOpen)}
|
||||||
breadcrumbs.length > 1 && setIsDropdownOpen(!isDropdownOpen)
|
|
||||||
}
|
|
||||||
className="user-guide-breadcrumb-dropdown-trigger"
|
className="user-guide-breadcrumb-dropdown-trigger"
|
||||||
style={{
|
style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
@@ -222,7 +229,9 @@ const SidebarHeader = ({
|
|||||||
backgroundColor: colors.background.white,
|
backgroundColor: colors.background.white,
|
||||||
border: border.default,
|
border: border.default,
|
||||||
borderRadius: border.radius,
|
borderRadius: border.radius,
|
||||||
boxShadow: isDark ? "0 4px 12px rgba(0, 0, 0, 0.3)" : "0 4px 12px rgba(0, 0, 0, 0.1)",
|
boxShadow: isDark
|
||||||
|
? "0 4px 12px rgba(0, 0, 0, 0.3)"
|
||||||
|
: "0 4px 12px rgba(0, 0, 0, 0.1)",
|
||||||
minWidth: 180,
|
minWidth: 180,
|
||||||
maxWidth: 280,
|
maxWidth: 280,
|
||||||
zIndex: 100,
|
zIndex: 100,
|
||||||
@@ -286,7 +295,10 @@ const SidebarHeader = ({
|
|||||||
}}
|
}}
|
||||||
title="Open in new tab"
|
title="Open in new tab"
|
||||||
>
|
>
|
||||||
<ExternalLink size={16} strokeWidth={1.5} />
|
<ExternalLink
|
||||||
|
size={16}
|
||||||
|
strokeWidth={1.5}
|
||||||
|
/>
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
@@ -308,7 +320,10 @@ const SidebarHeader = ({
|
|||||||
}}
|
}}
|
||||||
title="Search"
|
title="Search"
|
||||||
>
|
>
|
||||||
<Search size={16} strokeWidth={1.5} />
|
<Search
|
||||||
|
size={16}
|
||||||
|
strokeWidth={1.5}
|
||||||
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{/* Close button */}
|
{/* Close button */}
|
||||||
@@ -329,7 +344,10 @@ const SidebarHeader = ({
|
|||||||
}}
|
}}
|
||||||
title="Close"
|
title="Close"
|
||||||
>
|
>
|
||||||
<X size={16} strokeWidth={1.5} />
|
<X
|
||||||
|
size={16}
|
||||||
|
strokeWidth={1.5}
|
||||||
|
/>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -11,7 +11,10 @@ import SearchResults from "./SearchResults";
|
|||||||
import { getCollection, getArticle } from "./content/userGuideConfig";
|
import { getCollection, getArticle } from "./content/userGuideConfig";
|
||||||
import { getArticleContent } from "./content";
|
import { getArticleContent } from "./content";
|
||||||
import { extractToc } from "./content/contentTypes";
|
import { extractToc } from "./content/contentTypes";
|
||||||
import { useUserGuideSidebarContext, DEFAULT_CONTENT_WIDTH } from "./UserGuideSidebarContext";
|
import {
|
||||||
|
useUserGuideSidebarContext,
|
||||||
|
DEFAULT_CONTENT_WIDTH,
|
||||||
|
} from "./UserGuideSidebarContext";
|
||||||
import "./SidebarWrapper.css";
|
import "./SidebarWrapper.css";
|
||||||
|
|
||||||
const STORAGE_KEY = "checkmate-sidebar-state";
|
const STORAGE_KEY = "checkmate-sidebar-state";
|
||||||
@@ -166,7 +169,8 @@ const SidebarWrapper = ({ isOpen, onClose, onOpen, initialPath, onOpenInNewTab }
|
|||||||
|
|
||||||
// Get current collection and article
|
// Get current collection and article
|
||||||
const collection = collectionId ? getCollection(collectionId) : undefined;
|
const collection = collectionId ? getCollection(collectionId) : undefined;
|
||||||
const article = collectionId && articleId ? getArticle(collectionId, articleId) : undefined;
|
const article =
|
||||||
|
collectionId && articleId ? getArticle(collectionId, articleId) : undefined;
|
||||||
|
|
||||||
// Get prev/next articles for navigation
|
// Get prev/next articles for navigation
|
||||||
const getAdjacentArticles = () => {
|
const getAdjacentArticles = () => {
|
||||||
@@ -259,7 +263,10 @@ const SidebarWrapper = ({ isOpen, onClose, onOpen, initialPath, onOpenInNewTab }
|
|||||||
mode="in-app"
|
mode="in-app"
|
||||||
>
|
>
|
||||||
{articleContent && (
|
{articleContent && (
|
||||||
<ContentRenderer content={articleContent} onNavigate={handleNavigate} />
|
<ContentRenderer
|
||||||
|
content={articleContent}
|
||||||
|
onNavigate={handleNavigate}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
</ArticlePage>
|
</ArticlePage>
|
||||||
);
|
);
|
||||||
@@ -419,7 +426,10 @@ const SidebarWrapper = ({ isOpen, onClose, onOpen, initialPath, onOpenInNewTab }
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Tab Bar - Always visible */}
|
{/* Tab Bar - Always visible */}
|
||||||
<TabBar activeTab={isOpen ? activeTab : undefined} onTabChange={handleTabClick} />
|
<TabBar
|
||||||
|
activeTab={isOpen ? activeTab : undefined}
|
||||||
|
onTabChange={handleTabClick}
|
||||||
|
/>
|
||||||
|
|
||||||
{/* Main Sidebar Content - Slides in/out */}
|
{/* Main Sidebar Content - Slides in/out */}
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -64,7 +64,12 @@ const TabBar = ({ activeTab, onTabChange }) => {
|
|||||||
<TabItem
|
<TabItem
|
||||||
id="user-guide"
|
id="user-guide"
|
||||||
label="User guide"
|
label="User guide"
|
||||||
icon={<BookOpen size={18} strokeWidth={1.5} />}
|
icon={
|
||||||
|
<BookOpen
|
||||||
|
size={18}
|
||||||
|
strokeWidth={1.5}
|
||||||
|
/>
|
||||||
|
}
|
||||||
isActive={activeTab === "user-guide"}
|
isActive={activeTab === "user-guide"}
|
||||||
onClick={() => onTabChange("user-guide")}
|
onClick={() => onTabChange("user-guide")}
|
||||||
colors={colors}
|
colors={colors}
|
||||||
@@ -73,7 +78,12 @@ const TabBar = ({ activeTab, onTabChange }) => {
|
|||||||
<TabItem
|
<TabItem
|
||||||
id="help"
|
id="help"
|
||||||
label="Help"
|
label="Help"
|
||||||
icon={<HelpCircle size={18} strokeWidth={1.5} />}
|
icon={
|
||||||
|
<HelpCircle
|
||||||
|
size={18}
|
||||||
|
strokeWidth={1.5}
|
||||||
|
/>
|
||||||
|
}
|
||||||
isActive={activeTab === "help"}
|
isActive={activeTab === "help"}
|
||||||
onClick={() => onTabChange("help")}
|
onClick={() => onTabChange("help")}
|
||||||
colors={colors}
|
colors={colors}
|
||||||
|
|||||||
@@ -35,5 +35,5 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-guide-fast-find-item:hover .arrow-icon {
|
.user-guide-fast-find-item:hover .arrow-icon {
|
||||||
color: #1570EF;
|
color: #1570ef;
|
||||||
}
|
}
|
||||||
@@ -29,7 +29,12 @@ const iconMap = {
|
|||||||
Users,
|
Users,
|
||||||
};
|
};
|
||||||
|
|
||||||
const UserGuideLanding = ({ onNavigate, searchQuery, onSearchChange, mode = "in-app" }) => {
|
const UserGuideLanding = ({
|
||||||
|
onNavigate,
|
||||||
|
searchQuery,
|
||||||
|
onSearchChange,
|
||||||
|
mode = "in-app",
|
||||||
|
}) => {
|
||||||
const { colors, typography, spacing, border } = useUserGuideTheme();
|
const { colors, typography, spacing, border } = useUserGuideTheme();
|
||||||
const isInApp = mode === "in-app";
|
const isInApp = mode === "in-app";
|
||||||
|
|
||||||
@@ -199,7 +204,6 @@ const UserGuideLanding = ({ onNavigate, searchQuery, onSearchChange, mode = "in-
|
|||||||
Look for help icons and tooltips throughout the interface.
|
Look for help icons and tooltips throughout the interface.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -40,8 +40,7 @@ const articleContents = {
|
|||||||
{
|
{
|
||||||
icon: "Gauge",
|
icon: "Gauge",
|
||||||
title: "PageSpeed insights",
|
title: "PageSpeed insights",
|
||||||
description:
|
description: "Track website performance with Google Lighthouse integration.",
|
||||||
"Track website performance with Google Lighthouse integration.",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: "Server",
|
icon: "Server",
|
||||||
@@ -51,7 +50,8 @@ const articleContents = {
|
|||||||
{
|
{
|
||||||
icon: "Bell",
|
icon: "Bell",
|
||||||
title: "Instant alerts",
|
title: "Instant alerts",
|
||||||
description: "Get notified via email, Slack, Discord, PagerDuty, or webhooks.",
|
description:
|
||||||
|
"Get notified via email, Slack, Discord, PagerDuty, or webhooks.",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -141,14 +141,16 @@ const articleContents = {
|
|||||||
{ text: "Click **Create monitor** in the top right" },
|
{ text: "Click **Create monitor** in the top right" },
|
||||||
{ text: "Select **HTTP/HTTPS** as the monitor type" },
|
{ text: "Select **HTTP/HTTPS** as the monitor type" },
|
||||||
{ text: "Enter the URL you want to monitor (e.g., `https://example.com`)" },
|
{ text: "Enter the URL you want to monitor (e.g., `https://example.com`)" },
|
||||||
{ text: "Set the check interval (1-5 minutes recommended for critical services)" },
|
{
|
||||||
|
text: "Set the check interval (1-5 minutes recommended for critical services)",
|
||||||
|
},
|
||||||
{ text: "Click **Create monitor** to start monitoring" },
|
{ text: "Click **Create monitor** to start monitoring" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "callout",
|
type: "callout",
|
||||||
variant: "tip",
|
variant: "tip",
|
||||||
text: "Use descriptive names like \"Production API\" or \"Marketing Website\" to easily identify monitors in alerts.",
|
text: 'Use descriptive names like "Production API" or "Marketing Website" to easily identify monitors in alerts.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "heading",
|
type: "heading",
|
||||||
@@ -234,13 +236,22 @@ const articleContents = {
|
|||||||
{
|
{
|
||||||
type: "bullet-list",
|
type: "bullet-list",
|
||||||
items: [
|
items: [
|
||||||
{ bold: "Uptime", text: "View and manage HTTP, ping, port, and Docker monitors" },
|
{
|
||||||
{ bold: "PageSpeed", text: "Access performance monitoring and Lighthouse reports" },
|
bold: "Uptime",
|
||||||
|
text: "View and manage HTTP, ping, port, and Docker monitors",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
bold: "PageSpeed",
|
||||||
|
text: "Access performance monitoring and Lighthouse reports",
|
||||||
|
},
|
||||||
{ bold: "Infrastructure", text: "Monitor server hardware metrics" },
|
{ bold: "Infrastructure", text: "Monitor server hardware metrics" },
|
||||||
{ bold: "Incidents", text: "View current and past downtime events" },
|
{ bold: "Incidents", text: "View current and past downtime events" },
|
||||||
{ bold: "Status pages", text: "Create and manage public status pages" },
|
{ bold: "Status pages", text: "Create and manage public status pages" },
|
||||||
{ bold: "Maintenance", text: "Schedule planned maintenance windows" },
|
{ bold: "Maintenance", text: "Schedule planned maintenance windows" },
|
||||||
{ bold: "Notifications", text: "Configure alert channels (email, Slack, Discord, etc.)" },
|
{
|
||||||
|
bold: "Notifications",
|
||||||
|
text: "Configure alert channels (email, Slack, Discord, etc.)",
|
||||||
|
},
|
||||||
{ bold: "Settings", text: "Manage account and global settings" },
|
{ bold: "Settings", text: "Manage account and global settings" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -257,7 +268,10 @@ const articleContents = {
|
|||||||
{
|
{
|
||||||
type: "bullet-list",
|
type: "bullet-list",
|
||||||
items: [
|
items: [
|
||||||
{ bold: "Status indicator", text: "Green (up), red (down), or yellow (degraded)" },
|
{
|
||||||
|
bold: "Status indicator",
|
||||||
|
text: "Green (up), red (down), or yellow (degraded)",
|
||||||
|
},
|
||||||
{ bold: "Name", text: "The monitor's display name" },
|
{ bold: "Name", text: "The monitor's display name" },
|
||||||
{ bold: "URL/Host", text: "The target being monitored" },
|
{ bold: "URL/Host", text: "The target being monitored" },
|
||||||
{ bold: "Response time", text: "Latest response time in milliseconds" },
|
{ bold: "Response time", text: "Latest response time in milliseconds" },
|
||||||
@@ -435,10 +449,19 @@ const articleContents = {
|
|||||||
{
|
{
|
||||||
type: "bullet-list",
|
type: "bullet-list",
|
||||||
items: [
|
items: [
|
||||||
{ bold: "Name", text: "A descriptive name for the monitor (max 50 characters)" },
|
{
|
||||||
|
bold: "Name",
|
||||||
|
text: "A descriptive name for the monitor (max 50 characters)",
|
||||||
|
},
|
||||||
{ bold: "URL", text: "The full URL to monitor (must include protocol)" },
|
{ bold: "URL", text: "The full URL to monitor (must include protocol)" },
|
||||||
{ bold: "Check interval", text: "How often to check (15 seconds to 30 minutes)" },
|
{
|
||||||
{ bold: "Ignore TLS errors", text: "Skip SSL certificate validation if needed" },
|
bold: "Check interval",
|
||||||
|
text: "How often to check (15 seconds to 30 minutes)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
bold: "Ignore TLS errors",
|
||||||
|
text: "Skip SSL certificate validation if needed",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -456,7 +479,10 @@ const articleContents = {
|
|||||||
items: [
|
items: [
|
||||||
{ bold: "Match method", text: "How to compare: equal, include, or regex" },
|
{ bold: "Match method", text: "How to compare: equal, include, or regex" },
|
||||||
{ bold: "Expected value", text: "The value to match against" },
|
{ bold: "Expected value", text: "The value to match against" },
|
||||||
{ bold: "JSON path", text: "JMESPath expression to extract data from JSON responses" },
|
{
|
||||||
|
bold: "JSON path",
|
||||||
|
text: "JMESPath expression to extract data from JSON responses",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -680,10 +706,19 @@ const articleContents = {
|
|||||||
{
|
{
|
||||||
type: "bullet-list",
|
type: "bullet-list",
|
||||||
items: [
|
items: [
|
||||||
{ bold: "Service criticality", text: "Mission-critical services need shorter intervals" },
|
{
|
||||||
{ bold: "Expected downtime impact", text: "High-traffic sites benefit from faster detection" },
|
bold: "Service criticality",
|
||||||
|
text: "Mission-critical services need shorter intervals",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
bold: "Expected downtime impact",
|
||||||
|
text: "High-traffic sites benefit from faster detection",
|
||||||
|
},
|
||||||
{ bold: "Resource usage", text: "Shorter intervals use more system resources" },
|
{ bold: "Resource usage", text: "Shorter intervals use more system resources" },
|
||||||
{ bold: "False positive tolerance", text: "Longer intervals reduce noise from brief glitches" },
|
{
|
||||||
|
bold: "False positive tolerance",
|
||||||
|
text: "Longer intervals reduce noise from brief glitches",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -782,7 +817,10 @@ const articleContents = {
|
|||||||
{
|
{
|
||||||
type: "bullet-list",
|
type: "bullet-list",
|
||||||
items: [
|
items: [
|
||||||
{ bold: "Issuer", text: "The certificate authority that issued the certificate" },
|
{
|
||||||
|
bold: "Issuer",
|
||||||
|
text: "The certificate authority that issued the certificate",
|
||||||
|
},
|
||||||
{ bold: "Valid from", text: "When the certificate became valid" },
|
{ bold: "Valid from", text: "When the certificate became valid" },
|
||||||
{ bold: "Expiration date", text: "When the certificate expires" },
|
{ bold: "Expiration date", text: "When the certificate expires" },
|
||||||
{ bold: "Days until expiry", text: "Countdown to expiration" },
|
{ bold: "Days until expiry", text: "Countdown to expiration" },
|
||||||
@@ -1002,7 +1040,10 @@ const articleContents = {
|
|||||||
type: "bullet-list",
|
type: "bullet-list",
|
||||||
items: [
|
items: [
|
||||||
{ bold: "Performance", text: "Measures loading speed and interactivity" },
|
{ bold: "Performance", text: "Measures loading speed and interactivity" },
|
||||||
{ bold: "Accessibility", text: "Evaluates usability for people with disabilities" },
|
{
|
||||||
|
bold: "Accessibility",
|
||||||
|
text: "Evaluates usability for people with disabilities",
|
||||||
|
},
|
||||||
{ bold: "Best practices", text: "Checks for modern web development standards" },
|
{ bold: "Best practices", text: "Checks for modern web development standards" },
|
||||||
{ bold: "SEO", text: "Assesses search engine optimization basics" },
|
{ bold: "SEO", text: "Assesses search engine optimization basics" },
|
||||||
],
|
],
|
||||||
@@ -1191,8 +1232,14 @@ const articleContents = {
|
|||||||
{
|
{
|
||||||
type: "bullet-list",
|
type: "bullet-list",
|
||||||
items: [
|
items: [
|
||||||
{ bold: "Upward trends", text: "Scores improving—your optimizations are working" },
|
{
|
||||||
{ bold: "Downward trends", text: "Scores declining—investigate recent changes" },
|
bold: "Upward trends",
|
||||||
|
text: "Scores improving—your optimizations are working",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
bold: "Downward trends",
|
||||||
|
text: "Scores declining—investigate recent changes",
|
||||||
|
},
|
||||||
{ bold: "Flat trends", text: "Stable performance—no significant changes" },
|
{ bold: "Flat trends", text: "Stable performance—no significant changes" },
|
||||||
{ bold: "Spikes", text: "Temporary issues—check for one-time events" },
|
{ bold: "Spikes", text: "Temporary issues—check for one-time events" },
|
||||||
],
|
],
|
||||||
@@ -1573,7 +1620,10 @@ const articleContents = {
|
|||||||
items: [
|
items: [
|
||||||
{ bold: "Started", text: "When the first failure was detected" },
|
{ bold: "Started", text: "When the first failure was detected" },
|
||||||
{ bold: "Notifications sent", text: "When alerts were dispatched" },
|
{ bold: "Notifications sent", text: "When alerts were dispatched" },
|
||||||
{ bold: "Acknowledged", text: "When someone began investigating (if applicable)" },
|
{
|
||||||
|
bold: "Acknowledged",
|
||||||
|
text: "When someone began investigating (if applicable)",
|
||||||
|
},
|
||||||
{ bold: "Resolved", text: "When the monitor recovered" },
|
{ bold: "Resolved", text: "When the monitor recovered" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -1678,9 +1728,18 @@ const articleContents = {
|
|||||||
{
|
{
|
||||||
type: "bullet-list",
|
type: "bullet-list",
|
||||||
items: [
|
items: [
|
||||||
{ bold: "Recurring times", text: "Incidents at the same time might indicate scheduled jobs or traffic spikes" },
|
{
|
||||||
{ bold: "Duration trends", text: "Longer incidents may indicate slower recovery processes" },
|
bold: "Recurring times",
|
||||||
{ bold: "Frequency changes", text: "Increasing incidents could signal infrastructure problems" },
|
text: "Incidents at the same time might indicate scheduled jobs or traffic spikes",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
bold: "Duration trends",
|
||||||
|
text: "Longer incidents may indicate slower recovery processes",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
bold: "Frequency changes",
|
||||||
|
text: "Increasing incidents could signal infrastructure problems",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -2174,10 +2233,19 @@ const articleContents = {
|
|||||||
{
|
{
|
||||||
type: "bullet-list",
|
type: "bullet-list",
|
||||||
items: [
|
items: [
|
||||||
{ bold: "Show uptime percentage", text: "Display overall uptime statistics for each monitor" },
|
{
|
||||||
|
bold: "Show uptime percentage",
|
||||||
|
text: "Display overall uptime statistics for each monitor",
|
||||||
|
},
|
||||||
{ bold: "Show charts", text: "Display response time performance graphs" },
|
{ bold: "Show charts", text: "Display response time performance graphs" },
|
||||||
{ bold: "Show admin login link", text: "Add a link to the Checkmate login page" },
|
{
|
||||||
{ bold: "Publish/Unpublish", text: "Control whether the page is publicly accessible" },
|
bold: "Show admin login link",
|
||||||
|
text: "Add a link to the Checkmate login page",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
bold: "Publish/Unpublish",
|
||||||
|
text: "Control whether the page is publicly accessible",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -2544,10 +2612,22 @@ const articleContents = {
|
|||||||
{
|
{
|
||||||
type: "bullet-list",
|
type: "bullet-list",
|
||||||
items: [
|
items: [
|
||||||
{ bold: "CPU threshold", text: "Alert when CPU usage exceeds this percentage (1-100%)" },
|
{
|
||||||
{ bold: "Memory threshold", text: "Alert when memory usage exceeds this percentage (1-100%)" },
|
bold: "CPU threshold",
|
||||||
{ bold: "Disk threshold", text: "Alert when disk usage exceeds this percentage (1-100%)" },
|
text: "Alert when CPU usage exceeds this percentage (1-100%)",
|
||||||
{ bold: "Temperature threshold", text: "Alert when temperature exceeds this value (1-150°C)" },
|
},
|
||||||
|
{
|
||||||
|
bold: "Memory threshold",
|
||||||
|
text: "Alert when memory usage exceeds this percentage (1-100%)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
bold: "Disk threshold",
|
||||||
|
text: "Alert when disk usage exceeds this percentage (1-100%)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
bold: "Temperature threshold",
|
||||||
|
text: "Alert when temperature exceeds this value (1-150°C)",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -2576,7 +2656,10 @@ const articleContents = {
|
|||||||
items: [
|
items: [
|
||||||
{ bold: "Light/Dark mode", text: "Toggle between light and dark themes" },
|
{ bold: "Light/Dark mode", text: "Toggle between light and dark themes" },
|
||||||
{ bold: "Language", text: "Select your preferred language" },
|
{ bold: "Language", text: "Select your preferred language" },
|
||||||
{ bold: "Show URLs", text: "Toggle whether to display monitor URLs in the interface" },
|
{
|
||||||
|
bold: "Show URLs",
|
||||||
|
text: "Toggle whether to display monitor URLs in the interface",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -109,7 +109,15 @@ export const collections = [
|
|||||||
id: "uptime-metrics",
|
id: "uptime-metrics",
|
||||||
title: "Understanding uptime metrics",
|
title: "Understanding uptime metrics",
|
||||||
description: "Response time, status codes, and uptime percentage.",
|
description: "Response time, status codes, and uptime percentage.",
|
||||||
keywords: ["metrics", "response", "time", "status", "code", "uptime", "percentage"],
|
keywords: [
|
||||||
|
"metrics",
|
||||||
|
"response",
|
||||||
|
"time",
|
||||||
|
"status",
|
||||||
|
"code",
|
||||||
|
"uptime",
|
||||||
|
"percentage",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -10,7 +10,13 @@ import {
|
|||||||
const UserGuideSidebar = () => {
|
const UserGuideSidebar = () => {
|
||||||
const { isOpen, open, close } = useUserGuideSidebarContext();
|
const { isOpen, open, close } = useUserGuideSidebarContext();
|
||||||
|
|
||||||
return <SidebarWrapper isOpen={isOpen} onOpen={open} onClose={close} />;
|
return (
|
||||||
|
<SidebarWrapper
|
||||||
|
isOpen={isOpen}
|
||||||
|
onOpen={open}
|
||||||
|
onClose={close}
|
||||||
|
/>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
|||||||
Reference in new issue
Block a user