add markdeep styling for bookmarks

This commit is contained in:
James Feng Cao 2023-02-17 21:11:35 +08:00
parent 1ed0b0c7ca
commit cd12841352
9 changed files with 34 additions and 43 deletions

View file

@ -23,9 +23,8 @@
<guid>/en/bookmark/</guid>
<description>Wait for url from other devices
berify: reverse image search for video
Tips File handling and styling with home.css &amp;quot;home.css&amp;quot; styles bookmarks and search engines in the same folder or subfolders. The file is in html format instead of CSS, so it needs &amp;quot;&amp;lt;style&amp;gt;&amp;quot; tag for CSS.
Markdeep for markdown files under the folder &amp;quot;bookmark/md/&amp;quot; Install markdeep styling
Install link for markdown files
Tips File handling and styling with home.css &amp;quot;home.css&amp;quot; styles bookmarks, search engines in the same folder or subfolders (it styles the folders too). The file is in html format instead of CSS, so it needs &amp;quot;&amp;lt;style&amp;gt;&amp;quot; tag for CSS.
Install markdeep styling for markdown files under the folder &amp;quot;bookmark/md/&amp;quot;
Bookmarks with secrets (POST instead of GET) The search engine (&amp;quot;.</description>
</item>

View file

@ -51,10 +51,8 @@
<a href="https://berify.com">berify: reverse image search for video</a></p>
<h3 id="tips">Tips</h3>
<h4 id="file-handling-and-styling-with-homecss">File handling and styling with home.css</h4>
<p>&quot;home.css&quot; styles bookmarks and search engines in the same folder or subfolders. The file is in html format instead of CSS, so it needs &quot;&lt;style&gt;&quot; tag for CSS.</p>
<h5 id="markdeep-for-markdown-files-under-the-folder-bookmarkmd">Markdeep for markdown files under the folder &quot;bookmark/md/&quot;</h5>
<p><a href="i:0hbookmark/md/home.css:../searchurl/txt/markdeep.html">Install markdeep styling</a><br>
<a href="i:0gdefault.link::Markdowns:file:///data/data/info.torapp.uweb/files/bookmark/md/ {let as=document.getElementsByTagName('a');for(let i=as.length-1;i>=0;i--){let h=as[i].href;if(h.startsWith('file:')&&h.endsWith('.md'))as[i].href=h%2B'.search';}}%0A">Install link for markdown files</a></p>
<p>&quot;home.css&quot; styles bookmarks, search engines in the same folder or subfolders (it styles the folders too). The file is in html format instead of CSS, so it needs &quot;&lt;style&gt;&quot; tag for CSS.</p>
<p><a href="i:0hbookmark/md/home.css:../searchurl/txt/markdeep.html">Install markdeep styling for markdown files under the folder &quot;bookmark/md/&quot;</a></p>
<h3 id="bookmarks-with-secrets-post-instead-of-get">Bookmarks with secrets (POST instead of GET)</h3>
<p>The search engine (&quot;.search&quot;) file can be used as bookmarks with secret. Here is an example bookmark for webdav cloud storage (replace &quot;xxx&quot; with real user and password):<br>
box cloud:POST:type=webdav&amp;url=https://dav.box.com/dav&amp;username=xxx&amp;password=xxx:https://demo.filestash.app/login</p>

View file

@ -51,7 +51,7 @@
<p><a href="https://releases.pagure.org/uweb/">pagure</a></p>
<h4 id="main-featuresreadmeindexhtml"><a href="../readme/index.html">Main features</a></h4>
<h4 id="change-logs">Change logs</h4>
<p>974: <a href="../bookmark/index.html">Bookmarks</a> to support styling for markdown etc.<br>
<p>975: <a href="../bookmark/index.html">Bookmarks</a> to support styling for markdown etc.<br>
971: <a href="../links/index.html">multiple type profiles</a>: switch any data including website logins, user configurations orthogonally.<br>
968: multiple links support for single MENU/(New)Button/GESTURE definition.<br>
964: site source html preprocessing before rendering with user <a href="../sitejs/index.html">site extra html</a>.<br>

View file

@ -49,7 +49,8 @@
</ul>
<p>Click the following links to install commands with <a href="../index.html">uweb browser</a>. <b>Force exit and re-launch the app</b>, then long press the button with clock icon to popup the command menu.</p>
<p>Configuration file &quot;default.cmds&quot; examples:</p>
<p><a href="i:03Clear data::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete">Clear data::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete</a></p>
<p><a href="i:03Clear data::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' ! -name '*.cjar' -type f -delete">Clear data::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' ! -name '*.cjar' -type f -delete</a></p>
<p><a href="i:03Clear database::rm -rf /data/data/info.torapp.uweb/databases/*">Clear database::rm -rf /data/data/info.torapp.uweb/databases/*</a></p>
<p><a href="i:03Append query to autocomplete:uweb:cd /data/data/info.torapp.uweb/files;cat default.autoc query.log|toybox sort|toybox uniq -i>a.tmp;mv a.tmp default.autoc;>query.log;echo file:///data/data/info.torapp.uweb/files/default.autoc">Append query to autocomplete:uweb:cd /data/data/info.torapp.uweb/files;cat default.autoc query.log|toybox sort|toybox uniq -i&gt;a.tmp;mv a.tmp default.autoc;&gt;query.log;echo file:///data/data/info.torapp.uweb/files/default.autoc</a></p>
<p><a href="i:03Clear cache::toybox rm -rf /data/data/info.torapp.uweb/cache">Clear cache::toybox rm -rf /data/data/info.torapp.uweb/cache</a></p>
<p><a href="i:03Clear logcat::logcat -c">Clear logcat::logcat -c</a></p>
@ -91,6 +92,7 @@ Clipboard2QR needs libqrencode.</p>
<p><a href="i:0gdefault.cmds::mdme:text/html:echo %22<script src=https://fastly.jsdelivr.net/npm/mdme></script><textarea>%22;cat %25f%0A">mdme: Show local markdown file</a></p>
<p><a href="i:0gdefault.cmds::texme:text/html:echo %22<script src=https://fastly.jsdelivr.net/npm/texme></script><textarea>%22;cat %25f%0A">texme: Show local tex+markdown file</a></p>
<p><a href="i:0gdefault.cmds::markdeep:text/html:cat %25f;echo %22<style class=fallback>body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src=https://casual-effects.com/markdeep/latest/markdeep.min.js charset=utf-8></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility=visible)</script>%22%0A">markdeep: Show local markdown+tex+diagrams file</a></p>
<p>&lt;a href=&quot;i:0gdefault.cmds::markdeep slide:text/html:cat %25f;echo %22<link rel='stylesheet' href="https://casual-effects.com/markdeep/latest/slides.css?"><script>markdeepOptions={tocStyle:'none'}</script><script src=https://casual-effects.com/markdeep/latest/markdeep.min.js charset=utf-8></script>%22%0A&quot;&gt;markdeep slide: markdown+tex+diagrams</a></p>
<p><a href="i:0gdefault.cmds::remark slide:text/html:echo %22<script src=https://remarkjs.com/downloads/remark-latest.min.js></script><script>window.onload=function(){var slideshow=remark.create({navigation:{click:true,},});}</script><textarea id=%27source%27>class:middle%22;cat %25f%0A">remark slide: slide show for local markdown file</a></p>
<p><a href="i:0gdefault.cmds:https://cdn.jsdelivr.net/gh/torappinfo/uweb/en/searchurl/txt/cmds.cfg">Code editor, open url in clipboard etc.</a></p>
<h4 id="cmds-file-format">&quot;.cmds&quot; file format</h4>

View file

@ -84,7 +84,7 @@
&quot;query.autoc&quot;: home screen search autocomplete candidate strings.<br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/home5.html">home5.html</a>&quot;: user defined home screen. home6.mht(or .html or .search), home7.mht(or .html or .search) ... multiple home screen (pressing right arrow button to visit; home4.mht(or .html or .search), home3.mht(or .html or .search) ... (long pressing left arrow button to access).<br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/home5.search">home5.search</a>&quot;:<a href="../search/index.html">search engines</a><br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/home.css">home.css</a>&quot;: <span style="color:red">html</span> file for <a href="../searchurl/homescreen.html">home screen styling</a>, so the css code needs to be inside &quot;&lt;style&gt;&quot; elements.<br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/home.css">home.css</a>&quot;: <span style="color:red">html</span> file for <a href="../bookmark/index.html">folder/home screen/bookmark styling</a>, so the css code needs to be inside &quot;&lt;style&gt;&quot; elements. Each &quot;home.css&quot; file is responsible for the current folder and its subfolders.<br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/bookmark.html">bookmark.html</a>&quot;: bookmarks<br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/quickstart.html">quickstart.html</a>&quot;: <a href="../searchurl/quickstart.html">quick start</a><br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/colors.txt">colors.txt</a>&quot;: background colors<br>

View file

@ -23,9 +23,8 @@
<guid>/en/bookmark/</guid>
<description>Wait for url from other devices
berify: reverse image search for video
Tips File handling and styling with home.css &amp;quot;home.css&amp;quot; styles bookmarks and search engines in the same folder or subfolders. The file is in html format instead of CSS, so it needs &amp;quot;&amp;lt;style&amp;gt;&amp;quot; tag for CSS.
Markdeep for markdown files under the folder &amp;quot;bookmark/md/&amp;quot; Install markdeep styling
Install link for markdown files
Tips File handling and styling with home.css &amp;quot;home.css&amp;quot; styles bookmarks, search engines in the same folder or subfolders (it styles the folders too). The file is in html format instead of CSS, so it needs &amp;quot;&amp;lt;style&amp;gt;&amp;quot; tag for CSS.
Install markdeep styling for markdown files under the folder &amp;quot;bookmark/md/&amp;quot;
Bookmarks with secrets (POST instead of GET) The search engine (&amp;quot;.</description>
</item>
@ -108,7 +107,7 @@ github
sourceforge
powerfolder
pagure
Main features Change logs 974: Bookmarks to support styling for markdown etc.
Main features Change logs 975: Bookmarks to support styling for markdown etc.
971: multiple type profiles: switch any data including website logins, user configurations orthogonally.
968: multiple links support for single MENU/(New)Button/GESTURE definition.
964: site source html preprocessing before rendering with user site extra html.
@ -283,12 +282,11 @@ Yandex image:https://yandex.com/images/search?text=</description>
<guid>/en/cmds/</guid>
<description>Click the following links to install commands with uweb browser. Force exit and re-launch the app, then long press the button with clock icon to popup the command menu.
Configuration file &amp;quot;default.cmds&amp;quot; examples:
Clear data::toybox find /data/data/info.torapp.uweb/app_webview ! -name &#39;Cookies&#39; -type f -delete
Clear data::toybox find /data/data/info.torapp.uweb/app_webview ! -name &#39;Cookies&#39; ! -name &#39;*.cjar&#39; -type f -delete
Clear database::rm -rf /data/data/info.torapp.uweb/databases/*
Append query to autocomplete:uweb:cd /data/data/info.torapp.uweb/files;cat default.autoc query.log|toybox sort|toybox uniq -i&amp;gt;a.tmp;mv a.tmp default.autoc;&amp;gt;query.log;echo file:///data/data/info.torapp.uweb/files/default.autoc
Clear cache::toybox rm -rf /data/data/info.torapp.uweb/cache
Clear logcat::logcat -c
logcat.log::logcat -d &amp;gt; logcat.log
copy cookie:/clip:printf &#39;%c&#39;</description>
Clear logcat::logcat -c</description>
</item>
<item>

View file

@ -1,3 +1,15 @@
<script>window.markdeepOptions = {onload};</script>
<script src=https://casual-effects.com/markdeep/latest/markdeep.min.js? charset=utf-8></script>
<script>
if(location.href.endsWith('/')){
window.onload=function (){
let as=document.getElementsByTagName('a');for(let i=as.length-1;i>=0;i--){let h=as[i].href;if(h.startsWith('file:')&&h.endsWith('.md'))as[i].href=h+'.search';}
}
}else{
function loadJS(u){
let d=document;
let e=d.createElement('script');e.src=u;
d.head.appendChild(e);
}
window.markdeepOptions = {onload};
loadJS("https://casual-effects.com/markdeep/latest/markdeep.min.js?");
}
</script>

View file

@ -1,8 +1,3 @@
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
<script src="https://remarkjs.com/downloads/remark-latest.min.js">
</script>
<script type="text/javascript">
@ -18,15 +13,3 @@
<textarea id="source">
class: middle
# Title
- Introduction
- part 1
- level 3
- level 3 second line
- part 2
- Deep-dive
- ...
---
# Thanks

View file

@ -18,7 +18,7 @@ github
sourceforge
powerfolder
pagure
Main features Change logs 974: Bookmarks to support styling for markdown etc.
Main features Change logs 975: Bookmarks to support styling for markdown etc.
971: multiple type profiles: switch any data including website logins, user configurations orthogonally.
968: multiple links support for single MENU/(New)Button/GESTURE definition.
964: site source html preprocessing before rendering with user site extra html.
@ -116,12 +116,11 @@ Yandex image:https://yandex.com/images/search?text=</description>
<guid>/en/cmds/</guid>
<description>Click the following links to install commands with uweb browser. Force exit and re-launch the app, then long press the button with clock icon to popup the command menu.
Configuration file &amp;quot;default.cmds&amp;quot; examples:
Clear data::toybox find /data/data/info.torapp.uweb/app_webview ! -name &#39;Cookies&#39; -type f -delete
Clear data::toybox find /data/data/info.torapp.uweb/app_webview ! -name &#39;Cookies&#39; ! -name &#39;*.cjar&#39; -type f -delete
Clear database::rm -rf /data/data/info.torapp.uweb/databases/*
Append query to autocomplete:uweb:cd /data/data/info.torapp.uweb/files;cat default.autoc query.log|toybox sort|toybox uniq -i&amp;gt;a.tmp;mv a.tmp default.autoc;&amp;gt;query.log;echo file:///data/data/info.torapp.uweb/files/default.autoc
Clear cache::toybox rm -rf /data/data/info.torapp.uweb/cache
Clear logcat::logcat -c
logcat.log::logcat -d &amp;gt; logcat.log
copy cookie:/clip:printf &#39;%c&#39;</description>
Clear logcat::logcat -c</description>
</item>
<item>