create-vault-cms 1.0.0 → 1.0.1
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 +28 -27
- package/package.json +3 -2
- package/src/cli.js +1 -1
package/README.md
CHANGED
|
@@ -25,48 +25,49 @@ Use [Obsidian](https://obsidian.md) as a content management system for your [Ast
|
|
|
25
25
|
|
|
26
26
|
## Installation Guide
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
2. Clone or download a zip of this repo.
|
|
30
|
-
3. Copy the contents of the `Starter Vault` folder into your Astro project. **Recommended location:** `src/content` folder, but it can be placed at the level of `src/content` or higher (like the project root).
|
|
31
|
-
4. Open Obsidian and select the "Open folder as vault" option, and select the folder containing the `.obsidian` directory.
|
|
32
|
-
5. The Vault CMS plugin will automatically detect your Astro project structure and guide you through setup via a wizard.
|
|
28
|
+
The easiest way to install Vault CMS is via the CLI:
|
|
33
29
|
|
|
34
|
-
|
|
30
|
+
```bash
|
|
31
|
+
# Using pnpm
|
|
32
|
+
pnpm create vault-cms
|
|
35
33
|
|
|
36
|
-
|
|
34
|
+
# Using npm
|
|
35
|
+
npm create vault-cms
|
|
37
36
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
# Using yarn
|
|
38
|
+
yarn create vault-cms
|
|
39
|
+
```
|
|
41
40
|
|
|
42
|
-
|
|
41
|
+
This will automatically:
|
|
42
|
+
1. Copy the necessary `_bases` and `.obsidian` configuration folders.
|
|
43
|
+
2. Setup a `README.md` for your vault.
|
|
44
|
+
3. Update your `.gitignore` with the recommended Obsidian excludes.
|
|
43
45
|
|
|
44
|
-
|
|
45
|
-
2. **Copy the CONTENTS** of that theme folder (not the folder itself) into your Astro project's `src/content` folder.
|
|
46
|
-
- ⚠️ **Important**: Copy the files and folders inside the theme folder, not the theme folder itself. For example, if using Slate, copy the contents of `Theme Examples/Slate/` (like `_bases/`, `post/`, etc.) into `src/content/`, not the `Slate` folder. (Note: `_bases` is the new standard, but `bases` is still supported for backwards compatibility).
|
|
47
|
-
3. Open Obsidian and select "Open folder as vault", then select your `src/content` folder (or the folder containing the `.obsidian` directory).
|
|
48
|
-
4. The vault should already be preconfigured for your theme.
|
|
46
|
+
### Manual Installation
|
|
49
47
|
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
If you prefer to install manually:
|
|
49
|
+
1. Clone or download a zip of this repo.
|
|
50
|
+
2. Copy the `_bases` and `.obsidian` folders into your Astro project (e.g., in `src/content`).
|
|
51
|
+
3. Open Obsidian and select "Open folder as vault", then select the folder containing the `.obsidian` directory.
|
|
52
52
|
|
|
53
53
|
## How Auto-Detection Works
|
|
54
54
|
|
|
55
55
|
Vault CMS automatically detects and configures itself based on your Astro project:
|
|
56
56
|
|
|
57
|
-
- **Project Detection**: Automatically finds your Astro project by locating `astro.config.mjs`, `astro.config.ts`, or other Astro config files
|
|
58
|
-
- **Content Type Detection**: Scans your content folders (like `posts`, `pages`, `docs`, etc.) and automatically identifies them as content types
|
|
59
|
-
- **Frontmatter Analysis**: Analyzes existing content files to detect frontmatter properties (title, date, description, etc.) and configures the plugin accordingly
|
|
60
|
-
- **Theme Adaptation**: Adapts to your Astro theme's specific quirks and requirements automatically
|
|
57
|
+
- **Project Detection**: Automatically finds your Astro project by locating `astro.config.mjs`, `astro.config.ts`, or other Astro config files.
|
|
58
|
+
- **Content Type Detection**: Scans your content folders (like `posts`, `pages`, `docs`, etc.) and automatically identifies them as content types.
|
|
59
|
+
- **Frontmatter Analysis**: Analyzes existing content files to detect frontmatter properties (title, date, description, etc.) and configures the plugin accordingly.
|
|
60
|
+
- **Theme Adaptation**: Adapts to your Astro theme's specific quirks and requirements automatically.
|
|
61
61
|
|
|
62
62
|
When you first open the vault, a setup wizard will guide you through the configuration process. The wizard uses the auto-detected information to pre-populate settings, making setup quick and easy. You can always run the wizard again later by using the "Open Setup Wizard" command.
|
|
63
63
|
|
|
64
64
|
### Recommended .gitignore
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
If you are not using the CLI, add the following to your Astro project's `.gitignore` file:
|
|
67
67
|
```
|
|
68
|
-
# Obsidian
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
# Obsidian
|
|
69
|
+
.obsidian/workspace.json
|
|
70
|
+
.obsidian/workspace-mobile.json
|
|
71
|
+
.ref/
|
|
71
72
|
```
|
|
72
|
-
This prevents conflicts between multiple devices.
|
|
73
|
+
This prevents conflicts between multiple devices and keeps your vault clean.
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vault-cms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Installer for Vault CMS",
|
|
5
5
|
"main": "src/cli.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"create-vault-cms": "src/cli.js"
|
|
7
|
+
"create-vault-cms": "src/cli.js",
|
|
8
|
+
"create-vaultcms": "src/cli.js"
|
|
8
9
|
},
|
|
9
10
|
"files": [
|
|
10
11
|
"src",
|