joplin-plugin-hugo-content-validator 1.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
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Joplin Hugo Validator
|
|
2
|
+
|
|
3
|
+
After finding [this blog post from Jack Adler](https://jalder.dev/posts/joplin-to-hugo/) about maintaining his Hugo blog from inside Joplin, I knew that I wanted to give it a try. However, most of his posts are just text, which means that only the front matter needs to be correct. I frequently use lots of formatting in my own posts, so it was important to make sure that the content I'm sending to Hugo is as valid as I can make it without having access to the Hugo binary.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
The validator adds a button to your edit pane that runs the following checks:
|
|
8
|
+
|
|
9
|
+
- valid YAML / JSON / TOML front matter
|
|
10
|
+
- no H1 headings
|
|
11
|
+
- no headings greater than 6
|
|
12
|
+
- two newlines between header and content
|
|
13
|
+
- images must have alt text
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
If no issues are found, a quick toast message is shown:
|
|
18
|
+
|
|
19
|
+

|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "joplin-plugin-hugo-content-validator",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"dist": "webpack --env joplin-plugin-config=buildMain && webpack --env joplin-plugin-config=buildExtraScripts && webpack --env joplin-plugin-config=createArchive",
|
|
6
|
+
"prepare": "npm run dist",
|
|
7
|
+
"updateVersion": "webpack --env joplin-plugin-config=updateVersion",
|
|
8
|
+
"update": "npm install -g generator-joplin && yo joplin --node-package-manager npm --update --force"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"joplin-plugin"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
"publish"
|
|
16
|
+
],
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/node": "^18.7.13",
|
|
19
|
+
"chalk": "^4.1.0",
|
|
20
|
+
"copy-webpack-plugin": "^11.0.0",
|
|
21
|
+
"fs-extra": "^10.1.0",
|
|
22
|
+
"glob": "^8.0.3",
|
|
23
|
+
"tar": "^6.1.11",
|
|
24
|
+
"ts-loader": "^9.3.1",
|
|
25
|
+
"typescript": "^4.8.2",
|
|
26
|
+
"webpack": "^5.74.0",
|
|
27
|
+
"webpack-cli": "^4.10.0"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 1,
|
|
3
|
+
"id": "com.joekaufeld.joplinHugoValidator",
|
|
4
|
+
"app_min_version": "3.5",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"name": "Hugo Content Validator",
|
|
7
|
+
"description": "One-click validation to ensure the current note will build as content in Hugo, the markdown-powered static site generator.",
|
|
8
|
+
"author": "Joe Kaufeld",
|
|
9
|
+
"homepage_url": "",
|
|
10
|
+
"repository_url": "https://github.com/itsthejoker/joplin-hugo-validator",
|
|
11
|
+
"keywords": [],
|
|
12
|
+
"categories": [],
|
|
13
|
+
"screenshots": [],
|
|
14
|
+
"icons": {},
|
|
15
|
+
"promo_tile": {},
|
|
16
|
+
"_publish_hash": "sha256:4373514dc2caafa383edcb8418e2fd7a8d304cb0f05656500e37c1029ba0849c",
|
|
17
|
+
"_publish_commit": "main:228aba595d8e920b5e24f3810208909c9f5ec744"
|
|
18
|
+
}
|