vowel 0.1.31 → 0.1.34

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.
@@ -0,0 +1,73 @@
1
+ ---
2
+ name: Bug report
3
+ about: Report a bug to help improve Vowel.
4
+ title: ""
5
+ labels: "bug"
6
+ assignees: "samlfair"
7
+ ---
8
+
9
+ <!--
10
+ Thanks for taking the time to help build Vowel.
11
+ A well-detailed bug report helps us to solve the problem quickly.
12
+ -->
13
+
14
+ ### Versions
15
+
16
+ - vowel: <!-- eg: v0.1.32 -->
17
+ - node: <!-- eg: v14.15.0 -->
18
+ - os: <!-- eg: macOS 14.5 -->
19
+ - browser: <!-- eg: Chrome 129 -->
20
+
21
+ ### Browser report
22
+
23
+ <!--
24
+ Generate a browser report at https://www.whatsmybrowser.org/
25
+ Copy-paste a link to the report
26
+ -->
27
+
28
+ ### Link to Stackblitz
29
+
30
+ <!--
31
+ If possible, upload a reproduction to Stackblitz
32
+ and copy-paste the link here
33
+ -->
34
+
35
+ ### Steps to reproduce
36
+
37
+ <!-- eg: "Go to X and click on Y" -->
38
+
39
+ ### Expected behavior
40
+
41
+ <!-- eg: "The image will appear below the headline" -->
42
+
43
+ ### Actual behavior
44
+
45
+ <!-- eg: "The image appears above the headline" -->
46
+
47
+ ### Additional technologies
48
+
49
+ <!-- List any other technologies you're using with Vowel -->
50
+
51
+ ### Screenshot
52
+
53
+ <!-- If possible, include a screenshot of the issue -->
54
+
55
+ ### Errors from terminal
56
+
57
+ <!-- If there are any error messages in the terminal, paste them here -->
58
+
59
+ ```
60
+
61
+ ```
62
+
63
+ ### Errors from browser console
64
+
65
+ <!-- If there are any error message in the error console, paste them here -->
66
+
67
+ ```
68
+
69
+ ```
70
+
71
+ ### Additional comments
72
+
73
+ <!-- Include any other relevent information -->
@@ -0,0 +1,7 @@
1
+ contact_links:
2
+ - name: Vowel on Twitter
3
+ url: https://twitter.com/tryvowel
4
+ about: Get in touch with questions or ideas.
5
+ - name: Sam on Twitter
6
+ url: https://twitter.com/samlfair
7
+ about: Get in touch to chat.
package/CHANGELOG.md ADDED
@@ -0,0 +1,16 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
+
5
+ ## [0.1.34](https://github.com/samlfair/vowel/compare/v0.1.33...v0.1.34) (2024-10-16)
6
+
7
+
8
+ ### Features
9
+
10
+ * add webmention and github links to header ([114d9b4](https://github.com/samlfair/vowel/commit/114d9b455211957cac361825d1da8017e3afb45f))
11
+
12
+ ## 0.1.33 (2024-10-14)
13
+
14
+ # Changelog
15
+
16
+ All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
package/README.md CHANGED
@@ -3,18 +3,16 @@
3
3
  [![npm version][npm-version-src]][npm-version-href]
4
4
  [![npm downloads][npm-downloads-src]][npm-downloads-href]
5
5
 
6
- The easiest way to code your own website.
6
+ Vowel is the easiest way to code your own website.
7
7
 
8
8
  [Try it on StackBlitz](https://stackblitz.com/~/github.com/samlfair/vowel-site?file=home.md).
9
9
 
10
10
  Turn a folder of Markdown files into a website by running one command:
11
11
 
12
12
  ```
13
- npx -y -p svelte@next -p vowel@latest npx vowel
13
+ npx vowel
14
14
  ```
15
15
 
16
- No installs. No config.
17
-
18
16
  Create a blog, a documentation site, a landing page, a wiki (whatever you want), using just Markdown and CSS.
19
17
 
20
18
  No HTML.
package/package.json CHANGED
@@ -1,11 +1,23 @@
1
1
  {
2
2
  "name": "vowel",
3
- "version": "0.1.31",
3
+ "version": "0.1.34",
4
+ "homepage": "https://vowel.cc",
5
+ "author": "Sam Littlefair (https://littlefair.ca)",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "ssh://git@github.com/samlfair/vowel.git"
9
+ },
10
+ "engines": {
11
+ "node": "^20.0.0"
12
+ },
4
13
  "bin": "./bin.js",
5
14
  "scripts": {
6
15
  "dev": "vite dev",
7
16
  "build": "vite build",
8
17
  "preview": "vite preview",
18
+ "release": "commit-and-tag-version && git push --follow-tags && npm publish",
19
+ "release:dry": "commit-and-tag-version --dry-run",
20
+ "release:beta": "commit-and-tag-version ---prerelease beta",
9
21
  "check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
10
22
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
11
23
  "lint": "prettier --check .",
@@ -20,6 +32,7 @@
20
32
  "@sveltejs/vite-plugin-svelte": "^4.0.0-next.7",
21
33
  "any-date-parser": "^1.5.4",
22
34
  "change-case": "^5.4.1",
35
+ "commit-and-tag-version": "^12.4.4",
23
36
  "filter-console": "^1.0.0",
24
37
  "js-yaml": "^4.1.0",
25
38
  "loading-cli": "^1.1.2",
@@ -106,6 +106,19 @@
106
106
  });
107
107
  }
108
108
  });
109
+
110
+ function createWebmentionURL() {
111
+ try {
112
+ if(website._.domain) {
113
+ const domain = new URL(website._.domain)
114
+ return `https://webmention.io/${domain.host}/webmention`
115
+ }
116
+ return undefined
117
+ } catch(error) {
118
+ console.warn(error)
119
+ return undefined
120
+ }
121
+ }
109
122
  </script>
110
123
 
111
124
  <svelte:component this={themes[theme || 'default']} />
@@ -126,6 +139,12 @@
126
139
  {#if !data.dev && data.files.css.exists}
127
140
  <link rel="stylesheet" href="/styles.css" />
128
141
  {/if}
142
+ {#if website._.github}
143
+ <link href={`https://github.com/${website._.github}`} rel="me">
144
+ {/if}
145
+ {#if website._.webmentions && website._.domain}
146
+ <link rel="webmention" href={createWebmentionURL()} />
147
+ {/if}
129
148
  {#if page.hasOwnProperty('image') || page.imputedProperties?.hasOwnProperty('image')}
130
149
  <meta property="og:image" content={page.image || page.imputedProperties.image} />
131
150
  {/if}