@knitli/docs-components 1.1.4 → 1.1.6

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/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### 1.1.6
8
+
9
+ - fix: typo in Footer component
10
+
11
+ #### 1.1.5
12
+
13
+ - fix: path resolution issue on imported assets
14
+
15
+ #### 1.1.4
16
+
17
+ - fix: minor discovery issue
18
+
7
19
  #### 1.1.3
8
20
 
9
21
  - chore: Updated Recoco references to use consistent casing.
@@ -1,17 +1,6 @@
1
- import codeweaverPrimarySvg from "./codeweaver-primary.svg";
2
- import codeweaverReverseSvg from "./codeweaver-reverse.svg";
3
- import headlineLogoWebp from "./headline_logo.webp";
4
- import headlineLogoDarkWebp from "./headline_logo_dark.webp";
5
- import knitliLogoSvg from "./knitli_logo.svg";
6
- import knitliWordmarkSvg from "./knitli_wordmark.svg";
7
- import recocoLogoWebpMED from "./recoco-med.webp";
8
- import recocoLogoWebpSM from "./recoco-sm.webp";
9
- import recocoLogoWebpXL from "./recoco-xl.webp";
10
- import threadLogoLightSvg from "./Thread_vector_mono_aubergine.svg";
11
- import threadLogoDarkSvg from "./Thread_vector_mono_parchment.svg";
12
1
  export declare const knitliLogo: string;
13
- export declare const headlineLogoDark: string;
14
2
  export declare const headlineLogoLight: string;
3
+ export declare const headlineLogoDark: string;
15
4
  export declare const codeweaverPrimary: string;
16
5
  export declare const codeweaverReverse: string;
17
6
  export declare const knitliWordmark: string;
@@ -21,16 +10,16 @@ export declare const recocoLogoSm: string;
21
10
  export declare const threadLogoDark: string;
22
11
  export declare const threadLogoLight: string;
23
12
  export type LogoAssets = {
24
- knitliLogo: typeof knitliLogoSvg;
25
- headlineLogoDark: typeof headlineLogoDarkWebp;
26
- headlineLogoLight: typeof headlineLogoWebp;
27
- codeweaverPrimary: typeof codeweaverPrimarySvg;
28
- codeweaverReverse: typeof codeweaverReverseSvg;
29
- knitliWordmark: typeof knitliWordmarkSvg;
30
- recocoLogoXl: typeof recocoLogoWebpXL;
31
- recocoLogoMed: typeof recocoLogoWebpMED;
32
- recocoLogoSm: typeof recocoLogoWebpSM;
33
- threadLogoDark: typeof threadLogoDarkSvg;
34
- threadLogoLight: typeof threadLogoLightSvg;
13
+ knitliLogo: string;
14
+ headlineLogoDark: string;
15
+ headlineLogoLight: string;
16
+ codeweaverPrimary: string;
17
+ codeweaverReverse: string;
18
+ knitliWordmark: string;
19
+ recocoLogoXl: string;
20
+ recocoLogoMed: string;
21
+ recocoLogoSm: string;
22
+ threadLogoDark: string;
23
+ threadLogoLight: string;
35
24
  };
36
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/logos/index.ts"],"names":[],"mappings":"AAMA,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;AAC5D,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;AAC5D,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AACpD,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,uBAAuB,CAAC;AACtD,OAAO,iBAAiB,MAAM,mBAAmB,CAAC;AAClD,OAAO,gBAAgB,MAAM,kBAAkB,CAAC;AAChD,OAAO,gBAAgB,MAAM,kBAAkB,CAAC;AAChD,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,iBAAiB,MAAM,oCAAoC,CAAC;AAEnE,eAAO,MAAM,UAAU,QAAgB,CAAC;AACxC,eAAO,MAAM,gBAAgB,QAAuB,CAAC;AACrD,eAAO,MAAM,iBAAiB,QAAmB,CAAC;AAClD,eAAO,MAAM,iBAAiB,QAAuB,CAAC;AACtD,eAAO,MAAM,iBAAiB,QAAuB,CAAC;AACtD,eAAO,MAAM,cAAc,QAAoB,CAAC;AAChD,eAAO,MAAM,YAAY,QAAmB,CAAC;AAC7C,eAAO,MAAM,aAAa,QAAoB,CAAC;AAC/C,eAAO,MAAM,YAAY,QAAmB,CAAC;AAC7C,eAAO,MAAM,cAAc,QAAoB,CAAC;AAChD,eAAO,MAAM,eAAe,QAAqB,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,EAAE,OAAO,aAAa,CAAC;IACjC,gBAAgB,EAAE,OAAO,oBAAoB,CAAC;IAC9C,iBAAiB,EAAE,OAAO,gBAAgB,CAAC;IAC3C,iBAAiB,EAAE,OAAO,oBAAoB,CAAC;IAC/C,iBAAiB,EAAE,OAAO,oBAAoB,CAAC;IAC/C,cAAc,EAAE,OAAO,iBAAiB,CAAC;IACzC,YAAY,EAAE,OAAO,gBAAgB,CAAC;IACtC,aAAa,EAAE,OAAO,iBAAiB,CAAC;IACxC,YAAY,EAAE,OAAO,gBAAgB,CAAC;IACtC,cAAc,EAAE,OAAO,iBAAiB,CAAC;IACzC,eAAe,EAAE,OAAO,kBAAkB,CAAC;CAC5C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/logos/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,UAAU,QAAqC,CAAC;AAC7D,eAAO,MAAM,iBAAiB,QAAwC,CAAC;AACvE,eAAO,MAAM,gBAAgB,QAA6C,CAAC;AAC3E,eAAO,MAAM,iBAAiB,QAA4C,CAAC;AAC3E,eAAO,MAAM,iBAAiB,QAA4C,CAAC;AAC3E,eAAO,MAAM,cAAc,QAAyC,CAAC;AACrE,eAAO,MAAM,YAAY,QAAoC,CAAC;AAC9D,eAAO,MAAM,aAAa,QAAqC,CAAC;AAChE,eAAO,MAAM,YAAY,QAAoC,CAAC;AAC9D,eAAO,MAAM,cAAc,QAAsD,CAAC;AAClF,eAAO,MAAM,eAAe,QAAsD,CAAC;AAEnF,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
@@ -3,25 +3,17 @@
3
3
  //
4
4
  // Local logo asset exports - files are copied from @knitli/shared-layouts during build.
5
5
  // Do not edit paths here; run `bun run copy-assets` to refresh from source.
6
- import codeweaverPrimarySvg from "./codeweaver-primary.svg";
7
- import codeweaverReverseSvg from "./codeweaver-reverse.svg";
8
- import headlineLogoWebp from "./headline_logo.webp";
9
- import headlineLogoDarkWebp from "./headline_logo_dark.webp";
10
- import knitliLogoSvg from "./knitli_logo.svg";
11
- import knitliWordmarkSvg from "./knitli_wordmark.svg";
12
- import recocoLogoWebpMED from "./recoco-med.webp";
13
- import recocoLogoWebpSM from "./recoco-sm.webp";
14
- import recocoLogoWebpXL from "./recoco-xl.webp";
15
- import threadLogoLightSvg from "./Thread_vector_mono_aubergine.svg";
16
- import threadLogoDarkSvg from "./Thread_vector_mono_parchment.svg";
17
- export const knitliLogo = knitliLogoSvg;
18
- export const headlineLogoDark = headlineLogoDarkWebp;
19
- export const headlineLogoLight = headlineLogoWebp;
20
- export const codeweaverPrimary = codeweaverPrimarySvg;
21
- export const codeweaverReverse = codeweaverReverseSvg;
22
- export const knitliWordmark = knitliWordmarkSvg;
23
- export const recocoLogoXl = recocoLogoWebpXL;
24
- export const recocoLogoMed = recocoLogoWebpMED;
25
- export const recocoLogoSm = recocoLogoWebpSM;
26
- export const threadLogoDark = threadLogoDarkSvg;
27
- export const threadLogoLight = threadLogoLightSvg;
6
+ import { dirname, join } from "node:path";
7
+ import { fileURLToPath } from "node:url";
8
+ const __dirname = dirname(fileURLToPath(import.meta.url));
9
+ export const knitliLogo = join(__dirname, "knitli_logo.svg");
10
+ export const headlineLogoLight = join(__dirname, "headline_logo.webp");
11
+ export const headlineLogoDark = join(__dirname, "headline_logo_dark.webp");
12
+ export const codeweaverPrimary = join(__dirname, "codeweaver-primary.svg");
13
+ export const codeweaverReverse = join(__dirname, "codeweaver-reverse.svg");
14
+ export const knitliWordmark = join(__dirname, "knitli_wordmark.svg");
15
+ export const recocoLogoXl = join(__dirname, "recoco-xl.webp");
16
+ export const recocoLogoMed = join(__dirname, "recoco-med.webp");
17
+ export const recocoLogoSm = join(__dirname, "recoco-sm.webp");
18
+ export const threadLogoDark = join(__dirname, "Thread_vector_mono_parchment.svg");
19
+ export const threadLogoLight = join(__dirname, "Thread_vector_mono_aubergine.svg");
@@ -0,0 +1,73 @@
1
+ /* Custom styles for docs-home - Override Knitli global styles */
2
+ /* Reset body to use Starlight defaults instead of Knitli's parchment background */
3
+ body {
4
+ background: var(--sl-color-bg) !important;
5
+ font-family:
6
+ "DM Mono", "Roboto Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace !important;
7
+ color: var(--sl-color-text) !important;
8
+ }
9
+
10
+ /* Ensure main content panel uses Starlight theme colors */
11
+ .content-panel {
12
+ background-color: var(--sl-color-bg-nav) !important;
13
+ }
14
+
15
+ /* Ensure page background respects Starlight theme, and fills viewport height */
16
+ .page {
17
+ background-color: var(--sl-color-bg) !important;
18
+ min-height: 100dvh !important;
19
+ flex-direction: column !important;
20
+ }
21
+
22
+ /* Make the main frame grow to push footer to bottom on short pages */
23
+ .main-frame {
24
+ flex: 1 !important;
25
+ display: flex !important;
26
+ flex-direction: column !important;
27
+ background-color: var(--sl-color-bg-nav);
28
+ }
29
+
30
+ .main-frame > main {
31
+ flex: 1 !important;
32
+ }
33
+
34
+ /* Splash page hero - keep transparent but ensure text uses Starlight colors */
35
+ .splash .hero {
36
+ background-color: transparent;
37
+ color: var(--sl-color-text) !important;
38
+ }
39
+
40
+ /* Dark mode colors. */
41
+ :root {
42
+ --font-sans:
43
+ "DM Mono", "Roboto Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
44
+ --font-mono: "JetBrains Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
45
+ --sl-subnav-height: 2rem;
46
+
47
+ --sl-color-accent-low: #3d170d;
48
+ --sl-color-accent: #ba3100;
49
+ --sl-color-accent-high: #eebbad;
50
+ --sl-color-white: #ffffff;
51
+ --sl-color-gray-1: #efedef;
52
+ --sl-color-gray-2: #cac7ca;
53
+ --sl-color-gray-3: #a8a2a7;
54
+ --sl-color-gray-4: #5c565a;
55
+ --sl-color-gray-5: #3b363a;
56
+ --sl-color-gray-6: #2a2529;
57
+ --sl-color-black: #1a1719;
58
+ }
59
+ /* Light mode colors. */
60
+ :root[data-theme="light"] {
61
+ --sl-color-accent-low: #f4cdc2;
62
+ --sl-color-accent: #982600;
63
+ --sl-color-accent-high: #581b0b;
64
+ --sl-color-white: #1a1719;
65
+ --sl-color-gray-1: #2a2529;
66
+ --sl-color-gray-2: #3b363a;
67
+ --sl-color-gray-3: #5c565a;
68
+ --sl-color-gray-4: #8f898e;
69
+ --sl-color-gray-5: #c4c1c3;
70
+ --sl-color-gray-6: #efedef;
71
+ --sl-color-gray-7: #f7f6f7;
72
+ --sl-color-black: #ffffff;
73
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,QAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,QAAgC,CAAC"}
@@ -1,2 +1,4 @@
1
- import DocsStyle from "#style/custom.css";
2
- export const docsStyle = DocsStyle;
1
+ import { dirname, join } from "node:path";
2
+ import { fileURLToPath } from "node:url";
3
+ const __dirname = dirname(fileURLToPath(import.meta.url));
4
+ export const docsStyle = join(__dirname, "custom.css");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knitli/docs-components",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "Shared branded components for Knitli documentation sites",
5
5
  "keywords": [
6
6
  "knitli",
@@ -40,10 +40,10 @@
40
40
  "CHANGELOG.md"
41
41
  ],
42
42
  "scripts": {
43
- "build": "bunx tsc && node scripts/copy-dist-assets.mjs",
44
- "copy-assets": "node scripts/copy-assets.mjs",
43
+ "build": "bunx tsc && bun run scripts/copy-dist-assets.mjs",
44
+ "copy-assets": "bun run scripts/copy-assets.mjs",
45
45
  "prepublishOnly": "bun run copy-assets && bun run build",
46
- "publish": "npm publish --access public",
46
+ "publish": "npm publish --access public || node --input-type=commonjs -e \"const v=require('./package.json').version;const r=require('child_process').spawnSync('npm',['view','@knitli/docs-components@'+v,'version'],{stdio:'ignore'});if(r.status===0){console.log('Version '+v+' already published, skipping')}else{process.exit(1)}\"",
47
47
  "version": "auto-changelog -p && git add CHANGELOG.md"
48
48
  },
49
49
  "devDependencies": {
@@ -58,11 +58,13 @@
58
58
  "lightningcss": "catalog:optimization",
59
59
  "svgo": "catalog:optimization",
60
60
  "typescript": "catalog:dev-common",
61
- "vitest": "catalog:dev-common"
61
+ "vitest": "catalog:dev-common",
62
+ "@types/react": "catalog:types",
63
+ "vite": "catalog:dev-common"
62
64
  },
63
65
  "peerDependencies": {
64
- "@astrojs/starlight": ">=0.30.0",
65
- "astro": "^5.0.0"
66
+ "@astrojs/starlight": "catalog:astro-core",
67
+ "astro": "catalog:astro-core"
66
68
  },
67
69
  "engine": {
68
70
  "node": "catalog:"
@@ -15,6 +15,11 @@ const targets = [
15
15
  dest: `${pkgRoot}/src/assets/logos`,
16
16
  filter: (f) => !f.endsWith("index.ts"),
17
17
  },
18
+ {
19
+ src: `${layoutsAssets}/favicon`,
20
+ dest: `${pkgRoot}/src/assets/favicon`,
21
+ filter: (f) => !f.endsWith("index.ts"),
22
+ },
18
23
  {
19
24
  src: `${layoutsAssets}/styles`,
20
25
  dest: `${pkgRoot}/src/assets/styles`,
@@ -13,6 +13,10 @@ const copies = [
13
13
  src: `${pkgRoot}/src/assets/styles`,
14
14
  dest: `${pkgRoot}/dist/assets/styles`,
15
15
  },
16
+ {
17
+ src: `${pkgRoot}/src/styles`,
18
+ dest: `${pkgRoot}/dist/styles`,
19
+ },
16
20
  ];
17
21
 
18
22
  for (const { src, dest } of copies) {
Binary file
@@ -0,0 +1,86 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ id="Layer_1"
4
+ data-name="Layer 1"
5
+ viewBox="0 0 400.00001 399.99999"
6
+ version="1.1"
7
+ sodipodi:docname="favicon.svg"
8
+ inkscape:version="1.4.2 (f4327f4, 2025-05-13)"
9
+ width="400"
10
+ height="400"
11
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ xmlns:svg="http://www.w3.org/2000/svg"
15
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
16
+ xmlns:cc="http://creativecommons.org/ns#"
17
+ xmlns:dc="http://purl.org/dc/elements/1.1/">
18
+ <title
19
+ id="title1">knitli favicon</title>
20
+ <sodipodi:namedview
21
+ id="namedview1"
22
+ pagecolor="#000000"
23
+ bordercolor="#ffffff"
24
+ borderopacity="1"
25
+ inkscape:showpageshadow="false"
26
+ inkscape:pageopacity="0"
27
+ inkscape:pagecheckerboard="1"
28
+ inkscape:deskcolor="#505050"
29
+ inkscape:zoom="3.6830872"
30
+ inkscape:cx="168.60855"
31
+ inkscape:cy="197.79602"
32
+ inkscape:window-width="2560"
33
+ inkscape:window-height="1529"
34
+ inkscape:window-x="-8"
35
+ inkscape:window-y="-8"
36
+ inkscape:window-maximized="1"
37
+ inkscape:current-layer="Layer_1" />
38
+ <defs
39
+ id="defs1">
40
+ <style
41
+ id="style1">
42
+ .cls-1 {
43
+ fill: #ea5932;
44
+ }
45
+ </style>
46
+ </defs>
47
+ <metadata
48
+ id="metadata1">
49
+ <rdf:RDF>
50
+ <cc:Work
51
+ rdf:about="">
52
+ <dc:creator>Knitli Inc.</dc:creator>
53
+ <dc:publisher>Knitli Inc.</dc:publisher>
54
+ <dc:rights>© 2025 Knitli Inc. All Rights Reserved.<cc:Agent>
55
+ <dc:title>knitli official favicon</dc:title>
56
+ </cc:Agent>
57
+ </dc:rights>
58
+ <dc:description>official knitli favicon</dc:description>
59
+ <dc:subject>Brand Identity</dc:subject>
60
+ <dc:type>Image</dc:type>
61
+ <dc:language>en</dc:language>
62
+ <dc:format>image/svg+xml</dc:format>
63
+ <dc:source>Signcraft (DesignCrowd) / SleighVisual (99Designs)</dc:source>
64
+ <dc:coverage>all</dc:coverage>
65
+ <dc:contributor>Design: Adam/Signcraft (DesignCrowd username), Owned: Knitli Inc.</dc:contributor>
66
+ <dc:relation>original reference design</dc:relation>
67
+ <dc:date>2025-04-07</dc:date>
68
+ <dc:identifier>952316bb-88e4-4e75-aeec-a81e3dddc965</dc:identifier>
69
+ <dc:title>knitli favicon</dc:title>
70
+ </cc:Work>
71
+ </rdf:RDF>
72
+ </metadata>
73
+ <path
74
+ style="fill:#1e061b"
75
+ d="M 0,0 H 400 V 400 H 0 Z"
76
+ id="rect1" />
77
+ <path
78
+ style="fill:#ea5932;fill-opacity:1"
79
+ d="m 362.23,157.08392 c -7.41,-2.72 -15.31,-4.08 -23.45,-4.08 -25.16,0 -47.42,12.37 -62.01,23.11 -3.66,-4.58 -6.91,-9.5 -9.98,-14.71 -2.97,-5.27 -5.61,-10.54 -7.75,-16 16.6,-7.27 38.43,-20.36 51.02,-42.15 4.08,-7.049996 6.84,-14.569996 8.19,-22.349996 3.43,-19.64 -5.15,-39.12 -21.44,-48.54 -16.25,-9.37 -37.44,-7.08 -52.74,5.7 -6.04,5.05 -11.17,11.2 -15.25,18.28 -12.57,21.78 -13,47.209996 -11,65.249996 -5.83,0.89 -11.78,1.32 -17.83,1.31 -6.05,0 -12,-0.42 -17.83,-1.31 2,-18.04 1.57,-43.479996 -11,-65.249996 -4.09,-7.08 -9.21,-13.23 -15.25,-18.28 -15.3,-12.78 -36.49,-15.07 -52.74,-5.7 -16.290001,9.42 -24.860001,28.91 -21.440001,48.54 1.35,7.78 4.12,15.3 8.19,22.349996 12.590001,21.79 34.420001,34.88 51.020001,42.15 -2.14,5.46 -4.78,10.73 -7.75,16 -3.07,5.21 -6.32,10.13 -9.98,14.71 -14.6,-10.74 -36.850001,-23.1 -62.010001,-23.11 -8.14,0 -16.04,1.36 -23.45,4.08 -18.72,6.85 -31.3100002,24.02 -31.3200002,42.83 0,18.76 12.5900002,35.97 31.3100002,42.82 7.39,2.71 15.28,4.07 23.46,4.07 25.14,0 47.380001,-12.34 62.010001,-23.1 3.69,4.6 7.03,9.54 10.05,14.79 3.04,5.24 5.64,10.61 7.78,16.1 -16.63,7.29 -38.44,20.38 -51.010001,42.15 -4.09,7.08 -6.86,14.59 -8.2,22.35 -3.42,19.64 5.19,39.14 21.430001,48.53 16.3,9.4 37.46,7.08 52.76,-5.71 6.06,-5.06 11.19,-11.21 15.26,-18.27 12.57,-21.8 13,-47.25 10.99,-65.26 5.79,-0.88 11.68,-1.23 17.73,-1.29 6.05,0.06 11.93,0.41 17.73,1.29 -2,18.01 -1.58,43.46 10.99,65.26 4.07,7.05 9.2,13.21 15.26,18.27 15.29,12.78 36.46,15.1 52.76,5.71 16.24,-9.39 24.85,-28.89 21.43,-48.53 -1.35,-7.76 -4.11,-15.27 -8.2,-22.35 -12.57,-21.77 -34.38,-34.86 -51.01,-42.15 2.14,-5.5 4.75,-10.86 7.78,-16.1 3.02,-5.25 6.37,-10.18 10.05,-14.79 14.63,10.76 36.87,23.1 62.01,23.1 8.18,0 16.06,-1.36 23.46,-4.07 18.72,-6.86 31.3,-24.07 31.31,-42.82 -0.01,-18.82 -12.6,-35.98 -31.32,-42.84 z m -301.050001,55.07 c -4.09,0 -7.96,-0.66 -11.52,-1.96 -4.88,-1.79 -8.55,-6.21 -8.55,-10.28 0.02,-4.06 3.68,-8.5 8.54,-10.28 3.58,-1.3 7.46,-1.97 11.53,-1.97 10.85,0.01 23.42,4.43 35.61,12.24 -12.22,7.83 -24.77,12.25 -35.61,12.24 z M 119.93,85.903924 c -2.04,-3.52 -3.4,-7.21 -4.06,-10.96 -0.9,-5.1 1.12,-10.49 4.63,-12.54 3.53,-2.04 9.19,-1.06 13.18,2.27 2.91,2.44 5.42,5.45 7.46,9 5.42,9.38 7.87,22.46 7.2,36.959996 -12.86,-6.65 -22.97,-15.329996 -28.4,-24.719996 z m 21.31,240.439996 c -2.03,3.53 -4.55,6.55 -7.46,9 -3.97,3.33 -9.64,4.28 -13.17,2.26 -3.53,-2.04 -5.52,-7.43 -4.63,-12.55 0.66,-3.74 2.02,-7.42 4.07,-10.96 5.41,-9.39 15.52,-18.05 28.41,-24.71 0.67,14.46 -1.79,27.56 -7.21,36.96 z m 95.47,-105.17 c -4.38,7.52 -8.07,15.34 -11.04,23.4 -8.44,-1.45 -17,-2.12 -25.68,-2.13 -8.69,0.01 -17.25,0.68 -25.68,2.13 -2.96,-8.06 -6.65,-15.88 -11.04,-23.4 -4.32,-7.56 -9.25,-14.66 -14.75,-21.26 5.48,-6.58 10.33,-13.66 14.69,-21.18 4.34,-7.53 8.04,-15.28 11,-23.31 8.46,1.46 17.08,2.18 25.78,2.14 8.71,0.03 17.32,-0.68 25.78,-2.14 2.96,8.03 6.66,15.78 11,23.31 4.35,7.52 9.21,14.6 14.69,21.18 -5.5,6.6 -10.42,13.7 -14.75,21.26 z m 43.23,92.92 c 2.05,3.54 3.41,7.22 4.07,10.96 0.89,5.12 -1.1,10.51 -4.63,12.55 -3.53,2.02 -9.2,1.07 -13.17,-2.26 -2.92,-2.45 -5.44,-5.47 -7.46,-9 -5.41,-9.4 -7.87,-22.5 -7.21,-36.96 12.89,6.67 22.99,15.33 28.41,24.71 z m -28.29,-203.47 c -0.67,-14.499996 1.78,-27.569996 7.2,-36.959996 2.04,-3.55 4.55,-6.56 7.46,-9 3.99,-3.33 9.65,-4.3 13.18,-2.27 3.51,2.05 5.52,7.43 4.63,12.54 -0.66,3.75 -2.02,7.44 -4.06,10.96 -5.43,9.39 -15.55,18.069996 -28.4,24.719996 z m 98.67,99.57 c -3.57,1.3 -7.43,1.96 -11.52,1.96 -10.84,0 -23.39,-4.41 -35.61,-12.24 12.19,-7.81 24.77,-12.23 35.61,-12.24 4.07,0 7.95,0.66 11.53,1.97 4.87,1.78 8.53,6.21 8.54,10.28 0,4.07 -3.67,8.5 -8.55,10.28 z"
80
+ id="path1" />
81
+ <path
82
+ class="cls-1"
83
+ d="m 362.23,157.08392 c -7.41,-2.72 -15.31,-4.08 -23.45,-4.08 -25.16,0 -47.42,12.37 -62.01,23.11 -3.66,-4.58 -6.91,-9.5 -9.98,-14.71 -2.97,-5.27 -5.61,-10.54 -7.75,-16 16.6,-7.27 38.43,-20.36 51.02,-42.15 4.08,-7.049996 6.84,-14.569996 8.19,-22.349996 3.43,-19.64 -5.15,-39.12 -21.44,-48.54 -16.25,-9.37 -37.44,-7.08 -52.74,5.7 -6.04,5.05 -11.17,11.2 -15.25,18.28 -12.57,21.78 -13,47.209996 -11,65.249996 -5.83,0.89 -11.78,1.32 -17.83,1.31 -6.05,0 -12,-0.42 -17.83,-1.31 2,-18.04 1.57,-43.479996 -11,-65.249996 -4.09,-7.08 -9.21,-13.23 -15.25,-18.28 -15.3,-12.78 -36.49,-15.07 -52.74,-5.7 -16.290001,9.42 -24.860001,28.91 -21.440001,48.54 1.35,7.78 4.12,15.3 8.19,22.349996 12.590001,21.79 34.420001,34.88 51.020001,42.15 -2.14,5.46 -4.78,10.73 -7.75,16 -3.07,5.21 -6.32,10.13 -9.98,14.71 -14.6,-10.74 -36.850001,-23.1 -62.010001,-23.11 -8.14,0 -16.04,1.36 -23.45,4.08 -18.72,6.85 -31.3100002,24.02 -31.3200002,42.83 0,18.76 12.5900002,35.97 31.3100002,42.82 7.39,2.71 15.28,4.07 23.46,4.07 25.14,0 47.380001,-12.34 62.010001,-23.1 3.69,4.6 7.03,9.54 10.05,14.79 3.04,5.24 5.64,10.61 7.78,16.1 -16.63,7.29 -38.44,20.38 -51.010001,42.15 -4.09,7.08 -6.86,14.59 -8.2,22.35 -3.42,19.64 5.19,39.14 21.430001,48.53 16.3,9.4 37.46,7.08 52.76,-5.71 6.06,-5.06 11.19,-11.21 15.26,-18.27 12.57,-21.8 13,-47.25 10.99,-65.26 5.79,-0.88 11.68,-1.23 17.73,-1.29 6.05,0.06 11.93,0.41 17.73,1.29 -2,18.01 -1.58,43.46 10.99,65.26 4.07,7.05 9.2,13.21 15.26,18.27 15.29,12.78 36.46,15.1 52.76,5.71 16.24,-9.39 24.85,-28.89 21.43,-48.53 -1.35,-7.76 -4.11,-15.27 -8.2,-22.35 -12.57,-21.77 -34.38,-34.86 -51.01,-42.15 2.14,-5.5 4.75,-10.86 7.78,-16.1 3.02,-5.25 6.37,-10.18 10.05,-14.79 14.63,10.76 36.87,23.1 62.01,23.1 8.18,0 16.06,-1.36 23.46,-4.07 18.72,-6.86 31.3,-24.07 31.31,-42.82 -0.01,-18.82 -12.6,-35.98 -31.32,-42.84 z m -301.050001,55.07 c -4.09,0 -7.96,-0.66 -11.52,-1.96 -4.88,-1.79 -8.55,-6.21 -8.55,-10.28 0.02,-4.06 3.68,-8.5 8.54,-10.28 3.58,-1.3 7.46,-1.97 11.53,-1.97 10.85,0.01 23.42,4.43 35.61,12.24 -12.22,7.83 -24.77,12.25 -35.61,12.24 z M 119.93,85.903924 c -2.04,-3.52 -3.4,-7.21 -4.06,-10.96 -0.9,-5.1 1.12,-10.49 4.63,-12.54 3.53,-2.04 9.19,-1.06 13.18,2.27 2.91,2.44 5.42,5.45 7.46,9 5.42,9.38 7.87,22.46 7.2,36.959996 -12.86,-6.65 -22.97,-15.329996 -28.4,-24.719996 z m 21.31,240.439996 c -2.03,3.53 -4.55,6.55 -7.46,9 -3.97,3.33 -9.64,4.28 -13.17,2.26 -3.53,-2.04 -5.52,-7.43 -4.63,-12.55 0.66,-3.74 2.02,-7.42 4.07,-10.96 5.41,-9.39 15.52,-18.05 28.41,-24.71 0.67,14.46 -1.79,27.56 -7.21,36.96 z m 95.47,-105.17 c -4.38,7.52 -8.07,15.34 -11.04,23.4 -8.44,-1.45 -17,-2.12 -25.68,-2.13 -8.69,0.01 -17.25,0.68 -25.68,2.13 -2.96,-8.06 -6.65,-15.88 -11.04,-23.4 -4.32,-7.56 -9.25,-14.66 -14.75,-21.26 5.48,-6.58 10.33,-13.66 14.69,-21.18 4.34,-7.53 8.04,-15.28 11,-23.31 8.46,1.46 17.08,2.18 25.78,2.14 8.71,0.03 17.32,-0.68 25.78,-2.14 2.96,8.03 6.66,15.78 11,23.31 4.35,7.52 9.21,14.6 14.69,21.18 -5.5,6.6 -10.42,13.7 -14.75,21.26 z m 43.23,92.92 c 2.05,3.54 3.41,7.22 4.07,10.96 0.89,5.12 -1.1,10.51 -4.63,12.55 -3.53,2.02 -9.2,1.07 -13.17,-2.26 -2.92,-2.45 -5.44,-5.47 -7.46,-9 -5.41,-9.4 -7.87,-22.5 -7.21,-36.96 12.89,6.67 22.99,15.33 28.41,24.71 z m -28.29,-203.47 c -0.67,-14.499996 1.78,-27.569996 7.2,-36.959996 2.04,-3.55 4.55,-6.56 7.46,-9 3.99,-3.33 9.65,-4.3 13.18,-2.27 3.51,2.05 5.52,7.43 4.63,12.54 -0.66,3.75 -2.02,7.44 -4.06,10.96 -5.43,9.39 -15.55,18.069996 -28.4,24.719996 z m 98.67,99.57 c -3.57,1.3 -7.43,1.96 -11.52,1.96 -10.84,0 -23.39,-4.41 -35.61,-12.24 12.19,-7.81 24.77,-12.23 35.61,-12.24 4.07,0 7.95,0.66 11.53,1.97 4.87,1.78 8.53,6.21 8.54,10.28 0,4.07 -3.67,8.5 -8.55,10.28 z"
84
+ id="path2"
85
+ style="display:none;fill:#ea5932;fill-opacity:1" />
86
+ </svg>
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "Knitli",
3
+ "short_name": "Knitli",
4
+ "icons": [
5
+ {
6
+ "src": "/android-chrome-192x192.png",
7
+ "sizes": "192x192",
8
+ "type": "image/png"
9
+ },
10
+ {
11
+ "src": "/android-chrome-512x512.png",
12
+ "sizes": "512x512",
13
+ "type": "image/png"
14
+ }
15
+ ],
16
+ "theme_color": "#fcf9f5",
17
+ "background_color": "#fcf9f5",
18
+ "display": "standalone"
19
+ }
Binary file
@@ -4,40 +4,33 @@
4
4
  // Local logo asset exports - files are copied from @knitli/shared-layouts during build.
5
5
  // Do not edit paths here; run `bun run copy-assets` to refresh from source.
6
6
 
7
- import codeweaverPrimarySvg from "./codeweaver-primary.svg";
8
- import codeweaverReverseSvg from "./codeweaver-reverse.svg";
9
- import headlineLogoWebp from "./headline_logo.webp";
10
- import headlineLogoDarkWebp from "./headline_logo_dark.webp";
11
- import knitliLogoSvg from "./knitli_logo.svg";
12
- import knitliWordmarkSvg from "./knitli_wordmark.svg";
13
- import recocoLogoWebpMED from "./recoco-med.webp";
14
- import recocoLogoWebpSM from "./recoco-sm.webp";
15
- import recocoLogoWebpXL from "./recoco-xl.webp";
16
- import threadLogoLightSvg from "./Thread_vector_mono_aubergine.svg";
17
- import threadLogoDarkSvg from "./Thread_vector_mono_parchment.svg";
7
+ import { dirname, join } from "node:path";
8
+ import { fileURLToPath } from "node:url";
18
9
 
19
- export const knitliLogo = knitliLogoSvg;
20
- export const headlineLogoDark = headlineLogoDarkWebp;
21
- export const headlineLogoLight = headlineLogoWebp;
22
- export const codeweaverPrimary = codeweaverPrimarySvg;
23
- export const codeweaverReverse = codeweaverReverseSvg;
24
- export const knitliWordmark = knitliWordmarkSvg;
25
- export const recocoLogoXl = recocoLogoWebpXL;
26
- export const recocoLogoMed = recocoLogoWebpMED;
27
- export const recocoLogoSm = recocoLogoWebpSM;
28
- export const threadLogoDark = threadLogoDarkSvg;
29
- export const threadLogoLight = threadLogoLightSvg;
10
+ const __dirname = dirname(fileURLToPath(import.meta.url));
11
+
12
+ export const knitliLogo = join(__dirname, "knitli_logo.svg");
13
+ export const headlineLogoLight = join(__dirname, "headline_logo.webp");
14
+ export const headlineLogoDark = join(__dirname, "headline_logo_dark.webp");
15
+ export const codeweaverPrimary = join(__dirname, "codeweaver-primary.svg");
16
+ export const codeweaverReverse = join(__dirname, "codeweaver-reverse.svg");
17
+ export const knitliWordmark = join(__dirname, "knitli_wordmark.svg");
18
+ export const recocoLogoXl = join(__dirname, "recoco-xl.webp");
19
+ export const recocoLogoMed = join(__dirname, "recoco-med.webp");
20
+ export const recocoLogoSm = join(__dirname, "recoco-sm.webp");
21
+ export const threadLogoDark = join(__dirname, "Thread_vector_mono_parchment.svg");
22
+ export const threadLogoLight = join(__dirname, "Thread_vector_mono_aubergine.svg");
30
23
 
31
24
  export type LogoAssets = {
32
- knitliLogo: typeof knitliLogoSvg;
33
- headlineLogoDark: typeof headlineLogoDarkWebp;
34
- headlineLogoLight: typeof headlineLogoWebp;
35
- codeweaverPrimary: typeof codeweaverPrimarySvg;
36
- codeweaverReverse: typeof codeweaverReverseSvg;
37
- knitliWordmark: typeof knitliWordmarkSvg;
38
- recocoLogoXl: typeof recocoLogoWebpXL;
39
- recocoLogoMed: typeof recocoLogoWebpMED;
40
- recocoLogoSm: typeof recocoLogoWebpSM;
41
- threadLogoDark: typeof threadLogoDarkSvg;
42
- threadLogoLight: typeof threadLogoLightSvg;
25
+ knitliLogo: string;
26
+ headlineLogoDark: string;
27
+ headlineLogoLight: string;
28
+ codeweaverPrimary: string;
29
+ codeweaverReverse: string;
30
+ knitliWordmark: string;
31
+ recocoLogoXl: string;
32
+ recocoLogoMed: string;
33
+ recocoLogoSm: string;
34
+ threadLogoDark: string;
35
+ threadLogoLight: string;
43
36
  };
@@ -50,7 +50,7 @@ const shouldShowDocsHomeLink = Astro.url.pathname !== "/";
50
50
  <div class="footer-content sl-flex">
51
51
  <div class="footer-brand">
52
52
  <p class="copyright">
53
- © {currentYear}Knitli, Inc. All rights reserved.
53
+ © {currentYear} Knitli, Inc. All rights reserved.
54
54
  </p>
55
55
  <div class="social-links sl-flex">
56
56
  <a
@@ -1,3 +1,6 @@
1
- import DocsStyle from "#style/custom.css";
1
+ import { dirname, join } from "node:path";
2
+ import { fileURLToPath } from "node:url";
2
3
 
3
- export const docsStyle = DocsStyle;
4
+ const __dirname = dirname(fileURLToPath(import.meta.url));
5
+
6
+ export const docsStyle = join(__dirname, "custom.css");