writr 1.9.11 → 2.0.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.
- package/README.md +76 -135
- package/bin/writr.mjs +8 -0
- package/dist/builder.d.ts +33 -0
- package/dist/builder.js +181 -0
- package/dist/console.d.ts +22 -0
- package/dist/console.js +120 -0
- package/dist/github.d.ts +22 -0
- package/dist/github.js +74 -0
- package/dist/helpers/markdown.d.ts +10 -0
- package/dist/helpers/markdown.js +24 -0
- package/dist/helpers.d.ts +7 -0
- package/dist/helpers.js +58 -0
- package/dist/options.d.ts +12 -0
- package/dist/options.js +47 -0
- package/dist/writr.d.ts +23 -0
- package/dist/writr.js +153 -0
- package/init/favicon.svg +1 -0
- package/init/logo.png +0 -0
- package/init/variables.css +30 -0
- package/init/writr.config.cjs +10 -0
- package/package.json +44 -66
- package/template/css/highlight/highlight.min.js +1433 -0
- package/template/css/highlight/styles/base16/dracula.min.css +7 -0
- package/template/css/home.css +307 -0
- package/template/css/index.css +919 -0
- package/template/includes/footer.hbs +10 -0
- package/template/includes/header.hbs +17 -0
- package/template/includes/landing/content.hbs +63 -0
- package/template/includes/landing/hero.hbs +3 -0
- package/template/includes/scripts.hbs +4 -0
- package/template/index.hbs +16 -0
- package/template/releases.hbs +45 -0
- package/bin/writr.js +0 -7
- package/init/article-complex.md +0 -40
- package/init/article-ejs.md +0 -40
- package/init/article-unpublished.md +0 -11
- package/init/article1-simple.md +0 -13
- package/init/article1.md +0 -11
- package/init/article2.md +0 -14
- package/init/big-content.md +0 -11
- package/init/config.json +0 -9
- package/init/images/Introducing Docula 1.png +0 -0
- package/init/images/Introducing Docula 2.jpeg +0 -0
- package/init/images/Introducing Docula 3.png +0 -0
- package/init/images/Introducing Docula 4.png +0 -0
- package/init/permalink-test.md +0 -13
- package/init/templates/index.hjs +0 -13
- package/init/templates/partials/header.hjs +0 -2
- package/init/templates/post.hjs +0 -19
- package/init/templates/post2.hjs +0 -17
- package/init/templates/post3.ejs +0 -7
- package/init/templates/tag.hjs +0 -9
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--font-family: 'Open Sans', sans-serif;
|
|
3
|
+
|
|
4
|
+
--color-primary: #322d3c;
|
|
5
|
+
--color-secondary: #8cdc00;
|
|
6
|
+
--color-secondary-dark: #8cdc00;
|
|
7
|
+
--color-text: #322d3c;
|
|
8
|
+
|
|
9
|
+
--background: #ffffff;
|
|
10
|
+
--home-background: #ffffff;
|
|
11
|
+
--header-background: #ffffff;
|
|
12
|
+
|
|
13
|
+
--sidebar-background: #ffffff;
|
|
14
|
+
--sidebar-text: #322d3c;
|
|
15
|
+
--sidebar-text-active: #7d7887;
|
|
16
|
+
|
|
17
|
+
--border: rgba(238,238,245,1);
|
|
18
|
+
|
|
19
|
+
--background-search-highlight: var(--color-secondary-dark);
|
|
20
|
+
--color-search-highlight: #ffffff;
|
|
21
|
+
--search-input-background: var(--header-background);
|
|
22
|
+
|
|
23
|
+
--code: rgba(238,238,245,1);
|
|
24
|
+
|
|
25
|
+
--pagefind-ui-text: var(--color-text) !important;
|
|
26
|
+
--pagefind-ui-font: var(--font-family) !important;
|
|
27
|
+
--pagefind-ui-background: var(--background) !important;
|
|
28
|
+
--pagefind-ui-border: var(--border) !important;
|
|
29
|
+
--pagefind-ui-scale: .9 !important;
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "writr",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Beautiful Website for Your Projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"repository": "https://github.com/jaredwray/writr.git",
|
|
9
9
|
"author": "Jared Wray <me@jaredwray.com>",
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=18.0.0"
|
|
12
|
+
},
|
|
10
13
|
"license": "MIT",
|
|
11
14
|
"keywords": [
|
|
12
15
|
"static-site-generator",
|
|
13
16
|
"static-site",
|
|
17
|
+
"open source",
|
|
14
18
|
"ssg",
|
|
15
19
|
"documentation",
|
|
16
20
|
"website",
|
|
17
|
-
"blog",
|
|
18
21
|
"templates",
|
|
19
22
|
"generator",
|
|
20
23
|
"framework",
|
|
@@ -25,78 +28,53 @@
|
|
|
25
28
|
"handlebars"
|
|
26
29
|
],
|
|
27
30
|
"scripts": {
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"test": "npm run clean-output && NODE_OPTIONS=--experimental-vm-modules jest --coverage --runInBand && npm run clean-output",
|
|
35
|
-
"test-output": "npm run compile && node ./bin/writr.js -p ./blog_example"
|
|
31
|
+
"clean": "rimraf ./dist ./coverage ./node_modules ./package-lock.json ./yarn.lock ./site/README.md",
|
|
32
|
+
"build": "rimraf ./dist && tsc",
|
|
33
|
+
"build-site": "rimraf ./site/README.md && node bin/writr.mjs build -s ./site -o ./dist/site-output",
|
|
34
|
+
"test": "xo --fix && vitest run --coverage",
|
|
35
|
+
"serve": "rimraf ./site/README.md && node bin/writr.mjs serve -s ./site -o ./dist/site-output",
|
|
36
|
+
"prepare": "yarn run build"
|
|
36
37
|
},
|
|
37
38
|
"bin": {
|
|
38
|
-
"writr": "./bin/writr.
|
|
39
|
+
"writr": "./bin/writr.mjs"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"
|
|
42
|
-
"axios": "^1.
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"commander": "^11.0.0",
|
|
46
|
-
"ecto": "^2.1.13",
|
|
42
|
+
"@markdoc/markdoc": "^0.4.0",
|
|
43
|
+
"axios": "^1.6.2",
|
|
44
|
+
"ecto": "^2.4.1",
|
|
45
|
+
"express": "^4.18.2",
|
|
47
46
|
"feed": "^4.2.2",
|
|
48
|
-
"fs-extra": "^11.
|
|
47
|
+
"fs-extra": "^11.2.0",
|
|
49
48
|
"gray-matter": "^4.0.3",
|
|
50
|
-
"
|
|
51
|
-
"keyv": "^4.5.
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"node-html-markdown": "^1.3.0",
|
|
55
|
-
"parse-json": "^7.0.0",
|
|
56
|
-
"striptags": "^3.2.0",
|
|
57
|
-
"winston": "^3.10.0"
|
|
49
|
+
"js-yaml": "^4.1.0",
|
|
50
|
+
"keyv": "^4.5.4",
|
|
51
|
+
"ts-node": "^10.9.2",
|
|
52
|
+
"update-notifier": "^7.0.0"
|
|
58
53
|
},
|
|
59
54
|
"devDependencies": {
|
|
60
|
-
"@types/
|
|
61
|
-
"@types/
|
|
62
|
-
"@types/
|
|
63
|
-
"@types/
|
|
64
|
-
"@types/
|
|
65
|
-
"@
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
55
|
+
"@types/express": "^4.17.21",
|
|
56
|
+
"@types/fs-extra": "^11.0.4",
|
|
57
|
+
"@types/js-yaml": "^4.0.9",
|
|
58
|
+
"@types/node": "^20.10.5",
|
|
59
|
+
"@types/update-notifier": "^6.0.8",
|
|
60
|
+
"@vitest/coverage-v8": "^1.1.0",
|
|
61
|
+
"rimraf": "^5.0.5",
|
|
62
|
+
"typescript": "^5.3.3",
|
|
63
|
+
"vitest": "^1.1.0",
|
|
64
|
+
"webpack": "^5.89.0",
|
|
65
|
+
"xo": "^0.56.0"
|
|
66
|
+
},
|
|
67
|
+
"xo": {
|
|
68
|
+
"ignores": [
|
|
69
|
+
"writr.config.*",
|
|
70
|
+
"vitest.config.mjs",
|
|
71
|
+
"bin/writr.js"
|
|
72
|
+
]
|
|
76
73
|
},
|
|
77
74
|
"files": [
|
|
78
75
|
"dist",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"moduleFileExtensions": [
|
|
84
|
-
"ts",
|
|
85
|
-
"js"
|
|
86
|
-
],
|
|
87
|
-
"transform": {
|
|
88
|
-
"^.+\\.[jt]sx?$": [
|
|
89
|
-
"ts-jest",
|
|
90
|
-
{
|
|
91
|
-
"useESM": true,
|
|
92
|
-
"tsconfig": "tsconfig.json"
|
|
93
|
-
}
|
|
94
|
-
]
|
|
95
|
-
},
|
|
96
|
-
"testMatch": [
|
|
97
|
-
"**/test/**/*.test.(ts)"
|
|
98
|
-
],
|
|
99
|
-
"resolver": "jest-ts-webcompat-resolver",
|
|
100
|
-
"testEnvironment": "node"
|
|
101
|
-
}
|
|
76
|
+
"init",
|
|
77
|
+
"template",
|
|
78
|
+
"bin"
|
|
79
|
+
]
|
|
102
80
|
}
|