@clidey/dory 0.17.0 โ†’ 0.19.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
@@ -1,5 +1,5 @@
1
1
  <div align="center">
2
- <img src="./assets/dory_logo.png" alt="Dory Logo" width="200" />
2
+ <img src="./assets/logo.svg" alt="Dory Logo" width="100" />
3
3
  </div>
4
4
 
5
5
  # Dory
@@ -0,0 +1,18 @@
1
+ <svg width="22" height="24" viewBox="0 0 22 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M21.9941 4.99951C19.9947 3.00079 19.9947 3.00079 16.9956 0.00271368V4.99951H21.9941Z" fill="#92BFFA"/>
3
+ <path d="M7.49782 3.91843C7.49782 4.5155 7.98183 4.99951 8.5789 4.99951H16.9951V0.00271606H8.5789C7.98183 0.00271606 7.49782 0.486733 7.49782 1.0838V3.91843Z" fill="url(#paint0_linear_66_680)"/>
4
+ <path d="M21.9932 5.01123C22.0049 8.20987 21.9983 17.7036 21.9951 21.9995C21.9943 23.1041 21.0977 23.9995 19.9932 23.9995H2C0.895431 23.9995 3.87055e-07 23.1041 0 21.9995V8.59131C0 7.99426 0.48401 7.51028 1.08105 7.51025H3.91797C4.51481 7.51052 4.99902 7.99441 4.99902 8.59131V19.5024H16.9951V5.01123H21.9932Z" fill="url(#paint1_linear_66_680)"/>
5
+ <ellipse cx="12.3217" cy="14.276" rx="1.2973" ry="1.29647" fill="#1967D2"/>
6
+ <path d="M5 0.00634813C5.55157 0.00730227 5.99805 0.454718 5.99805 1.00635V4.01221C5.99805 4.64068 6.29707 5.23179 6.80273 5.60498L7.46777 6.09619C7.81171 6.35003 8.22878 6.48682 8.65625 6.48682H14.4951C15.0472 6.48682 15.4949 6.93475 15.4951 7.48682V16.98C15.4951 17.5322 15.0474 17.98 14.4951 17.98H7.49805C6.94583 17.9799 6.49808 17.5322 6.49805 16.98V8.67139C6.49806 8.23724 6.35689 7.81407 6.0957 7.46729L5.58691 6.79248C5.21558 6.29954 4.63759 6.00515 4.02051 5.99561H1C0.447722 5.9956 0 5.54789 0 4.99561V1.00049C0.000165845 0.447951 0.448441 -4.60729e-05 1.00098 0.00048876L5 0.00634813Z" fill="#FFC236"/>
7
+ <ellipse cx="12.9961" cy="15.505" rx="1" ry="0.999359" fill="#3630C4"/>
8
+ <defs>
9
+ <linearGradient id="paint0_linear_66_680" x1="10.9999" y1="0.00271606" x2="10.9999" y2="23.9995" gradientUnits="userSpaceOnUse">
10
+ <stop stop-color="#528FF4"/>
11
+ <stop offset="1" stop-color="#92BFFA"/>
12
+ </linearGradient>
13
+ <linearGradient id="paint1_linear_66_680" x1="10.9999" y1="0.00271606" x2="10.9999" y2="23.9995" gradientUnits="userSpaceOnUse">
14
+ <stop stop-color="#528FF4"/>
15
+ <stop offset="1" stop-color="#92BFFA"/>
16
+ </linearGradient>
17
+ </defs>
18
+ </svg>
package/bin/dory.js CHANGED
@@ -14,21 +14,15 @@ const commands = {
14
14
  build: () => {
15
15
  console.log('๐ŸŸ Dory is ready to build your docs!');
16
16
 
17
- const currentDir = process.cwd();
18
- const userDocsDir = resolve(currentDir, 'docs');
19
- const hasUserDocs = existsSync(userDocsDir);
20
-
21
- // Use different temp directory if user has their own docs folder
22
- const tempDirName = hasUserDocs ? '.dory-build-temp' : 'docs';
23
- const docsDir = resolve(__dirname, '..', tempDirName);
24
-
25
- // Clear the temp build folder if it exists
17
+ // Clear the docs folder if it exists
18
+ const docsDir = resolve(__dirname, '..', 'docs');
26
19
  if (existsSync(docsDir)) {
27
20
  console.log('๐Ÿงน Tidying up the workspace...');
28
21
  rmSync(docsDir, { recursive: true, force: true });
29
22
  }
30
23
 
31
24
  // Check if dory.json exists in current directory
25
+ const currentDir = process.cwd();
32
26
  const doryConfigPath = resolve(currentDir, 'dory.json');
33
27
 
34
28
  if (!existsSync(doryConfigPath)) {
@@ -59,9 +53,8 @@ const commands = {
59
53
  }
60
54
  };
61
55
 
62
- // Copy all files and directories except node_modules, dist, .git, and temp build dir
63
- // Don't exclude 'docs' if user has their own docs folder - we need to copy it
64
- const excludeDirs = ['node_modules', 'dist', '.git', 'pnpm-lock.yaml', tempDirName];
56
+ // Copy all files and directories except node_modules, dist, and .git
57
+ const excludeDirs = ['node_modules', 'dist', '.git', 'docs', 'pnpm-lock.yaml'];
65
58
 
66
59
  const items = readdirSync(currentDir);
67
60
  for (const item of items) {
@@ -95,7 +88,7 @@ const commands = {
95
88
  }
96
89
  rmSync(distDir, { recursive: true, force: true });
97
90
 
98
- // Clean up temp build folder (but preserve user's docs folder if it exists)
91
+ // Revert docs folder back to original state
99
92
  console.log('๐Ÿงน Cleaning up...');
100
93
  rmSync(docsDir, { recursive: true, force: true });
101
94
  console.log('โœ… All done!');
package/docs/dory.json CHANGED
@@ -53,7 +53,7 @@
53
53
  ]
54
54
  },
55
55
  "logo": {
56
- "light": "./logo/logo.png",
57
- "dark": "./logo/logo.png"
56
+ "light": "./logo/logo.svg",
57
+ "dark": "./logo/logo.svg"
58
58
  }
59
59
  }
@@ -0,0 +1,18 @@
1
+ <svg width="22" height="24" viewBox="0 0 22 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M21.9941 4.99951C19.9947 3.00079 19.9947 3.00079 16.9956 0.00271368V4.99951H21.9941Z" fill="#92BFFA"/>
3
+ <path d="M7.49782 3.91843C7.49782 4.5155 7.98183 4.99951 8.5789 4.99951H16.9951V0.00271606H8.5789C7.98183 0.00271606 7.49782 0.486733 7.49782 1.0838V3.91843Z" fill="url(#paint0_linear_66_680)"/>
4
+ <path d="M21.9932 5.01123C22.0049 8.20987 21.9983 17.7036 21.9951 21.9995C21.9943 23.1041 21.0977 23.9995 19.9932 23.9995H2C0.895431 23.9995 3.87055e-07 23.1041 0 21.9995V8.59131C0 7.99426 0.48401 7.51028 1.08105 7.51025H3.91797C4.51481 7.51052 4.99902 7.99441 4.99902 8.59131V19.5024H16.9951V5.01123H21.9932Z" fill="url(#paint1_linear_66_680)"/>
5
+ <ellipse cx="12.3217" cy="14.276" rx="1.2973" ry="1.29647" fill="#1967D2"/>
6
+ <path d="M5 0.00634813C5.55157 0.00730227 5.99805 0.454718 5.99805 1.00635V4.01221C5.99805 4.64068 6.29707 5.23179 6.80273 5.60498L7.46777 6.09619C7.81171 6.35003 8.22878 6.48682 8.65625 6.48682H14.4951C15.0472 6.48682 15.4949 6.93475 15.4951 7.48682V16.98C15.4951 17.5322 15.0474 17.98 14.4951 17.98H7.49805C6.94583 17.9799 6.49808 17.5322 6.49805 16.98V8.67139C6.49806 8.23724 6.35689 7.81407 6.0957 7.46729L5.58691 6.79248C5.21558 6.29954 4.63759 6.00515 4.02051 5.99561H1C0.447722 5.9956 0 5.54789 0 4.99561V1.00049C0.000165845 0.447951 0.448441 -4.60729e-05 1.00098 0.00048876L5 0.00634813Z" fill="#FFC236"/>
7
+ <ellipse cx="12.9961" cy="15.505" rx="1" ry="0.999359" fill="#3630C4"/>
8
+ <defs>
9
+ <linearGradient id="paint0_linear_66_680" x1="10.9999" y1="0.00271606" x2="10.9999" y2="23.9995" gradientUnits="userSpaceOnUse">
10
+ <stop stop-color="#528FF4"/>
11
+ <stop offset="1" stop-color="#92BFFA"/>
12
+ </linearGradient>
13
+ <linearGradient id="paint1_linear_66_680" x1="10.9999" y1="0.00271606" x2="10.9999" y2="23.9995" gradientUnits="userSpaceOnUse">
14
+ <stop stop-color="#528FF4"/>
15
+ <stop offset="1" stop-color="#92BFFA"/>
16
+ </linearGradient>
17
+ </defs>
18
+ </svg>
package/k8s/Dockerfile CHANGED
@@ -7,7 +7,7 @@ RUN apk add --no-cache git
7
7
 
8
8
  COPY ./k8s/config/nginx-default.conf /app/k8s/config/nginx-default.conf
9
9
 
10
- RUN npm install -g @clidey/dory@0.17.0
10
+ RUN npm install -g @clidey/dory@0.18.0
11
11
  EXPOSE 3000
12
12
 
13
13
  CMD ["dory", "preview"]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@clidey/dory",
3
3
  "private": false,
4
- "version": "0.17.0",
4
+ "version": "0.19.0",
5
5
  "type": "module",
6
6
  "description": "A CLI tool for building and previewing documentation sites",
7
7
  "keywords": [
package/src/ui/header.tsx CHANGED
@@ -56,10 +56,10 @@ export function Header({ className }: { className?: string }) {
56
56
  },
57
57
  )}
58
58
  >
59
- <div className="relative flex justify-between gap-6 sm:gap-8 md:grow items-center w-full">
60
- <div className="flex items-center grow gap-4 lg:gap-6">
61
- <img src={`/${light}`} alt="logo" className="w-10 h-10 hidden dark:block rounded-full" />
62
- <img src={`/${dark}`} alt="logo" className="w-10 h-10 block dark:hidden rounded-full" />
59
+ <div className="relative flex justify-between gap-6 sm:gap-8 md:grow items-center w-full px-4">
60
+ <div className="flex items-center grow gap-2">
61
+ <img src={`/${light}`} alt="logo" className="w-8 hidden dark:block" />
62
+ <img src={`/${dark}`} alt="logo" className="w-8 block dark:hidden" />
63
63
  <h1 className="text-base lg:text-2xl font-bold">{docsConfig.name}</h1>
64
64
  </div>
65
65
  <nav className="hidden md:block">
Binary file
Binary file