-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
598 lines (556 loc) · 18 KB
/
index.html
File metadata and controls
598 lines (556 loc) · 18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Zotero Plugin Dev Community</title>
<meta
name="description"
content="Resources for Zotero Plugin Development: Documentation, Tools, Scaffolds, and Community Guides."
/>
<style>
/* CSS Variables for easy theming */
:root {
--primary-color: #cc2936;
/* Zotero Brand Red */
--primary-hover: #a3202b;
--bg-color: #f8f9fa;
--card-bg: #ffffff;
--text-main: #2c3e50;
--text-sec: #596b7d;
--border-color: #e1e4e8;
--shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
--radius: 8px;
}
/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #0d1117;
--card-bg: #161b22;
--text-main: #c9d1d9;
--text-sec: #8b949e;
--border-color: #30363d;
--shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}
}
/* Reset & Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
Arial, sans-serif;
background-color: var(--bg-color);
color: var(--text-main);
line-height: 1.6;
transition:
background-color 0.3s,
color 0.3s;
}
.container {
max-width: 1000px;
margin: 0 auto;
padding: 2rem 1rem;
}
/* Header Styles */
header {
text-align: center;
margin-bottom: 4rem;
padding-top: 2rem;
}
h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
font-weight: 800;
}
h1 span {
color: var(--primary-color);
}
.subtitle {
font-size: 1.2rem;
color: var(--text-sec);
max-width: 600px;
margin: 0 auto;
}
/* Section Styles */
section {
margin-bottom: 4rem;
}
h2 {
font-size: 1.5rem;
margin-bottom: 1.5rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--border-color);
display: flex;
align-items: center;
gap: 0.5rem;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
/* Card Styles */
.card {
background-color: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: var(--radius);
padding: 1.5rem;
transition:
transform 0.2s,
box-shadow 0.2s;
display: flex;
flex-direction: column;
}
.card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow);
border-color: var(--primary-color);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0.8rem;
}
.card-title {
font-weight: 700;
font-size: 1.1rem;
color: var(--text-main);
}
.card-desc {
font-size: 0.95rem;
color: var(--text-sec);
flex-grow: 1;
margin-bottom: 1.2rem;
}
/* Button Styles */
.links {
display: flex;
gap: 0.8rem;
margin-top: auto;
}
.btn {
text-decoration: none;
font-size: 0.85rem;
padding: 0.4rem 0.8rem;
border-radius: 4px;
font-weight: 600;
transition: background-color 0.2s;
}
.btn-primary {
background-color: var(--primary-color);
color: white;
}
.btn-primary:hover {
background-color: var(--primary-hover);
}
.btn-outline {
border: 1px solid var(--border-color);
color: var(--text-main);
}
.btn-outline:hover {
border-color: var(--text-sec);
background-color: rgba(128, 128, 128, 0.05);
}
/* Tag Styles */
.tag {
font-size: 0.75rem;
padding: 0.2rem 0.5rem;
border-radius: 12px;
background-color: rgba(204, 41, 54, 0.1);
color: var(--primary-color);
font-weight: 600;
}
/* Warning/Info Box */
.info-box {
background-color: rgba(204, 41, 54, 0.05);
border: 1px solid rgba(204, 41, 54, 0.2);
border-radius: var(--radius);
padding: 1rem;
margin-bottom: 1.5rem;
font-size: 0.9rem;
color: var(--text-sec);
}
/* Footer */
footer {
text-align: center;
padding: 2rem;
color: var(--text-sec);
font-size: 0.9rem;
border-top: 1px solid var(--border-color);
}
footer a {
color: var(--primary-color);
text-decoration: none;
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>Zotero <span>Plugin Dev</span></h1>
<p class="subtitle">
The hub for Zotero plugin development. Curated documentation, tools,
scaffolds, and community resources.
</p>
</header>
<main>
<!-- Getting Started: Docs & Templates -->
<section>
<h2>🚀 Getting Started</h2>
<div class="grid">
<div class="card">
<div class="card-header">
<span class="card-title">Community Documentation</span>
<span class="tag">Essential</span>
</div>
<p class="card-desc">
The comprehensive guide maintained by the community. Covers
environment setup, core APIs, and Zotero architecture details.
</p>
<div class="links">
<a
href="https://windingwind.github.io/doc-for-zotero-plugin-dev/"
class="btn btn-primary"
target="_blank"
>Read</a
>
<a
href="https://github.com/windingwind/doc-for-zotero-plugin-dev"
class="btn btn-outline"
target="_blank"
>GitHub</a
>
</div>
</div>
<div class="card">
<div class="card-header">
<span class="card-title">Zotero Plugin Template</span>
<span class="tag">Starter</span>
</div>
<p class="card-desc">
A robust TypeScript-based template for Zotero plugins. Includes
best practices and pre-configured settings to start coding
immediately.
</p>
<div class="links">
<a
href="https://github.com/new?template_name=zotero-plugin-template&template_owner=windingwind"
class="btn btn-primary"
target="_blank"
>Use this template</a
>
<a
href="https://github.com/windingwind/zotero-plugin-template"
class="btn btn-outline"
target="_blank"
>GitHub</a
>
</div>
</div>
<div class="card">
<div class="card-header">
<span class="card-title">Official Developer Docs</span>
</div>
<p class="card-desc">
The official technical reference. Contains the critical
"Migration Guide" for updating plugins to Zotero 7/8.
</p>
<div class="links">
<a
href="https://www.zotero.org/support/dev/"
class="btn btn-outline"
target="_blank"
>Read</a
>
</div>
</div>
<div class="card">
<div class="card-header">
<span class="card-title">Official Template</span>
</div>
<p class="card-desc">
"Make It Red". The official minimal example. Good for
understanding the most basic plugin structure without extra
tooling.
</p>
<div class="links">
<a
href="https://github.com/zotero/make-it-red/"
class="btn btn-outline"
target="_blank"
>GitHub</a
>
</div>
</div>
</div>
</section>
<!-- Core Libraries & Tools -->
<section>
<h2>🛠️ Core Libraries & Tools</h2>
<div class="grid">
<div class="card">
<div class="card-header">
<span class="card-title">Zotero Plugin Scaffold</span>
<!-- <span class="tag">Recommended</span> -->
</div>
<p class="card-desc">
The modern development workflow. Features plugin side-loading,
hot-reloading on source change, bundling, and release
management.
</p>
<div class="links">
<a
href="https://zotero-plugin-dev.github.io/zotero-plugin-scaffold/"
class="btn btn-primary"
target="_blank"
>Docs</a
>
<a
href="https://npmx.dev/package/zotero-plugin-scaffold"
class="btn btn-outline"
target="_blank"
>NPM</a
>
<a
href="https://github.com/zotero-plugin-dev/zotero-plugin-scaffold"
class="btn btn-outline"
target="_blank"
>GitHub</a
>
</div>
</div>
<div class="card">
<div class="card-header">
<span class="card-title">Zotero Plugin Toolkit</span>
</div>
<p class="card-desc">
Essential API wrappers. Simplifies registering shortcuts,
creating UI dialogs, and clipboard operations to speed up
development.
</p>
<div class="links">
<a
href="https://windingwind.github.io/zotero-plugin-toolkit/"
class="btn btn-primary"
target="_blank"
>Docs</a
>
<a
href="https://npmx.dev/package/zotero-plugin-toolkit"
class="btn btn-outline"
target="_blank"
>NPM</a
>
<a
href="https://github.com/windingwind/zotero-plugin-toolkit"
class="btn btn-outline"
target="_blank"
>GitHub</a
>
</div>
</div>
<div class="card">
<div class="card-header">
<span class="card-title">Zotero Types</span>
</div>
<p class="card-desc">
TypeScript definitions for Zotero APIs. Enables code completion,
type checking, and safer development experiences.
</p>
<div class="links">
<a
href="https://npmx.dev/package/zotero-types"
class="btn btn-primary"
target="_blank"
>NPM</a
>
<a
href="https://github.com/windingwind/zotero-types"
class="btn btn-outline"
target="_blank"
>GitHub</a
>
</div>
</div>
</div>
</section>
<!-- Ecosystem & Registry -->
<section>
<h2>📦 Plugin Market & Registry</h2>
<div class="info-box">
<strong>Submission Guide:</strong> The
<em>Zotero Plugin Registry</em> is currently under development.
Developers are encouraged to submit their plugins to the
<em>Zotero Chinese List</em> or <em>Official Plugin List</em> for
now. This list will eventually be merged into the official registry.
</div>
<div class="grid">
<div class="card">
<div class="card-header">
<span class="card-title">Zotero Chinese List</span>
<span class="tag">Active</span>
</div>
<p class="card-desc">
The current active community-maintained list of Zotero plugins.
Please submit your new plugins here to be discovered by users.
</p>
<div class="links">
<a
href="https://zotero-chinese.com/plugins"
class="btn btn-primary"
target="_blank"
>Browse List</a
>
<a
href="https://github.com/zotero-chinese/zotero-plugins"
class="btn btn-outline"
target="_blank"
>GitHub</a
>
</div>
</div>
<div class="card">
<div class="card-header">
<span class="card-title">Official Plugin List</span>
<!-- <span class="tag">Active</span> -->
</div>
<p class="card-desc">
This is a list of plugins provided in an official document.
</p>
<div class="links">
<a
href="https://www.zotero.org/support/plugins"
class="btn btn-outline"
target="_blank"
>Browse List</a
>
</div>
</div>
<div class="card">
<div class="card-header">
<span class="card-title">Plugin Registry</span>
<span class="tag">WIP</span>
</div>
<p class="card-desc">
The upcoming plugin registry community. It will provide a
centralized repository for all community plugins.
</p>
<div class="links">
<a
href="https://github.com/zotero-plugin-dev/zotero-plugin-registry"
class="btn btn-outline"
target="_blank"
>GitHub</a
>
</div>
</div>
</div>
</section>
<!-- Workflow & Standards -->
<section>
<h2>⚙️ Workflow & Standards</h2>
<div class="grid">
<div class="card">
<div class="card-header">
<span class="card-title">ESLint Config</span>
</div>
<p class="card-desc">
@zotero-plugin-dev/eslint-config.<br />Custom ESLint rules
tailored specifically for Zotero plugin codebases.
</p>
<div class="links">
<a
href="https://npmx.dev/package/@zotero-plugin/eslint-config"
class="btn btn-outline"
target="_blank"
>NPM</a
>
<a
href="https://github.com/zotero-plugin-dev/eslint-config"
class="btn btn-outline"
target="_blank"
>GitHub</a
>
</div>
</div>
<div class="card">
<div class="card-header">
<span class="card-title">Renovate Preset</span>
</div>
<p class="card-desc">
Configuration preset for Renovate. Automates dependency updates
to keep your plugin secure and up-to-date.
</p>
<div class="links">
<a
href="https://github.com/zotero-plugin-dev/renovate-config"
class="btn btn-outline"
target="_blank"
>GitHub</a
>
</div>
</div>
</div>
</section>
<!-- Community -->
<section>
<h2>🔗 Source & Community</h2>
<div class="grid">
<div class="card">
<div class="card-header">
<span class="card-title">Zotero Source Code</span>
</div>
<p class="card-desc">
The source code for the Zotero client on GitHub. Reading the
source is the ultimate way to understand internal mechanisms.
</p>
<div class="links">
<a
href="https://github.com/zotero/zotero"
class="btn btn-outline"
target="_blank"
>Browse Code</a
>
</div>
</div>
<div class="card">
<div class="card-header">
<span class="card-title">Zotero Dev Group</span>
</div>
<p class="card-desc">
The official Google Group for developers. Connect with the core
team and discuss low-level API details.
</p>
<div class="links">
<a
href="https://groups.google.com/g/zotero-dev"
class="btn btn-outline"
target="_blank"
>Join Discussion</a
>
</div>
</div>
</div>
</section>
</main>
<footer>
<p>
© 2025
<a href="https://github.com/zotero-plugin-dev"
>Zotero Plugin Dev Community</a
>.
</p>
<p>
Zotero is a registered trademark of the Corporation for Digital
Scholarship. This site is not affiliated with or endorsed by
Corporation for Digital Scholarship.
</p>
</footer>
</div>
</body>
</html>