Skip to content

Commit 089f79c

Browse files
committed
index
1 parent 0a87d0b commit 089f79c

File tree

2 files changed

+236
-64
lines changed

2 files changed

+236
-64
lines changed

docs/index.html

Lines changed: 236 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,236 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Datadog Browser SDKs - API Documentation</title>
7+
<style>
8+
:root {
9+
--primary-color: #632CA6;
10+
--secondary-color: #4834d4;
11+
--background-color: #f8f9fa;
12+
--text-color: #333;
13+
--border-color: #ddd;
14+
--card-shadow: 0 2px 8px rgba(0,0,0,0.1);
15+
}
16+
17+
* {
18+
margin: 0;
19+
padding: 0;
20+
box-sizing: border-box;
21+
}
22+
23+
body {
24+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
25+
background-color: var(--background-color);
26+
color: var(--text-color);
27+
line-height: 1.6;
28+
}
29+
30+
.header {
31+
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
32+
color: white;
33+
padding: 2rem 0;
34+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
35+
}
36+
37+
.container {
38+
max-width: 1200px;
39+
margin: 0 auto;
40+
padding: 0 2rem;
41+
}
42+
43+
h1 {
44+
font-size: 2.5rem;
45+
margin-bottom: 0.5rem;
46+
}
47+
48+
.subtitle {
49+
font-size: 1.2rem;
50+
opacity: 0.9;
51+
}
52+
53+
.main-content {
54+
padding: 3rem 0;
55+
}
56+
57+
.packages-grid {
58+
display: grid;
59+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
60+
gap: 2rem;
61+
margin-top: 2rem;
62+
}
63+
64+
.package-card {
65+
background: white;
66+
border-radius: 8px;
67+
padding: 2rem;
68+
box-shadow: var(--card-shadow);
69+
transition: transform 0.3s, box-shadow 0.3s;
70+
}
71+
72+
.package-card:hover {
73+
transform: translateY(-4px);
74+
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
75+
}
76+
77+
.package-card h2 {
78+
color: var(--primary-color);
79+
margin-bottom: 1rem;
80+
font-size: 1.5rem;
81+
}
82+
83+
.package-card p {
84+
color: #666;
85+
margin-bottom: 1.5rem;
86+
}
87+
88+
.package-links {
89+
display: flex;
90+
flex-direction: column;
91+
gap: 0.5rem;
92+
}
93+
94+
.package-links a {
95+
color: var(--secondary-color);
96+
text-decoration: none;
97+
padding: 0.5rem 1rem;
98+
border: 1px solid var(--border-color);
99+
border-radius: 4px;
100+
transition: all 0.3s;
101+
text-align: center;
102+
}
103+
104+
.package-links a:hover {
105+
background-color: var(--secondary-color);
106+
color: white;
107+
border-color: var(--secondary-color);
108+
}
109+
110+
.intro {
111+
background: white;
112+
padding: 2rem;
113+
border-radius: 8px;
114+
box-shadow: var(--card-shadow);
115+
margin-bottom: 3rem;
116+
}
117+
118+
.intro h2 {
119+
color: var(--primary-color);
120+
margin-bottom: 1rem;
121+
}
122+
123+
.intro ul {
124+
margin-left: 2rem;
125+
margin-top: 1rem;
126+
}
127+
128+
.intro code {
129+
background-color: #f3f4f6;
130+
padding: 2px 6px;
131+
border-radius: 3px;
132+
font-family: 'Consolas', 'Monaco', monospace;
133+
}
134+
135+
.footer {
136+
background-color: #f1f3f5;
137+
padding: 2rem 0;
138+
margin-top: 4rem;
139+
text-align: center;
140+
color: #666;
141+
}
142+
143+
.footer a {
144+
color: var(--secondary-color);
145+
text-decoration: none;
146+
}
147+
148+
.footer a:hover {
149+
text-decoration: underline;
150+
}
151+
</style>
152+
</head>
153+
<body>
154+
<header class="header">
155+
<div class="container">
156+
<h1>Datadog Browser SDKs</h1>
157+
<p class="subtitle">API Reference Documentation</p>
158+
</div>
159+
</header>
160+
161+
<main class="main-content">
162+
<div class="container">
163+
<section class="intro">
164+
<h2>Welcome to Datadog Browser SDKs Documentation</h2>
165+
<p>
166+
This documentation provides a comprehensive API reference for all Datadog Browser SDKs.
167+
Choose a package below to explore its API:
168+
</p>
169+
<ul>
170+
<li><strong>RUM (Real User Monitoring)</strong> - Monitor and analyze the real-time performance and user experience of your web application</li>
171+
<li><strong>Logs</strong> - Collect and analyze browser logs in real-time</li>
172+
<li><strong>Session Replay</strong> - Record and replay user sessions to understand user behavior</li>
173+
</ul>
174+
</section>
175+
176+
<section class="packages">
177+
<div class="packages-grid">
178+
<div class="package-card">
179+
<h2>@datadog/browser-rum</h2>
180+
<p>
181+
Full RUM SDK with Session Replay and Real User Profiling capabilities.
182+
Monitor your web application's performance and user experience.
183+
</p>
184+
<div class="package-links">
185+
<a href="./browser-rum.html">View API Documentation</a>
186+
</div>
187+
</div>
188+
189+
<div class="package-card">
190+
<h2>@datadog/browser-rum-slim</h2>
191+
<p>
192+
Lightweight version of the RUM SDK without Session Replay.
193+
Ideal for performance-sensitive applications.
194+
</p>
195+
<div class="package-links">
196+
<a href="./browser-rum-slim.html">View API Documentation</a>
197+
</div>
198+
</div>
199+
200+
<div class="package-card">
201+
<h2>@datadog/browser-logs</h2>
202+
<p>
203+
Browser logs collection SDK.
204+
Collect, process, and analyze logs from your web applications.
205+
</p>
206+
<div class="package-links">
207+
<a href="./browser-logs.html">View API Documentation</a>
208+
</div>
209+
</div>
210+
211+
<div class="package-card">
212+
<h2>@datadog/browser-rum-react</h2>
213+
<p>
214+
React-specific integrations for the RUM SDK.
215+
Includes React error boundaries and component tracking.
216+
</p>
217+
<div class="package-links">
218+
<a href="./browser-rum-react.html">View API Documentation</a>
219+
</div>
220+
</div>
221+
</div>
222+
</section>
223+
</div>
224+
</main>
225+
226+
<footer class="footer">
227+
<div class="container">
228+
<p>
229+
© 2024 Datadog, Inc. |
230+
<a href="https://github.com/DataDog/browser-sdk" target="_blank">GitHub Repository</a> |
231+
<a href="https://docs.datadoghq.com/real_user_monitoring/browser/" target="_blank">Official Documentation</a>
232+
</p>
233+
</div>
234+
</footer>
235+
</body>
236+
</html>

docs/index.md

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)