fontisan 0.4.54-java → 0.4.55-java

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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +1 -1
  3. data/docs/.gitignore +4 -0
  4. data/docs/astro.config.mjs +16 -0
  5. data/docs/package-lock.json +4022 -1496
  6. data/docs/package.json +12 -5
  7. data/docs/scripts/sitemap-base.mjs +81 -0
  8. data/docs/src/content.config.ts +32 -0
  9. data/docs/{.vitepress/config.ts → src/data/sidebar.ts} +235 -146
  10. data/docs/src/layouts/Site.astro +320 -0
  11. data/docs/src/pages/404.astro +14 -0
  12. data/docs/src/pages/api/[...slug].astro +22 -0
  13. data/docs/src/pages/api/index.astro +12 -0
  14. data/docs/src/pages/cli/[...slug].astro +22 -0
  15. data/docs/src/pages/cli/index.astro +12 -0
  16. data/docs/src/pages/guide/[...slug].astro +22 -0
  17. data/docs/src/pages/guide/index.astro +12 -0
  18. data/docs/src/pages/history/[...slug].astro +22 -0
  19. data/docs/src/pages/history/index.astro +24 -0
  20. data/docs/src/pages/index.astro +234 -0
  21. data/docs/src/pages/root/[...slug].astro +20 -0
  22. data/docs/src/styles/site.css +88 -0
  23. data/lib/fontisan/byte_ops.rb +0 -5
  24. data/lib/fontisan/ffi/darwin-arm64/libfontisan_cdylib.dylib +0 -0
  25. data/lib/fontisan/ffi/darwin-x86_64/libfontisan_cdylib.dylib +0 -0
  26. data/lib/fontisan/ffi/linux-x86_64/libfontisan_cdylib.so +0 -0
  27. data/lib/fontisan/ffi/windows-x86_64/fontisan_cdylib.dll +0 -0
  28. data/lib/fontisan/native.rb +1 -1
  29. data/lib/fontisan/version.rb +1 -1
  30. metadata +18 -10
  31. data/docs/.vitepress/theme/components/ApiMethod.vue +0 -127
  32. data/docs/.vitepress/theme/components/Badge.vue +0 -51
  33. data/docs/.vitepress/theme/components/FeatureComparison.vue +0 -87
  34. data/docs/.vitepress/theme/components/HeroCodeBlock.vue +0 -98
  35. data/docs/.vitepress/theme/components/WithinHero.vue +0 -30
  36. data/docs/.vitepress/theme/index.ts +0 -22
  37. data/docs/.vitepress/theme/style.css +0 -628
  38. data/docs/scripts/post-build.mjs +0 -81
@@ -1,87 +0,0 @@
1
- <template>
2
- <table class="feature-comparison">
3
- <thead>
4
- <tr>
5
- <th>Feature</th>
6
- <th v-for="tool in tools" :key="tool">{{ tool }}</th>
7
- </tr>
8
- </thead>
9
- <tbody>
10
- <tr v-for="feature in features" :key="feature.name">
11
- <td class="feature-name">{{ feature.name }}</td>
12
- <td
13
- v-for="(tool, index) in tools"
14
- :key="tool"
15
- :class="getSupportClass(feature.support[index])"
16
- >
17
- <span class="support-icon">{{ getSupportIcon(feature.support[index]) }}</span>
18
- <span v-if="feature.notes?.[index]" class="note">{{ feature.notes[index] }}</span>
19
- </td>
20
- </tr>
21
- </tbody>
22
- </table>
23
- </template>
24
-
25
- <script setup lang="ts">
26
- interface Feature {
27
- name: string;
28
- support: boolean[];
29
- notes?: string[];
30
- }
31
-
32
- defineProps<{
33
- tools: string[];
34
- features: Feature[];
35
- }>();
36
-
37
- function getSupportIcon(supported: boolean): string {
38
- return supported ? "✓" : "✗";
39
- }
40
-
41
- function getSupportClass(supported: boolean): string {
42
- return supported ? "supported" : "not-supported";
43
- }
44
- </script>
45
-
46
- <style scoped>
47
- .feature-comparison {
48
- width: 100%;
49
- border-collapse: collapse;
50
- margin: 1rem 0;
51
- }
52
-
53
- .feature-comparison th,
54
- .feature-comparison td {
55
- padding: 0.75rem 1rem;
56
- text-align: left;
57
- border-bottom: 1px solid var(--vp-c-divider);
58
- }
59
-
60
- .feature-comparison th {
61
- background: var(--vp-c-bg-soft);
62
- font-weight: 600;
63
- }
64
-
65
- .feature-name {
66
- font-weight: 500;
67
- }
68
-
69
- .supported {
70
- color: var(--vp-c-green-1);
71
- }
72
-
73
- .not-supported {
74
- color: var(--vp-c-red-1);
75
- }
76
-
77
- .support-icon {
78
- font-weight: bold;
79
- }
80
-
81
- .note {
82
- display: block;
83
- font-size: 0.85rem;
84
- color: var(--vp-c-text-2);
85
- margin-top: 0.25rem;
86
- }
87
- </style>
@@ -1,98 +0,0 @@
1
- <script setup>
2
- defineProps({
3
- title: {
4
- type: String,
5
- default: 'Terminal'
6
- }
7
- })
8
- </script>
9
-
10
- <template>
11
- <div class="hero-code-block">
12
- <div class="code-header">
13
- <span class="dot"></span>
14
- <span class="dot"></span>
15
- <span class="dot"></span>
16
- <span class="code-title">{{ title }}</span>
17
- </div>
18
- <div class="code-content"><slot /></div>
19
- </div>
20
- </template>
21
-
22
- <style scoped>
23
- .hero-code-block {
24
- background: var(--vp-c-bg-soft);
25
- border: 1px solid var(--vp-c-divider);
26
- border-radius: 12px;
27
- overflow: hidden;
28
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
29
- max-width: 550px;
30
- width: 100%;
31
- font-size: 0.85rem;
32
- }
33
-
34
- @media (max-width: 768px) {
35
- .hero-code-block {
36
- max-width: 100%;
37
- font-size: 0.8rem;
38
- }
39
- }
40
-
41
- .code-header {
42
- display: flex;
43
- align-items: center;
44
- gap: 0.5rem;
45
- padding: 0.75rem 1rem;
46
- background: var(--vp-c-bg-alt);
47
- border-bottom: 1px solid var(--vp-c-divider);
48
- }
49
-
50
- .dot {
51
- width: 12px;
52
- height: 12px;
53
- border-radius: 50%;
54
- flex-shrink: 0;
55
- }
56
-
57
- .dot:nth-child(1) { background: #ff5f56; }
58
- .dot:nth-child(2) { background: #ffbd2e; }
59
- .dot:nth-child(3) { background: #28c840; }
60
-
61
- .code-title {
62
- margin-left: auto;
63
- font-size: 0.8rem;
64
- color: var(--vp-c-text-3);
65
- }
66
-
67
- .code-content {
68
- margin: 0;
69
- padding: 1.25rem;
70
- font-family: var(--vp-font-family-mono);
71
- font-size: inherit;
72
- line-height: 1.7;
73
- overflow-x: auto;
74
- -webkit-overflow-scrolling: touch;
75
- }
76
-
77
- .code-content :deep(.line) {
78
- display: block;
79
- }
80
-
81
- .code-content :deep(.prompt) {
82
- color: var(--vp-c-brand-1);
83
- font-weight: 500;
84
- }
85
-
86
- .code-content :deep(.success) {
87
- color: #28c840;
88
- }
89
-
90
- .code-content :deep(.comment) {
91
- color: var(--vp-c-text-3);
92
- font-style: italic;
93
- }
94
-
95
- .code-content :deep(.cmd) {
96
- font-weight: 600;
97
- }
98
- </style>
@@ -1,30 +0,0 @@
1
- <template>
2
- <ClientOnly>
3
- <Teleport to=".VPHero > .container">
4
- <div class="within-hero__slot-container">
5
- <slot />
6
- </div>
7
- </Teleport>
8
- </ClientOnly>
9
- </template>
10
-
11
- <style>
12
- .within-hero__slot-container {
13
- order: 2;
14
- }
15
-
16
- .VPHero > .container > .main {
17
- width: unset;
18
- flex-shrink: unset;
19
- }
20
-
21
- .VPHero > .container {
22
- gap: 32px;
23
- }
24
-
25
- @media (min-width: 960px) {
26
- .VPHero > .container {
27
- gap: 64px;
28
- }
29
- }
30
- </style>
@@ -1,22 +0,0 @@
1
- import DefaultTheme from "vitepress/theme";
2
- import type { Theme } from "vitepress";
3
- import "./style.css";
4
-
5
- // Import custom components
6
- import FeatureComparison from "./components/FeatureComparison.vue";
7
- import Badge from "./components/Badge.vue";
8
- import ApiMethod from "./components/ApiMethod.vue";
9
- import HeroCodeBlock from "./components/HeroCodeBlock.vue";
10
- import WithinHero from "./components/WithinHero.vue";
11
-
12
- export default {
13
- extends: DefaultTheme,
14
- enhanceApp({ app }) {
15
- // Register global components
16
- app.component("FeatureComparison", FeatureComparison);
17
- app.component("Badge", Badge);
18
- app.component("ApiMethod", ApiMethod);
19
- app.component("HeroCodeBlock", HeroCodeBlock);
20
- app.component("WithinHero", WithinHero);
21
- },
22
- } satisfies Theme;