@codemeall/create-word-pages 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +116 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,116 @@
1
+ # Word Pages
2
+
3
+ Word Pages turns an Obsidian-authored Markdown vault into a Quartz-powered portfolio, blog, and knowledge-base site that can be deployed to GitHub Pages.
4
+
5
+ It is designed for people who want to manage content locally in Obsidian, keep source files in GitHub, and publish a static public site without paid sync or hosted storage.
6
+
7
+ ## Quick Start
8
+
9
+ Requirements:
10
+
11
+ - Node.js 22 or newer
12
+ - npm 10.9 or newer
13
+ - A GitHub account
14
+ - Obsidian, optional but recommended
15
+
16
+ Create a new site:
17
+
18
+ ```bash
19
+ npx @codemeall/create-word-pages my-site
20
+ cd my-site
21
+ npm install
22
+ npm run wizard
23
+ npm run preview
24
+ ```
25
+
26
+ Open the `content/` folder in Obsidian and start editing.
27
+
28
+ ## How Publishing Works
29
+
30
+ Word Pages uses `content/` as the Obsidian vault. Markdown files render only when they include:
31
+
32
+ ```yaml
33
+ ---
34
+ title: "My page"
35
+ type: note
36
+ publish: true
37
+ ---
38
+ ```
39
+
40
+ Supported content types:
41
+
42
+ - `page`: portfolio/home/about pages
43
+ - `post`: blog posts under `/posts/`
44
+ - `note`: knowledge-base notes under `/notes/`
45
+
46
+ The generated site is built by Quartz and can be deployed by the included GitHub Actions workflow.
47
+
48
+ ## GitHub Pages Setup
49
+
50
+ 1. Create a new GitHub repository.
51
+ 2. Push the generated site folder to that repository.
52
+ 3. In GitHub, open `Settings -> Pages`.
53
+ 4. Set the source to `GitHub Actions`.
54
+ 5. Push to `main`.
55
+
56
+ The included workflow builds and deploys the site automatically.
57
+
58
+ For project pages, run the wizard and set your GitHub username and repository name so the site URL is configured correctly.
59
+
60
+ ## Privacy Rule
61
+
62
+ `publish: true` means “render this file into the public website.”
63
+
64
+ It does not make the Markdown source private. If the GitHub repository is public, committed Markdown files may be visible on GitHub even when they are not rendered.
65
+
66
+ For private drafts, use a private repository or keep drafts outside the published repo.
67
+
68
+ ## Import Existing Jekyll Posts
69
+
70
+ If you have a Jekyll blog with `_posts`, import it like this:
71
+
72
+ ```bash
73
+ npm run import:jekyll -- /path/to/site/_posts
74
+ ```
75
+
76
+ The importer copies posts into `content/posts`, adds `type: post`, adds `publish: true`, and preserves common frontmatter such as title, date, tags, category, and description.
77
+
78
+ ## Common Commands
79
+
80
+ ```bash
81
+ npm run wizard
82
+ ```
83
+
84
+ Configure site identity, GitHub Pages URL details, and visibility guidance.
85
+
86
+ ```bash
87
+ npm run preview
88
+ ```
89
+
90
+ Build and serve the site locally.
91
+
92
+ ```bash
93
+ npm run build
94
+ ```
95
+
96
+ Build the static site for production.
97
+
98
+ ```bash
99
+ npm run prepare:content
100
+ ```
101
+
102
+ Stage only publishable Markdown into the Quartz build input.
103
+
104
+ ## Client Handoff Checklist
105
+
106
+ - Create the site with `npx @codemeall/create-word-pages client-site`.
107
+ - Run the wizard and set the correct GitHub username and repository name.
108
+ - Open `content/` in Obsidian.
109
+ - Replace the sample home, about, post, and note files.
110
+ - Commit and push to GitHub.
111
+ - Enable GitHub Pages with GitHub Actions.
112
+ - Confirm the first deployment succeeds.
113
+
114
+ ## License
115
+
116
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemeall/create-word-pages",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Scaffold a Word Pages Obsidian-to-GitHub-Pages starter.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -18,4 +18,4 @@
18
18
  "npm": ">=10.9"
19
19
  },
20
20
  "license": "MIT"
21
- }
21
+ }