@tomasvn/svgstore 3.1.4 → 3.1.5

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,33 @@
1
+ name: Deploy documentation to GitHub Pages
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ concurrency:
13
+ group: pages
14
+ cancel-in-progress: false
15
+
16
+ jobs:
17
+ deploy:
18
+ environment:
19
+ name: github-pages
20
+ url: ${{ steps.deployment.outputs.page_url }}
21
+ runs-on: ubuntu-latest
22
+ permissions:
23
+ pages: write
24
+ id-token: write
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ - uses: actions/configure-pages@v5
28
+ - uses: actions/upload-pages-artifact@v3
29
+ with:
30
+ path: docs
31
+ - name: Deploy to GitHub Pages
32
+ id: deployment
33
+ uses: actions/deploy-pages@v4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ # 3.1.5
4
+
5
+ - Deployed docs site
6
+
3
7
  # 3.1.4
4
8
 
5
9
  - Closes [#36][https://github.com/svgstore/svgstore/issues/36]
@@ -0,0 +1,76 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="description" content="Documentation and examples for svgstore, a tool for combining SVG files into a sprite.">
7
+ <title>svgstore documentation</title>
8
+ <style>
9
+ :root {
10
+ color-scheme: light;
11
+ font-family: system-ui, sans-serif;
12
+ color: #20232a;
13
+ background: #f7f8fa;
14
+ }
15
+ body {
16
+ box-sizing: border-box;
17
+ max-width: 760px;
18
+ margin: 0 auto;
19
+ padding: 4rem 1.5rem;
20
+ line-height: 1.6;
21
+ }
22
+ h1, h2 {
23
+ line-height: 1.2;
24
+ }
25
+ a {
26
+ color: #0969da;
27
+ }
28
+ code {
29
+ padding: 0.15rem 0.35rem;
30
+ border-radius: 4px;
31
+ background: #e9edf2;
32
+ }
33
+ pre {
34
+ overflow-x: auto;
35
+ padding: 1rem;
36
+ border-radius: 6px;
37
+ background: #20232a;
38
+ color: #f7f8fa;
39
+ }
40
+ pre code {
41
+ padding: 0;
42
+ background: none;
43
+ color: inherit;
44
+ }
45
+ nav {
46
+ display: flex;
47
+ flex-wrap: wrap;
48
+ gap: 1rem;
49
+ margin-top: 2rem;
50
+ }
51
+ </style>
52
+ </head>
53
+ <body>
54
+ <main>
55
+ <h1>svgstore</h1>
56
+ <p>Combine multiple SVG files into one sprite using <code>&lt;symbol&gt;</code> elements.</p>
57
+
58
+ <h2>Quick start</h2>
59
+ <p>Install the package and add SVG files to a sprite:</p>
60
+ <pre><code>npm install @tomasvn/svgstore</code></pre>
61
+ <pre><code>const svgstore = require('@tomasvn/svgstore');
62
+ const fs = require('fs');
63
+
64
+ const sprite = svgstore()
65
+ .add('icon', fs.readFileSync('./icon.svg', 'utf8'));
66
+
67
+ fs.writeFileSync('./sprite.svg', sprite);</code></pre>
68
+
69
+ <nav aria-label="Documentation links">
70
+ <a href="examples/">View the examples</a>
71
+ <a href="https://github.com/tomasvn/svgstore#api">API reference</a>
72
+ <a href="https://github.com/tomasvn/svgstore">GitHub repository</a>
73
+ </nav>
74
+ </main>
75
+ </body>
76
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomasvn/svgstore",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "Combines mulitple svg files into one.",
5
5
  "scripts": {
6
6
  "lint": "npx eslint --fix \"{src,test}/**/*.js\" && npx prettier --write \"{src,test}/**/*.js\"",
package/readme.md CHANGED
@@ -6,9 +6,14 @@ Combines multiple SVG files into one using `<symbol>` elements which you may [`<
6
6
 
7
7
  ## NOTE
8
8
 
9
- - This is only a fork of original work, it implements this [PR #33](https://github.com/svgstore/svgstore/pull/33) from original work
10
- - Adds linear gradient proccessing
11
- - **NOT MAINTAINED**
9
+ <blockquote>
10
+ <strong>NOTE:</strong> This is a fork of original work, released with patched fixes <br />
11
+ SEE: <a href="./CHANGELOG.md">Changelog</a>
12
+ </blockquote>
13
+
14
+ ## Documentation
15
+
16
+ Visit the [svgstore documentation site](https://tomasvn.github.io/svgstore/) for a quick start and examples.
12
17
 
13
18
  ## Install
14
19