Skip to content

Commit

Permalink
update github-external-image plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Zacharia2 committed Jul 5, 2023
1 parent a244060 commit 8ff7deb
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 60 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions plugins/github-external-image/plugin.info

This file was deleted.

16 changes: 16 additions & 0 deletions tiddlers/mConfigs/$__plugins_linonetwo_github-external-image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"author": "LinOnetwo",
"core-version": ">=5.1.22",
"dependents": "",
"description": "Use github as your image storage, add _canonical_uri to all image, pointing to raw.github",
"list": "readme ControlPanel/Settings",
"plugin-type": "plugin",
"text": "{\"tiddlers\":{\"$:/plugins/linonetwo/intention-tower-knowledge-graph/ControlPanel/Settings.css\":{\"title\":\"$:/plugins/linonetwo/intention-tower-knowledge-graph/ControlPanel/Settings.css\",\"text\":\".itkg-setting-tags-item input {\\n margin-left: 5px;\\n padding: 2px;\\n} \",\"tags\":\"$:/tags/Stylesheet\"},\"$:/plugins/linonetwo/github-external-image/ControlPanel/Settings\":{\"title\":\"$:/plugins/linonetwo/github-external-image/ControlPanel/Settings\",\"caption\":\"GithubPagesImage\",\"tags\":\"$:/tags/ControlPanel/SettingsTab\",\"text\":\"!!! [[Repo|$:/GitHub/Repo]]\\n\\nThis is the user name + / + repo name, e.g. `linonetwo/wiki`\\n\\n<$edit-text tiddler=\\\"$:/GitHub/Repo\\\" field=\\\"text\\\" tag=input class=\\\"w-100\\\" />\\n\\n!!! [[Branch|$:/GitHub/Branch]]\\n\\nThis usually is `master` or `main`\\n\\n<$edit-text tiddler=\\\"$:/GitHub/Branch\\\" field=\\\"text\\\" tag=input class=\\\"w-100\\\" />\\n\\n!!! [[tiddler-folder-name|$:/config/linonetwo/github-external-image/tiddler-folder-name]]\\n\\nThis usually is just `tiddlers`\\n\\n<$edit-text tiddler=\\\"$:/config/linonetwo/github-external-image/tiddler-folder-name\\\" field=\\\"text\\\" tag=input class=\\\"w-100\\\" />\"},\"$:/core/templates/canonical-uri-external-image\":{\"title\":\"$:/core/templates/canonical-uri-external-image\",\"created\":\"20200412025117549\",\"creator\":\"LinOnetwo\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<!--\\n\\nThis template is used to assign the ''_canonical_uri'' field to external images.\\n\\nChange the `./images/` part to a different base URI. The URI can be relative or absolute.\\n\\n-->\\nhttps://raw.githubusercontent.com/{{$:/GitHub/Repo}}/{{$:/GitHub/Branch}}/{{$:/config/linonetwo/github-external-image/tiddler-folder-name}}/<$view field=\\\"title\\\" format=\\\"urlencoded\\\"/>\"},\"$:/GitHub/Branch\":{\"title\":\"$:/GitHub/Branch\",\"text\":\"master\"},\"$:/config/linonetwo/github-external-image/tiddler-folder-name\":{\"title\":\"$:/config/linonetwo/github-external-image/tiddler-folder-name\",\"text\":\"tiddlers\"},\"$:/plugins/linonetwo/github-external-image/readme\":{\"title\":\"$:/plugins/linonetwo/github-external-image/readme\",\"creator\":\"LinOnetwo\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"!! Usage\\n\\nPlease fill in [[$:/GitHub/Repo]] and [[$:/config/linonetwo/github-external-image/tiddler-folder-name]] in settings to get started:\\n\\n[[Settings|$:/plugins/linonetwo/github-external-image/ControlPanel/Settings]]\\n\\nThen, on build, all images will be replaced by place holders.\\n\\nPlease use following build target:\\n\\n```json\\n\\\"externalimages\\\": [\\n \\\"--setfield\\\",\\n \\\"[is[binary]] [type[application/msword]]\\\",\\n \\\"_canonical_uri\\\",\\n \\\"$:/core/templates/canonical-uri-external-image\\\",\\n \\\"text/plain\\\",\\n \\\"--setfield\\\",\\n \\\"[is[binary]] [type[application/msword]]\\\",\\n \\\"text\\\",\\n \\\"$:/core/templates/canonical-uri-external-image\\\",\\n \\\"text/plain\\\",\\n \\\"--rendertiddler\\\",\\n \\\"$:/core/save/all\\\",\\n \\\"index.html\\\",\\n \\\"text/plain\\\"\\n],\\n```\\n\"}}}",
"title": "$:/plugins/linonetwo/github-external-image",
"type": "application/json",
"version": "0.1.0",
"Modern.TiddlyDev#SHA256-Hashed": "2cf4ce1c737b75662b44f8410e606dea90312442d42e9cb4f139e8d92b57eff5",
"name": "github-external-image"
}
]

0 comments on commit 8ff7deb

Please sign in to comment.