grimoire3d 0.0.0-dev.392a946

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 kkm-horikawa
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,151 @@
1
+ # grimoire3d
2
+
3
+ [![npm version](https://badge.fury.io/js/grimoire3d.svg)](https://badge.fury.io/js/grimoire3d)
4
+ [![CI](https://github.com/kkm-horikawa/grimoire3d/actions/workflows/ci.yml/badge.svg)](https://github.com/kkm-horikawa/grimoire3d/actions/workflows/ci.yml)
5
+ [![codecov](https://codecov.io/gh/kkm-horikawa/grimoire3d/branch/develop/graph/badge.svg)](https://codecov.io/gh/kkm-horikawa/grimoire3d)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
+
8
+ A 3D magical book documentation generator. Transform your docs into an interactive grimoire with realistic page-flip animations.
9
+
10
+ ## What is this?
11
+
12
+ Grimoire3D transforms your Markdown documentation into an interactive 3D book. Perfect for:
13
+
14
+ - Project documentation
15
+ - Design specifications
16
+ - Technical notes
17
+ - Portfolios
18
+ - Tutorials
19
+
20
+ ## Features
21
+
22
+ - Realistic 3D page-flip animation
23
+ - Markdown rendering
24
+ - HTML support
25
+ - Mermaid diagram support (planned)
26
+ - Multiple themes
27
+ - Static site generation
28
+ - Zero-config setup
29
+
30
+ ## Installation
31
+
32
+ ```bash
33
+ npm install grimoire3d
34
+ # or
35
+ pnpm add grimoire3d
36
+ # or
37
+ yarn add grimoire3d
38
+ ```
39
+
40
+ ## Quick Start
41
+
42
+ ### 1. Create your docs directory
43
+
44
+ ```
45
+ my-project/
46
+ ├── grimoire.yml # Configuration (optional)
47
+ └── docs/
48
+ ├── index.md # Cover page
49
+ ├── 01-overview.md
50
+ ├── 02-features.md
51
+ └── assets/
52
+ └── diagram.png
53
+ ```
54
+
55
+ ### 2. Write your content
56
+
57
+ ```markdown
58
+ <!-- docs/index.md -->
59
+ # My Project
60
+
61
+ Welcome to the documentation.
62
+
63
+ ## Overview
64
+
65
+ This is an amazing project...
66
+ ```
67
+
68
+ ### 3. Start the dev server
69
+
70
+ ```bash
71
+ npx grimoire3d serve
72
+ ```
73
+
74
+ ### 4. Build for production
75
+
76
+ ```bash
77
+ npx grimoire3d build
78
+ ```
79
+
80
+ ## Configuration
81
+
82
+ Create a `grimoire.yml` file in your project root:
83
+
84
+ ```yaml
85
+ title: "My Project Documentation"
86
+ theme: "vintage-red" # or "modern-dark", "paper-white"
87
+ pages:
88
+ - index.md
89
+ - 01-overview.md
90
+ - 02-features.md
91
+ # Omit 'pages' to auto-detect all .md files
92
+ ```
93
+
94
+ ## Using as a React Component
95
+
96
+ ```tsx
97
+ import { BookViewer } from "grimoire3d/components";
98
+
99
+ const pages = [
100
+ {
101
+ id: "cover",
102
+ title: "Cover",
103
+ front: <CoverPage />,
104
+ back: <AboutPage />,
105
+ tabColor: "#E57373",
106
+ tabLabel: "Cover",
107
+ },
108
+ // ... more pages
109
+ ];
110
+
111
+ function App() {
112
+ return <BookViewer pages={pages} />;
113
+ }
114
+ ```
115
+
116
+ ## Themes
117
+
118
+ | Theme | Description |
119
+ |-------|-------------|
120
+ | `vintage-red` | Classic red leather book cover |
121
+ | `modern-dark` | Sleek dark mode |
122
+ | `paper-white` | Clean minimal design |
123
+ | `forest-green` | Nature-inspired |
124
+
125
+ ## Roadmap
126
+
127
+ - [ ] v0.1.0 - MVP with basic page-flip and Markdown support
128
+ - [ ] v0.2.0 - Mermaid diagrams and code highlighting
129
+ - [ ] v0.3.0 - CLI for static site generation
130
+ - [ ] v0.4.0 - Theme customization and plugins
131
+
132
+ ## Documentation
133
+
134
+ - [Architecture & Design Decisions](docs/ARCHITECTURE.md)
135
+ - [Glossary of Terms](docs/GLOSSARY.md)
136
+ - [Contributing Guide](CONTRIBUTING.md)
137
+
138
+ ## Requirements
139
+
140
+ - Node.js 22+
141
+ - React 19+
142
+
143
+ ## License
144
+
145
+ MIT License. See [LICENSE](LICENSE) for details.
146
+
147
+ ## Inspiration
148
+
149
+ - Ancient grimoires and magical tomes
150
+ - Vintage technical manuals
151
+ - React component libraries