@litodocs/cli 1.3.1 → 1.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litodocs/cli",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "Beautiful documentation sites from Markdown. Fast, simple, and open-source.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -480,7 +480,7 @@ const config = await getConfigFile();
480
480
 
481
481
  // Font configuration
482
482
  const fonts = config.branding?.fonts;
483
- const headingFont = fonts?.heading || 'Syne';
483
+ const headingFont = fonts?.heading || 'Inter';
484
484
  const bodyFont = fonts?.body || 'Inter';
485
485
  const codeFont = fonts?.code || 'Fira Code';
486
486
 
@@ -500,7 +500,7 @@ const fontOverrides = [];
500
500
  if (bodyFont !== 'Inter') {
501
501
  fontOverrides.push("--font-sans: '" + bodyFont + "', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;");
502
502
  }
503
- if (headingFont !== 'Syne') {
503
+ if (headingFont !== 'Inter') {
504
504
  fontOverrides.push("--font-heading: '" + headingFont + "', '" + bodyFont + "', system-ui, sans-serif !important;");
505
505
  }
506
506
  if (codeFont !== 'Fira Code') {
@@ -871,7 +871,7 @@ const config = await getConfigFile();
871
871
 
872
872
  // Font configuration
873
873
  const fonts = config.branding?.fonts;
874
- const headingFont = fonts?.heading || 'Syne';
874
+ const headingFont = fonts?.heading || 'Inter';
875
875
  const bodyFont = fonts?.body || 'Inter';
876
876
  const codeFont = fonts?.code || 'Fira Code';
877
877
 
@@ -891,7 +891,7 @@ const fontOverrides = [];
891
891
  if (bodyFont !== 'Inter') {
892
892
  fontOverrides.push("--font-sans: '" + bodyFont + "', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;");
893
893
  }
894
- if (headingFont !== 'Syne') {
894
+ if (headingFont !== 'Inter') {
895
895
  fontOverrides.push("--font-heading: '" + headingFont + "', '" + bodyFont + "', system-ui, sans-serif !important;");
896
896
  }
897
897
  if (codeFont !== 'Fira Code') {
@@ -123,11 +123,15 @@ export async function fetchGitHubTemplate(owner, repo, ref) {
123
123
 
124
124
  // Use tar to extract (available on all Unix systems and modern Windows)
125
125
  const { execa } = await import('execa');
126
- await execa('tar', [
127
- '-xzf', tempTarPath,
128
- '-C', cachePath,
129
- '--strip-components=1'
130
- ]);
126
+ const isWin = process.platform === 'win32';
127
+ const tarArgs = [
128
+ '-xzf', isWin ? tempTarPath.replace(/\\/g, '/') : tempTarPath,
129
+ '-C', isWin ? cachePath.replace(/\\/g, '/') : cachePath,
130
+ '--strip-components=1',
131
+ // On Windows, GNU tar misinterprets drive letters (C:) as remote hosts
132
+ ...(isWin ? ['--force-local'] : [])
133
+ ];
134
+ await execa('tar', tarArgs);
131
135
 
132
136
  // Cleanup temp tarball
133
137
  await remove(tempTarPath);
@@ -49,6 +49,19 @@
49
49
  "href": {
50
50
  "type": "string",
51
51
  "description": "Link when clicking the logo"
52
+ },
53
+ "height": {
54
+ "type": "number",
55
+ "description": "Logo height in pixels"
56
+ },
57
+ "alt": {
58
+ "type": "string",
59
+ "description": "Alt text for the logo image (defaults to metadata.name)"
60
+ },
61
+ "replacesTitle": {
62
+ "type": "boolean",
63
+ "default": true,
64
+ "description": "When true, logo replaces site title text. When false, both are shown."
52
65
  }
53
66
  }
54
67
  },