starmark 1.0.1 → 1.0.3
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 +30 -0
- package/package.json +1 -1
- package/public/app.js +515 -14
- package/public/frontmatter-editor.js +223 -22
- package/public/frontmatter.js +35 -0
- package/public/media-browser.js +464 -0
- package/public/styles.css +142 -5
- package/public/tools/31-image.js +25 -446
- package/src/server.js +15 -6
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# starmark
|
|
2
|
+
|
|
3
|
+
*starmark* is a local web-based CMS for your [Astro](https://astro.build) site. It has been designed to work with [Asto Accelerator](https://astro.stevefenton.co.uk).
|
|
4
|
+
|
|
5
|
+
With *starmark* you get:
|
|
6
|
+
|
|
7
|
+
- File browser
|
|
8
|
+
- Markdown editing
|
|
9
|
+
- Frontmatter editing
|
|
10
|
+
- Media library and image insertion
|
|
11
|
+
|
|
12
|
+
Browse and edit markdown content in local Astro sites.
|
|
13
|
+
|
|
14
|
+
Starmark runs a small local web app that scans an Astro project for `.md` and `.mdx` files, lets you browse them in a file tree, and edit content in the browser.
|
|
15
|
+
|
|
16
|
+
## Running starmark
|
|
17
|
+
|
|
18
|
+
With a terminal open in your Astro site, simply run:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx starmark
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
You'll be given a local address for *starmark*, usually: [http://localhost:5748](http://localhost:5748).
|
|
25
|
+
|
|
26
|
+
Visit the URL and go edit. All the changes will be in your changes tab ready for review and commit.
|
|
27
|
+
|
|
28
|
+
## License
|
|
29
|
+
|
|
30
|
+
[CC-BY-NC-ND-4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/)
|