vowel 0.6.4 → 0.7.0-beta.0

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 (166) hide show
  1. package/README.md +1 -1
  2. package/bin.js +47 -27
  3. package/cli.js +15 -0
  4. package/config.js +93 -26
  5. package/extractDate.js +70 -6
  6. package/index.js +14 -5
  7. package/package.json +39 -8
  8. package/plugins/assets/index.js +65 -0
  9. package/plugins/atproto/index.js +132 -0
  10. package/plugins/atproto/password.js +71 -0
  11. package/plugins/atproto/publish.js +406 -0
  12. package/plugins/atproto/record.js +144 -0
  13. package/plugins/atproto/rkey.js +54 -0
  14. package/plugins/deploy-cloudflare/index.js +30 -16
  15. package/plugins/fonts/index.js +18 -21
  16. package/plugins/html/assets/bundle-BeK1Hptv.css +21 -0
  17. package/plugins/html/bundle/assets/index-BeK1Hptv.css +21 -0
  18. package/plugins/html/bundle/index.js +21145 -0
  19. package/plugins/html/editor/EditButton.svelte +152 -0
  20. package/plugins/html/editor/Editor.svelte +51 -0
  21. package/plugins/html/editor/Overlays.svelte +6 -0
  22. package/plugins/html/editor/SettingsPanel.svelte +397 -0
  23. package/plugins/html/editor/Toolbar.svelte +644 -0
  24. package/plugins/html/editor/create-session.js +250 -0
  25. package/plugins/html/editor/directives.js +128 -0
  26. package/plugins/html/editor/frontmatter.js +97 -0
  27. package/plugins/html/editor/ingest.js +339 -0
  28. package/plugins/html/editor/main.js +94 -0
  29. package/plugins/html/editor/nodes/Alert.svelte +21 -0
  30. package/plugins/html/editor/nodes/Blockquote.svelte +9 -0
  31. package/plugins/html/editor/nodes/CodeBlock.svelte +19 -0
  32. package/plugins/html/editor/nodes/Embed.svelte +19 -0
  33. package/plugins/html/editor/nodes/Emphasis.svelte +11 -0
  34. package/plugins/html/editor/nodes/Heading.svelte +15 -0
  35. package/plugins/html/editor/nodes/Highlight.svelte +11 -0
  36. package/plugins/html/editor/nodes/Image.svelte +18 -0
  37. package/plugins/html/editor/nodes/InlineCode.svelte +11 -0
  38. package/plugins/html/editor/nodes/Link.svelte +17 -0
  39. package/plugins/html/editor/nodes/List.svelte +15 -0
  40. package/plugins/html/editor/nodes/ListItem.svelte +9 -0
  41. package/plugins/html/editor/nodes/Page.svelte +21 -0
  42. package/plugins/html/editor/nodes/Paragraph.svelte +9 -0
  43. package/plugins/html/editor/nodes/Strikethrough.svelte +11 -0
  44. package/plugins/html/editor/nodes/Strong.svelte +11 -0
  45. package/plugins/html/editor/nodes/ThematicBreak.svelte +9 -0
  46. package/plugins/html/editor/nodes/index.js +18 -0
  47. package/plugins/html/editor/rollup.config.js +35 -0
  48. package/plugins/html/editor/serialize.js +157 -0
  49. package/plugins/html/editor/settings-file.js +83 -0
  50. package/plugins/html/editor/socket.js +202 -0
  51. package/plugins/html/editor/source.js +43 -0
  52. package/plugins/html/image.js +31 -5
  53. package/plugins/html/index.js +430 -458
  54. package/plugins/html/partials.js +299 -0
  55. package/plugins/html/socialLinks.js +67 -0
  56. package/plugins/html/writeRules.js +377 -0
  57. package/plugins/icons/index.js +2 -6
  58. package/plugins/images/index.js +78 -55
  59. package/plugins/markdown/brandColors.js +10 -0
  60. package/plugins/markdown/colorScheme.js +64 -0
  61. package/plugins/markdown/emoji.js +30 -0
  62. package/plugins/markdown/frontmatter.js +253 -0
  63. package/plugins/markdown/index.js +276 -334
  64. package/plugins/markdown/links.js +97 -0
  65. package/plugins/markdown/metadata.js +229 -68
  66. package/plugins/markdown/readRules.js +143 -0
  67. package/plugins/markdown/typography.js +109 -0
  68. package/plugins/markdown/visitor.js +143 -0
  69. package/plugins/publish/index.js +34 -0
  70. package/plugins/robots/agents.js +79 -0
  71. package/plugins/robots/index.js +30 -10
  72. package/plugins/robots/robots.js +48 -0
  73. package/plugins/styles/index.js +111 -18
  74. package/plugins/styles/theme.js +116 -0
  75. package/plugins/urls/index.js +49 -62
  76. package/plugins/urls/urlMetadata.js +246 -0
  77. package/plugins/vectors/index.js +5 -9
  78. package/plugins/xml/entryContent.js +103 -0
  79. package/plugins/xml/index.js +105 -43
  80. package/secretPaths.js +170 -0
  81. package/stylesheets/DefaultStyles.css +367 -437
  82. package/stylesheets/ResetStyles.css +2 -38
  83. package/stylesheets/SyntaxHighlightingStyles.css +36 -4
  84. package/stylesheets/TypographyStyles.css +386 -128
  85. package/systemPaths.js +48 -0
  86. package/utils.js +56 -5
  87. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -73
  88. package/.github/ISSUE_TEMPLATE/config.yml +0 -7
  89. package/docs-source/.cache.json +0 -9
  90. package/docs-source/.obsidian/app.json +0 -3
  91. package/docs-source/.obsidian/appearance.json +0 -3
  92. package/docs-source/.obsidian/core-plugins-migration.json +0 -30
  93. package/docs-source/.obsidian/core-plugins.json +0 -20
  94. package/docs-source/.obsidian/workspace.json +0 -168
  95. package/docs-source/.stackblitzrc +0 -3
  96. package/docs-source/.votive.db +0 -0
  97. package/docs-source/about.md +0 -3
  98. package/docs-source/blog/home.md +0 -5
  99. package/docs-source/blog/url-ui.md +0 -21
  100. package/docs-source/blog.md +0 -5
  101. package/docs-source/docs/.votive.db +0 -0
  102. package/docs-source/docs/deploy.md +0 -67
  103. package/docs-source/docs/file-structure.md +0 -31
  104. package/docs-source/docs/folder-settings.md +0 -23
  105. package/docs-source/docs/home.md +0 -55
  106. package/docs-source/docs/images.md +0 -10
  107. package/docs-source/docs/items.md +0 -13
  108. package/docs-source/docs/pages.md +0 -141
  109. package/docs-source/docs/settings.md +0 -4
  110. package/docs-source/docs/styling.md +0 -34
  111. package/docs-source/docs/taxonomies.md +0 -37
  112. package/docs-source/features/cards.md +0 -7
  113. package/docs-source/features/editing.md +0 -7
  114. package/docs-source/features/emoji.md +0 -7
  115. package/docs-source/features/frontmatter.md +0 -7
  116. package/docs-source/features/lists.md +0 -7
  117. package/docs-source/features/navigation.md +0 -7
  118. package/docs-source/features/rich-previews.md +0 -7
  119. package/docs-source/features/robots.md +0 -7
  120. package/docs-source/features/rss.md +0 -7
  121. package/docs-source/features/sitemap.md +0 -7
  122. package/docs-source/features/speed.md +0 -7
  123. package/docs-source/features/static.md +0 -7
  124. package/docs-source/features/taxonomies.md +0 -7
  125. package/docs-source/home.md +0 -42
  126. package/docs-source/output/about.html +0 -1
  127. package/docs-source/output/blog/url-ui.html +0 -8
  128. package/docs-source/output/blog.html +0 -1
  129. package/docs-source/output/default.css +0 -1
  130. package/docs-source/output/docs/deploy.html +0 -34
  131. package/docs-source/output/docs/file-structure.html +0 -24
  132. package/docs-source/output/docs/folder-settings.html +0 -20
  133. package/docs-source/output/docs/images.html +0 -2
  134. package/docs-source/output/docs/items.html +0 -6
  135. package/docs-source/output/docs/pages.html +0 -101
  136. package/docs-source/output/docs/styling.html +0 -18
  137. package/docs-source/output/docs/taxonomies.html +0 -20
  138. package/docs-source/output/docs.html +0 -28
  139. package/docs-source/output/features/cards.html +0 -1
  140. package/docs-source/output/features/editing.html +0 -1
  141. package/docs-source/output/features/emoji.html +0 -1
  142. package/docs-source/output/features/frontmatter.html +0 -1
  143. package/docs-source/output/features/lists.html +0 -1
  144. package/docs-source/output/features/navigation.html +0 -1
  145. package/docs-source/output/features/rich-previews.html +0 -1
  146. package/docs-source/output/features/robots.html +0 -1
  147. package/docs-source/output/features/rss.html +0 -1
  148. package/docs-source/output/features/sitemap.html +0 -1
  149. package/docs-source/output/features/speed.html +0 -1
  150. package/docs-source/output/features/static.html +0 -1
  151. package/docs-source/output/features/taxonomies.html +0 -1
  152. package/docs-source/output/features.html +0 -1
  153. package/docs-source/output/feed.xml +0 -1
  154. package/docs-source/output/index.html +0 -21
  155. package/docs-source/output/reset.css +0 -1
  156. package/docs-source/output/roadmap.html +0 -87
  157. package/docs-source/output/robots.txt +0 -14
  158. package/docs-source/output/sitemap.xml +0 -16
  159. package/docs-source/output/typography.css +0 -1
  160. package/docs-source/roadmap.md +0 -98
  161. package/docs-source/settings.md +0 -13
  162. package/getMetadata.js +0 -41
  163. package/jsconfig.json +0 -10
  164. package/plugins/markdown/robots.js +0 -18
  165. package/regex.js +0 -36
  166. package/stylesheets/brand-colors.css +0 -119
@@ -1,73 +0,0 @@
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 -->
@@ -1,7 +0,0 @@
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.
@@ -1,9 +0,0 @@
1
- {
2
- "https://www.nngroup.com/articles/url-as-ui/": {
3
- "url": "https://www.nngroup.com/articles/url-as-ui/",
4
- "canonical": "https://www.nngroup.com/articles/url-as-ui/",
5
- "title": "URL as UI",
6
- "image": "",
7
- "description": "Users continue to type and guess URLs and domain names, so Web usability can be improved by better URLs. In the long term this machine-level addressing scheme must be hidden."
8
- }
9
- }
@@ -1,3 +0,0 @@
1
- {
2
- "promptDelete": false
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "accentColor": ""
3
- }
@@ -1,30 +0,0 @@
1
- {
2
- "file-explorer": true,
3
- "global-search": true,
4
- "switcher": true,
5
- "graph": true,
6
- "backlink": true,
7
- "canvas": true,
8
- "outgoing-link": true,
9
- "tag-pane": true,
10
- "properties": false,
11
- "page-preview": true,
12
- "daily-notes": true,
13
- "templates": true,
14
- "note-composer": true,
15
- "command-palette": true,
16
- "slash-command": false,
17
- "editor-status": true,
18
- "bookmarks": true,
19
- "markdown-importer": false,
20
- "zk-prefixer": false,
21
- "random-note": false,
22
- "outline": true,
23
- "word-count": true,
24
- "slides": false,
25
- "audio-recorder": false,
26
- "workspaces": false,
27
- "file-recovery": true,
28
- "publish": false,
29
- "sync": false
30
- }
@@ -1,20 +0,0 @@
1
- [
2
- "file-explorer",
3
- "global-search",
4
- "switcher",
5
- "graph",
6
- "backlink",
7
- "canvas",
8
- "outgoing-link",
9
- "tag-pane",
10
- "page-preview",
11
- "daily-notes",
12
- "templates",
13
- "note-composer",
14
- "command-palette",
15
- "editor-status",
16
- "bookmarks",
17
- "outline",
18
- "word-count",
19
- "file-recovery"
20
- ]
@@ -1,168 +0,0 @@
1
- {
2
- "main": {
3
- "id": "966664a33c0f9428",
4
- "type": "split",
5
- "children": [
6
- {
7
- "id": "6f272e6d83175a0e",
8
- "type": "tabs",
9
- "children": [
10
- {
11
- "id": "6d5fa6e59ac0d3e8",
12
- "type": "leaf",
13
- "state": {
14
- "type": "markdown",
15
- "state": {
16
- "file": "home.md",
17
- "mode": "source",
18
- "source": false
19
- }
20
- }
21
- }
22
- ]
23
- }
24
- ],
25
- "direction": "vertical"
26
- },
27
- "left": {
28
- "id": "18e0bc63ac82562e",
29
- "type": "split",
30
- "children": [
31
- {
32
- "id": "9cc6c8640bf83790",
33
- "type": "tabs",
34
- "children": [
35
- {
36
- "id": "08551dcebb684ee5",
37
- "type": "leaf",
38
- "state": {
39
- "type": "file-explorer",
40
- "state": {
41
- "sortOrder": "alphabetical"
42
- }
43
- }
44
- },
45
- {
46
- "id": "39b7b22b2e81f451",
47
- "type": "leaf",
48
- "state": {
49
- "type": "search",
50
- "state": {
51
- "query": "",
52
- "matchingCase": false,
53
- "explainSearch": false,
54
- "collapseAll": false,
55
- "extraContext": false,
56
- "sortOrder": "alphabetical"
57
- }
58
- }
59
- },
60
- {
61
- "id": "48ac4934e3c350a8",
62
- "type": "leaf",
63
- "state": {
64
- "type": "bookmarks",
65
- "state": {}
66
- }
67
- }
68
- ]
69
- }
70
- ],
71
- "direction": "horizontal",
72
- "width": 300
73
- },
74
- "right": {
75
- "id": "c120d9bbbfa46883",
76
- "type": "split",
77
- "children": [
78
- {
79
- "id": "d7378259eead963a",
80
- "type": "tabs",
81
- "children": [
82
- {
83
- "id": "3c5acbb57e9b2ecc",
84
- "type": "leaf",
85
- "state": {
86
- "type": "backlink",
87
- "state": {
88
- "file": "home.md",
89
- "collapseAll": false,
90
- "extraContext": false,
91
- "sortOrder": "alphabetical",
92
- "showSearch": false,
93
- "searchQuery": "",
94
- "backlinkCollapsed": false,
95
- "unlinkedCollapsed": true
96
- }
97
- }
98
- },
99
- {
100
- "id": "dbc00eb5b912c400",
101
- "type": "leaf",
102
- "state": {
103
- "type": "outgoing-link",
104
- "state": {
105
- "file": "home.md",
106
- "linksCollapsed": false,
107
- "unlinkedCollapsed": true
108
- }
109
- }
110
- },
111
- {
112
- "id": "192b432a0da5e507",
113
- "type": "leaf",
114
- "state": {
115
- "type": "tag",
116
- "state": {
117
- "sortOrder": "frequency",
118
- "useHierarchy": true
119
- }
120
- }
121
- },
122
- {
123
- "id": "7d5f5d40b932706c",
124
- "type": "leaf",
125
- "state": {
126
- "type": "outline",
127
- "state": {
128
- "file": "home.md"
129
- }
130
- }
131
- }
132
- ]
133
- }
134
- ],
135
- "direction": "horizontal",
136
- "width": 300,
137
- "collapsed": true
138
- },
139
- "left-ribbon": {
140
- "hiddenItems": {
141
- "switcher:Open quick switcher": false,
142
- "graph:Open graph view": false,
143
- "canvas:Create new canvas": false,
144
- "daily-notes:Open today's daily note": false,
145
- "templates:Insert template": false,
146
- "command-palette:Open command palette": false
147
- }
148
- },
149
- "active": "6d5fa6e59ac0d3e8",
150
- "lastOpenFiles": [
151
- "clouds.jpg",
152
- "home.md",
153
- "blog/travel/home.md",
154
- "blog/hello-world.md",
155
- "blog/cooking/home.md",
156
- "blog/economics/home.md",
157
- "blog/economics/smith.md",
158
- "blog/economics/keynes.md",
159
- "blog/home.md",
160
- "blog/cooking/soup.md",
161
- "blog/cooking/settings.md",
162
- "blog/cooking/pancakes.md",
163
- "blog/economics",
164
- "blog/Untitled.md",
165
- "about.md",
166
- "settings.md"
167
- ]
168
- }
@@ -1,3 +0,0 @@
1
- {
2
- "startCommand": "npx -y -p svelte@next -p vowel@latest npx vowel"
3
- }
Binary file
@@ -1,3 +0,0 @@
1
- # About
2
-
3
- This is an about page.
@@ -1,5 +0,0 @@
1
- # Blog
2
-
3
- Here's a blog.
4
-
5
- /blog?count=100&content=false
@@ -1,21 +0,0 @@
1
- ---
2
- link: https://www.nngroup.com/articles/url-as-ui/
3
- breadcrumb: URL Design
4
- ---
5
-
6
- June 27, 2024
7
-
8
- ![some things](./dog.jpeg)
9
-
10
- # Long Live the URL
11
-
12
- This article from 1999 about how to write good URLs is awesome. Some tips:
13
-
14
- - Write in lowercase
15
- - Check for typos
16
- - URLs should be permanent
17
- - Keep URLs short
18
-
19
- But Nielsen's overall view is that URLs are an important part of user experience. They contribute to a website visitor's sense of trust and geography. One of Neilsen's rules dictates that a user should be able to "hack" of the last segment of a URL to get to the parent page.
20
-
21
- Ironically, in 1999 Nielsen thought that URLs and search engines would soon fade into obscurity as better solutions to information management emerged. Lo, 25 years later the URL remains more important than ever. Sometimes the simple solutions is the best one.
@@ -1,5 +0,0 @@
1
- # Blog
2
-
3
- Here's a blog.
4
-
5
- /blog/**
Binary file
@@ -1,67 +0,0 @@
1
- ---
2
- title: Deploy
3
- description: Get going.
4
- ---
5
-
6
- See the [quickstart](/docs/quickstart) for instructions on how to use npm.
7
-
8
- **Note on URLs:** This guide includes instructions for Vercel, which specify a deploy option called `cleanUrls`. This will trim the `.html` extension from your deployment URLs. If you configure your own deploy, ensure you use clean URLs or your links will not work.
9
-
10
- # GitHub
11
-
12
- If you have a GitHub repository of Markdown files, you can deploy them on Vercel automatically on changes.
13
-
14
- Add a `vercel.json` file to the root of your project with the following contents:
15
-
16
- ```js
17
- {
18
- "cleanUrls": true,
19
- "outputDirectory": ".output",
20
- "buildCommand": "npx -p svelte@next -p vowel@latest npx vowel build"
21
- }
22
- ```
23
-
24
- Then create a new Vercel project and connect your GitHub repository.
25
-
26
- When you push changes to your repository, your Vercel project will automatically rebuild.
27
-
28
- # npx
29
-
30
- You can manually build your project with `npx`. Run this command:
31
-
32
- ```
33
- npx -y -p svelte@next -p vowel@latest npx vowel build
34
- ```
35
-
36
- The build command will create a `vercel.json` file at the root of your project with the necessary configuration for a Vercel deploy. Now deploy to Vercel:
37
-
38
- ```
39
- npx vercel --prod
40
- ```
41
-
42
- (The `--prod` flag will deploy to production.)
43
-
44
- If you don't want to use the Vercel CLI, you can deploy the `.output` directory to any server that supports static HTML.
45
-
46
- # npm
47
-
48
- If you set up your project with npm, you can include a `build` command in your `package.json`:
49
-
50
- ```diff
51
- "scripts": {
52
- "dev": "vowel",
53
- + "build": "vowel build"
54
- },
55
- ```
56
-
57
- Run `npm run build` (`vowel build`) to build your website.
58
-
59
- Now you can deploy to Vercel:
60
-
61
- ```
62
- npx vercel --prod
63
- ```
64
-
65
- (The `--prod` flag will deploy to production.)
66
-
67
- If you don't want to use the Vercel CLI, you can deploy the `.output` directory to any server that supports static HTML.
@@ -1,31 +0,0 @@
1
- ---
2
- title: File structure
3
- breadcrumb: Files
4
- description: Organize your files.
5
- ---
6
-
7
- Your website is made of folders and markdown files. Every folder should have a `home.md` file. Every folder can also have a `settings.md` file to apply folder-level settings, such as the `breadcrumb`.
8
-
9
- Almost every file and folder represents a page on your website:
10
-
11
- - `home.md` is your homepage, `/`
12
- - `about.md` would be your about page, `/about`
13
- - `blog/home.md` would be your blog homepage, `/blog`
14
- - `blog/hello-world.md` would be a blog post, `/blog/hello-world`
15
-
16
- (File names like `Hello World.md` also seem to work fine so far.))
17
-
18
- Even if a folder doesn't have a `home.md` file, it will still generate a page, so long as it contains any markdown files. So, if you have a `blog` folder with posts inside it, Vowel will generate a `/blog` homepage even if you don't have a `/blog/home.md` file.
19
-
20
- There are a few special files and folders:
21
-
22
- - `assets/` contains some static files
23
- - `assets/styles.css` contains your stylesheet, which will be automatically applied if present
24
- - `assets/favicon.png` is your favicon
25
- - `templates/` is a commonly-used directory in Obsidian projects, so it will be ignored
26
- - A `settings.md` file will not generate a page. If you want a page called `settings`, you can create a `/settings/home.md` file.
27
- - `.cache.json`
28
- - `.output/`
29
- - `vercel.json`
30
-
31
- Any files prefixed with a period will be ignored, as will any files that are not markdown.
@@ -1,23 +0,0 @@
1
- ---
2
- title: Folder settings
3
- breadcrumb: Folders
4
- description: Configure your project.
5
- ---
6
-
7
- Every folder should have a `settings.md` file with one property:
8
-
9
- - `breadcrumb`: A navigation label
10
-
11
- At the root of the project, there should be a global settings file with the `breadcrumb` property and any of the following properties:
12
-
13
- - All folder settings, plus
14
- - `title`: Website title
15
- - `robots`
16
- - `google`: Allow Google Search indexing (`true`/`false`)
17
- - `google_images`: Allow Google Image indexing (`true`/`false`)
18
- - `ai`: Allow AI training (`true`/`false`)
19
- - `domain`: Full root URL for the website domain (e.g. `https://example.com`)
20
- - `author`: Website author credit for RSS and copyright
21
- - `icon`: An emoji to use as the site favicon
22
- - `slogan`: The website slogan
23
- - `logo`: The website logo
@@ -1,55 +0,0 @@
1
- ---
2
- title: Documentation
3
- description: Learn how to use Vowel.
4
- ---
5
-
6
- Let's get started.
7
-
8
-
9
- ## npx
10
-
11
- npx is the easiest way to use vowel:
12
-
13
- ```
14
- npx -y -p svelte@next -p vowel@latest npx vowel
15
- ```
16
-
17
- Vowel will attempt to generate a website based on the contents of your file.
18
-
19
- ## npm
20
-
21
- Create a directory. Then, open that directory and run these commands in your terminal:
22
-
23
- ```bash
24
- npm init --y && npm i vowel svelte@next
25
- ```
26
-
27
- Edit your `package.json` to add these `scripts`:
28
-
29
- ```json
30
- {
31
- "dev": "vowel",
32
- "build": "vowel build"
33
- }
34
- ```
35
-
36
- Now run `npm run dev`.
37
-
38
- ## Starter files
39
-
40
- Create `home.md` and enter some basic information
41
-
42
- ```md
43
- # Your website
44
-
45
- Lorem ipsum...
46
- ```
47
-
48
- Create `settings.md` and enter some basic information in the frontmatter:
49
-
50
- ```
51
- ---
52
- breadcrumb: Home
53
- domain: https://example.com
54
- ---
55
- ```
@@ -1,10 +0,0 @@
1
- ---
2
- title: Images
3
- description: How to host images.
4
- ---
5
-
6
- You can put images in the `assets` folder, but this is discouraged, as it could result in a large bandwidth bill from your hosting provider.
7
-
8
- We recommend hosting images elsewhere.
9
-
10
- Images hosted on imgix will automatically be optimized, compressed, and formatted.
@@ -1,13 +0,0 @@
1
- # Items
2
-
3
- With Vowel, you can create reusable pieces of content and embed them throughout your website.
4
-
5
- To create one, prefix a file or folder with a `$`, such as `$faqs`. The file or folder will not produce a page, but the content can be displayed on other pages, like so:
6
-
7
- ```md
8
- Here are answers to common questions:
9
-
10
- /$faqs?count=10
11
- ```
12
-
13
- This also allows richer content, as the item will be displayed with frontmatter.