@dirsigler/astro-techradar 0.0.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -136,7 +136,6 @@ techradar({
136
136
  basePath: "/techradar", // Mount under a sub-path (e.g. acme.com/techradar/)
137
137
  logo: "/logo.svg", // Path to logo in public/
138
138
  footerText: "Built by the Platform Team", // Supports HTML
139
- repositoryUrl: "https://github.com/your-org/your-radar",
140
139
  editBaseUrl: "https://github.com/your-org/your-radar/edit/main/segments",
141
140
  theme: "default", // 'default' | 'catppuccin-mocha' | path to custom CSS
142
141
  color: {
package/integration.ts CHANGED
@@ -4,7 +4,7 @@ import { resolveConfig } from './config';
4
4
  import icon from 'astro-icon';
5
5
  import tailwindcss from '@tailwindcss/vite';
6
6
  import { fileURLToPath } from 'node:url';
7
- import { copyFileSync, mkdirSync, readFileSync, existsSync } from 'node:fs';
7
+ import { readFileSync, existsSync } from 'node:fs';
8
8
  import path from 'node:path';
9
9
 
10
10
  const PKG_DIR = path.dirname(fileURLToPath(import.meta.url));
@@ -40,16 +40,6 @@ export function createIntegration(
40
40
  'src/pages/technology/[...slug].astro',
41
41
  ),
42
42
  });
43
- // Copy static assets into the consumer's public directory
44
- const publicDir = fileURLToPath(astroConfig.publicDir);
45
- mkdirSync(publicDir, { recursive: true });
46
- for (const file of ['favicon.svg', 'og-image.png']) {
47
- copyFileSync(
48
- path.join(PKG_DIR, 'src/assets', file),
49
- path.join(publicDir, file),
50
- );
51
- }
52
-
53
43
  // Resolve theme CSS
54
44
  let themeCSS = '';
55
45
  const builtinPath = path.join(
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@dirsigler/astro-techradar",
3
- "version": "0.0.0",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "An interactive technology radar Astro integration — track technology adoption across your organization",
6
6
  "license": "MIT",
7
7
  "author": "Dennis Irsigler <dennis@irsigler.dev>",
8
- "homepage": "https://github.com/dirsigler/techradar",
8
+ "homepage": "https://github.com/dirsigler/astro-techradar",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/dirsigler/techradar.git"
11
+ "url": "https://github.com/dirsigler/astro-techradar.git"
12
12
  },
13
13
  "keywords": [
14
14
  "astro-integration",
package/schemas.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from 'astro:content';
1
+ import { z } from 'astro/zod';
2
2
 
3
3
  export const segmentSchema = z.object({
4
4
  title: z.string(),
@@ -29,17 +29,10 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
29
29
  <meta property="og:title" content={title} />
30
30
  <meta property="og:description" content={description} />
31
31
  <meta property="og:url" content={canonicalUrl} />
32
- <meta property="og:image" content={new URL(`${base}og-image.png`, Astro.site)} />
33
- <meta property="og:image:width" content="1200" />
34
- <meta property="og:image:height" content="630" />
35
-
36
32
  <!-- Twitter -->
37
33
  <meta name="twitter:card" content="summary_large_image" />
38
34
  <meta name="twitter:title" content={title} />
39
35
  <meta name="twitter:description" content={description} />
40
- <meta name="twitter:image" content={new URL(`${base}og-image.png`, Astro.site)} />
41
-
42
- <link rel="icon" type="image/svg+xml" href={`${base}favicon.svg`} />
43
36
  <title>{title}</title>
44
37
  <style set:html={themeCSS}></style>
45
38
  <script is:inline define:vars={{ toggle: config.color.toggle, colorMode: config.color.mode }}>
@@ -1,27 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
2
- <!-- Concentric rings -->
3
- <circle cx="16" cy="16" r="15" fill="none" stroke="#cbd5e1" stroke-width="0.75" opacity="0.4"/>
4
- <circle cx="16" cy="16" r="11" fill="none" stroke="#cbd5e1" stroke-width="0.75" opacity="0.5"/>
5
- <circle cx="16" cy="16" r="7" fill="none" stroke="#cbd5e1" stroke-width="0.75" opacity="0.6"/>
6
- <circle cx="16" cy="16" r="3" fill="none" stroke="#cbd5e1" stroke-width="0.75" opacity="0.7"/>
7
-
8
- <!-- Hold ring (outer) — red dots -->
9
- <circle cx="5" cy="10" r="1.4" fill="#dc2626"/>
10
- <circle cx="26" cy="20" r="1.2" fill="#dc2626"/>
11
- <circle cx="10" cy="27" r="1.1" fill="#dc2626"/>
12
-
13
- <!-- Assess ring — yellow dots -->
14
- <circle cx="22" cy="9" r="1.3" fill="#ca8a04"/>
15
- <circle cx="8" cy="19" r="1.2" fill="#ca8a04"/>
16
- <circle cx="20" cy="25" r="1.0" fill="#ca8a04"/>
17
-
18
- <!-- Trial ring — blue dots -->
19
- <circle cx="12" cy="10" r="1.3" fill="#2563eb"/>
20
- <circle cx="22" cy="15" r="1.1" fill="#2563eb"/>
21
- <circle cx="11" cy="22" r="1.2" fill="#2563eb"/>
22
-
23
- <!-- Adopt ring (inner) — green dots -->
24
- <circle cx="16" cy="13" r="1.4" fill="#16a34a"/>
25
- <circle cx="14" cy="18" r="1.2" fill="#16a34a"/>
26
- <circle cx="19" cy="17" r="1.1" fill="#16a34a"/>
27
- </svg>
Binary file