Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
09b856488b | ||
![]() |
9218a83d41 | ||
![]() |
a896244367 | ||
![]() |
ec83de9978 |
@@ -18,9 +18,9 @@ copyright = '2021 Soren Bjornstad'
|
|||||||
author = 'Soren Bjornstad'
|
author = 'Soren Bjornstad'
|
||||||
|
|
||||||
# The short X.Y version
|
# The short X.Y version
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
release = "0.1.1"
|
release = "0.1.2"
|
||||||
|
|
||||||
|
|
||||||
# -- General configuration ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
|
@@ -1206,13 +1206,13 @@ github: https://github.com/sobjornstad/zettelkasten-sib</pre>
|
|||||||
<pre>hide</pre>
|
<pre>hide</pre>
|
||||||
</div>
|
</div>
|
||||||
<div created="20200913200724872" modified="20201120173215063" title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permalink" type="text/vnd.tiddlywiki">
|
<div created="20200913200724872" modified="20201120173215063" title="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permalink" type="text/vnd.tiddlywiki">
|
||||||
<pre>hide</pre>
|
<pre>show</pre>
|
||||||
</div>
|
</div>
|
||||||
<div created="20200404141629548" creator="soren" modified="20200404141630712" modifier="soren" title="$:/config/ViewToolbarButtons/Visibility/$:/plugins/bimlas/locator/viewtemplate/open-in-sidebar" type="text/vnd.tiddlywiki">
|
<div created="20200404141629548" creator="soren" modified="20200404141630712" modifier="soren" title="$:/config/ViewToolbarButtons/Visibility/$:/plugins/bimlas/locator/viewtemplate/open-in-sidebar" type="text/vnd.tiddlywiki">
|
||||||
<pre>hide</pre>
|
<pre>hide</pre>
|
||||||
</div>
|
</div>
|
||||||
<div created="20210525001044166" modified="20210525000849030" title="$:/config/ViewToolbarButtons/Visibility/$:/sib/Buttons/CopyPublicZettelkastenLink" type="text/vnd.tiddlywiki">
|
<div created="20210525001044166" creator="soren" modified="20210922125743198" modifier="soren" title="$:/config/ViewToolbarButtons/Visibility/$:/sib/Buttons/CopyPublicZettelkastenLink" type="text/vnd.tiddlywiki">
|
||||||
<pre>show</pre>
|
<pre>hide</pre>
|
||||||
</div>
|
</div>
|
||||||
<div created="20210525001045047" modified="20210525000850061" title="$:/config/ViewToolbarButtons/Visibility/$:/sib/Buttons/CopyTitleReference" type="text/vnd.tiddlywiki">
|
<div created="20210525001045047" modified="20210525000850061" title="$:/config/ViewToolbarButtons/Visibility/$:/sib/Buttons/CopyTitleReference" type="text/vnd.tiddlywiki">
|
||||||
<pre>show</pre>
|
<pre>show</pre>
|
||||||
@@ -16043,22 +16043,38 @@ Info: CoreVersion parameter is needed for TiddlyWiki only!
|
|||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</div>
|
</div>
|
||||||
<div caption="Copy public Zettelkasten link" created="20201120172611922" creator="soren" description="Copy a link to this tiddler in the public Zettelkasten" list-after="$:/core/ui/Buttons/info" modified="20210825162715432" modifier="soren" tags="$:/tags/ViewToolbar" title="$:/sib/Buttons/CopyPublicZettelkastenLink" type="text/vnd.tiddlywiki">
|
<div caption="copy public link" created="20201120172611922" creator="soren" description="Copy a link to this tiddler in the public Zettelkasten" list-after="$:/core/ui/Buttons/info" modified="20210922125543768" modifier="soren" tags="$:/tags/ViewToolbar" title="$:/sib/Buttons/CopyPublicZettelkastenLink" type="text/vnd.tiddlywiki">
|
||||||
<pre>\whitespace trim
|
<pre>\whitespace trim
|
||||||
\define copier()
|
\define copier()
|
||||||
https://zettelkasten.sorenbjornstad.com/#$(tidTitle)$
|
https://zettelkasten.sorenbjornstad.com/#$(tidTitle)$
|
||||||
\end
|
\end
|
||||||
|
|
||||||
<$set name="tidTitle" value={{!!title}}>
|
<$set name="tidTitle" value={{!!title}}>
|
||||||
<$button message="tm-copy-to-clipboard" param=<<copier>> tooltip={{!!caption}} class=<<tv-config-toolbar-class>>>
|
<$button message="tm-copy-to-clipboard" param=<<copier>> tooltip={{$:/sib/Buttons/CopyPublicZettelkastenLink!!caption}} class=<<tv-config-toolbar-class>>>
|
||||||
|
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
|
||||||
{{$:/core/images/permalink-button}}
|
{{$:/core/images/permalink-button}}
|
||||||
|
</$list>
|
||||||
|
<$list filter="[<tv-config-toolbar-text>match[yes]]">
|
||||||
|
<span class="tc-btn-text">
|
||||||
|
<$text text=" "/>
|
||||||
|
<$text text={{$:/sib/Buttons/CopyPublicZettelkastenLink!!caption}}/>
|
||||||
|
</span>
|
||||||
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
</$set></pre>
|
</$set></pre>
|
||||||
</div>
|
</div>
|
||||||
<div caption="Copy tiddler title" created="20200419143537510" creator="soren" description="Copy the name of this tiddler to the clipboard" list-after="$:/core/ui/Buttons/info" modified="20210825162721583" modifier="soren" tags="$:/tags/ViewToolbar" title="$:/sib/Buttons/CopyTitleReference" type="text/vnd.tiddlywiki">
|
<div caption="copy tiddler title" created="20200419143537510" creator="soren" description="Copy the name of this tiddler to the clipboard" list-after="$:/core/ui/Buttons/info" modified="20210922125723154" modifier="soren" tags="$:/tags/ViewToolbar" title="$:/sib/Buttons/CopyTitleReference" type="text/vnd.tiddlywiki">
|
||||||
<pre>\whitespace trim
|
<pre>\whitespace trim
|
||||||
<$button message="tm-copy-to-clipboard" param={{!!title}} tooltip={{!!caption}} class=<<tv-config-toolbar-class>>>
|
<$button message="tm-copy-to-clipboard" param={{!!title}} tooltip={{$:/sib/Buttons/CopyTitleReference!!caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<i class="far fa-copy" style="font-size:160%; position:relative; bottom:-4px; left:-1px;"/>
|
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
|
||||||
|
<i class="far fa-copy" style="font-size:160%; position:relative; bottom:-4px; left:-1px;"/>
|
||||||
|
</$list>
|
||||||
|
<$list filter="[<tv-config-toolbar-text>match[yes]]">
|
||||||
|
<span class="tc-btn-text">
|
||||||
|
<$text text=" "/>
|
||||||
|
<$text text={{$:/sib/Buttons/CopyTitleReference!!caption}}/>
|
||||||
|
</span>
|
||||||
|
</$list>
|
||||||
</$button></pre>
|
</$button></pre>
|
||||||
</div>
|
</div>
|
||||||
<div caption="Excise private chunk" condition="[<targetTiddler>type[]] [<targetTiddler>type[text/vnd.tiddlywiki]] +[first[]]" created="20210522034413324" description="Create a new private chunk from the selection" icon="$:/core/images/locked-padlock" list-after="$:/core/ui/EditorToolbar/excise" modified="20210522034828757" shortcuts="((excise-private-chunk))" tags="$:/tags/EditorToolbar" title="$:/sib/Buttons/excise-private-chunk" type="text/vnd.tiddlywiki">
|
<div caption="Excise private chunk" condition="[<targetTiddler>type[]] [<targetTiddler>type[text/vnd.tiddlywiki]] +[first[]]" created="20210522034413324" description="Create a new private chunk from the selection" icon="$:/core/images/locked-padlock" list-after="$:/core/ui/EditorToolbar/excise" modified="20210522034828757" shortcuts="((excise-private-chunk))" tags="$:/tags/EditorToolbar" title="$:/sib/Buttons/excise-private-chunk" type="text/vnd.tiddlywiki">
|
||||||
|
2
setup.py
2
setup.py
@@ -9,7 +9,7 @@ with open("README.md", "r") as fh:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="tzk",
|
name="tzk",
|
||||||
version="0.1.1",
|
version="0.1.2",
|
||||||
author="Soren I. Bjornstad",
|
author="Soren I. Bjornstad",
|
||||||
author_email="zettelkasten@sorenbjornstad.com",
|
author_email="zettelkasten@sorenbjornstad.com",
|
||||||
description="Build tool for TiddlyWiki Zettelkasten",
|
description="Build tool for TiddlyWiki Zettelkasten",
|
||||||
|
@@ -278,7 +278,8 @@ def compile_html_file(
|
|||||||
will be placed, relative to the private wiki's root directory.
|
will be placed, relative to the private wiki's root directory.
|
||||||
Default ``output/public_site``.
|
Default ``output/public_site``.
|
||||||
:param overwrite: If the ``output_folder`` already exists,
|
:param overwrite: If the ``output_folder`` already exists,
|
||||||
should we overwrite it? Default True.
|
should we overwrite any files in it with the same name?
|
||||||
|
Default True.
|
||||||
:param externalize_attachments: If True, update tiddlers that match
|
:param externalize_attachments: If True, update tiddlers that match
|
||||||
the ``attachment_filter`` parameter to point to
|
the ``attachment_filter`` parameter to point to
|
||||||
external versions of their content.
|
external versions of their content.
|
||||||
@@ -311,13 +312,10 @@ def compile_html_file(
|
|||||||
f"(To overwrite any files existing in the output folder, "
|
f"(To overwrite any files existing in the output folder, "
|
||||||
f"set overwrite = True for this builder.)")
|
f"set overwrite = True for this builder.)")
|
||||||
|
|
||||||
try:
|
|
||||||
shutil.rmtree(output_folder)
|
|
||||||
except FileNotFoundError:
|
|
||||||
pass
|
|
||||||
shutil.copytree(
|
shutil.copytree(
|
||||||
Path(build_state['public_wiki_folder']) / "output",
|
Path(build_state['public_wiki_folder']) / "output",
|
||||||
Path(output_folder),
|
Path(output_folder),
|
||||||
|
dirs_exist_ok=True
|
||||||
)
|
)
|
||||||
info(f"Successfully copied built output to {os.path.abspath(output_folder)}.")
|
info(f"Successfully copied built output to {os.path.abspath(output_folder)}.")
|
||||||
|
|
||||||
|
@@ -3,4 +3,4 @@ modified: 20201120173215063
|
|||||||
title: $:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permalink
|
title: $:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permalink
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
hide
|
show
|
@@ -1,6 +1,8 @@
|
|||||||
created: 20210525001044166
|
created: 20210525001044166
|
||||||
modified: 20210525000849030
|
creator: soren
|
||||||
|
modified: 20210922125743198
|
||||||
|
modifier: soren
|
||||||
title: $:/config/ViewToolbarButtons/Visibility/$:/sib/Buttons/CopyPublicZettelkastenLink
|
title: $:/config/ViewToolbarButtons/Visibility/$:/sib/Buttons/CopyPublicZettelkastenLink
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
show
|
hide
|
@@ -1,9 +1,9 @@
|
|||||||
caption: Copy public Zettelkasten link
|
caption: copy public link
|
||||||
created: 20201120172611922
|
created: 20201120172611922
|
||||||
creator: soren
|
creator: soren
|
||||||
description: Copy a link to this tiddler in the public Zettelkasten
|
description: Copy a link to this tiddler in the public Zettelkasten
|
||||||
list-after: $:/core/ui/Buttons/info
|
list-after: $:/core/ui/Buttons/info
|
||||||
modified: 20210825162715432
|
modified: 20210922125543768
|
||||||
modifier: soren
|
modifier: soren
|
||||||
tags: $:/tags/ViewToolbar
|
tags: $:/tags/ViewToolbar
|
||||||
title: $:/sib/Buttons/CopyPublicZettelkastenLink
|
title: $:/sib/Buttons/CopyPublicZettelkastenLink
|
||||||
@@ -15,7 +15,15 @@ type: text/vnd.tiddlywiki
|
|||||||
\end
|
\end
|
||||||
|
|
||||||
<$set name="tidTitle" value={{!!title}}>
|
<$set name="tidTitle" value={{!!title}}>
|
||||||
<$button message="tm-copy-to-clipboard" param=<<copier>> tooltip={{!!caption}} class=<<tv-config-toolbar-class>>>
|
<$button message="tm-copy-to-clipboard" param=<<copier>> tooltip={{$:/sib/Buttons/CopyPublicZettelkastenLink!!caption}} class=<<tv-config-toolbar-class>>>
|
||||||
|
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
|
||||||
{{$:/core/images/permalink-button}}
|
{{$:/core/images/permalink-button}}
|
||||||
|
</$list>
|
||||||
|
<$list filter="[<tv-config-toolbar-text>match[yes]]">
|
||||||
|
<span class="tc-btn-text">
|
||||||
|
<$text text=" "/>
|
||||||
|
<$text text={{$:/sib/Buttons/CopyPublicZettelkastenLink!!caption}}/>
|
||||||
|
</span>
|
||||||
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
</$set>
|
</$set>
|
@@ -1,15 +1,23 @@
|
|||||||
caption: Copy tiddler title
|
caption: copy tiddler title
|
||||||
created: 20200419143537510
|
created: 20200419143537510
|
||||||
creator: soren
|
creator: soren
|
||||||
description: Copy the name of this tiddler to the clipboard
|
description: Copy the name of this tiddler to the clipboard
|
||||||
list-after: $:/core/ui/Buttons/info
|
list-after: $:/core/ui/Buttons/info
|
||||||
modified: 20210825162721583
|
modified: 20210922125723154
|
||||||
modifier: soren
|
modifier: soren
|
||||||
tags: $:/tags/ViewToolbar
|
tags: $:/tags/ViewToolbar
|
||||||
title: $:/sib/Buttons/CopyTitleReference
|
title: $:/sib/Buttons/CopyTitleReference
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
<$button message="tm-copy-to-clipboard" param={{!!title}} tooltip={{!!caption}} class=<<tv-config-toolbar-class>>>
|
<$button message="tm-copy-to-clipboard" param={{!!title}} tooltip={{$:/sib/Buttons/CopyTitleReference!!caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<i class="far fa-copy" style="font-size:160%; position:relative; bottom:-4px; left:-1px;"/>
|
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
|
||||||
|
<i class="far fa-copy" style="font-size:160%; position:relative; bottom:-4px; left:-1px;"/>
|
||||||
|
</$list>
|
||||||
|
<$list filter="[<tv-config-toolbar-text>match[yes]]">
|
||||||
|
<span class="tc-btn-text">
|
||||||
|
<$text text=" "/>
|
||||||
|
<$text text={{$:/sib/Buttons/CopyTitleReference!!caption}}/>
|
||||||
|
</span>
|
||||||
|
</$list>
|
||||||
</$button>
|
</$button>
|
@@ -10,7 +10,7 @@ import sys
|
|||||||
from typing import Any, Callable, Dict, NoReturn
|
from typing import Any, Callable, Dict, NoReturn
|
||||||
|
|
||||||
|
|
||||||
TZK_VERSION = "0.1.1"
|
TZK_VERSION = "0.1.2"
|
||||||
|
|
||||||
|
|
||||||
class BuildError(Exception):
|
class BuildError(Exception):
|
||||||
|
Reference in New Issue
Block a user