這是本文件的舊版!
緣起:
簡單的輸入語法
popup 內使用一般
DW markup 而非
HTML
從 getElementById
變為 getElementByClassName
?
20200321 準備開始。
20200322 把最基本的 CSS + JS 做成 pseudo-plugin,
搭配類似像這裡面的 HTML 標記碼(而非 DokuWiki 自身語法)
<html ><div class = "popup" onclick = "myFunction()" > Click me!
<span class = "popuptext" id = "myPopup" > Popup text...</ span >
</ div >
</ html >
→ 最粗略的 v0.1 Release Original basic method, working · GJRobert/dokuwiki-plugin-popup
然後開始實做 syntax:拿 plugin:ruby 的 syntax.php 來改,目前想先用 [按鈕]^^泡泡內容^^
這樣的語法。
20200323 這個 commit 初步成功 ,但有多個要修改的問題,而且目前想用的語法似乎會和連結語法 [[...]]
衝突,可能需要改。
插曲:一次自動新增多個 GitHub issue
找到 Ricky54326/Github-Auto-Issue-Creator: An automatic issue creator for Github, written in Python. It'll go through your entire git repo, look for any lines that start with TODO: and add them as issues to your repo.
下載來用,卻看到
Traceback ( most recent call last) :
File "./autoissue.py" , line 207 , in < module>
main( )
File "./autoissue.py" , line 170 , in main
from github import createIssues
File "/Volumes/SD/tmp/Github-Auto-Issue-Creator-master/github.py" , line 1 , in < module>
import requests
ImportError : No module named requests
少了 Python requests
模組,變成還得再想辦法安裝
執行了 $ which -a python python2 python2.7 python3 python3.6
2) ,發現我有:
/usr/bin/python
/usr/bin/python2.7
/usr/local/bin/python3
3 份 Python
這裡 有人建議不要在 macOS 隨附的 Python 中安裝 requests 模組,而且 macOS 的 Python 2.7.10 很誇張,沒有 pip,也沒有 easty_install ∴我決定改用 Python 3↓
$ pip3 install requests
但接下來 Python 3 執行那個腳本,卻又語法錯誤
$ python3 ./autoissue.py -i -p /Volumes/SD/Dropbox/projects/dokuwiki-plugin-popup/ -s 'FIXME'
File "./autoissue.py" , line 37
except IOError as ( eno, strerror) :
^
SyntaxError : invalid syntax
所幸有 Python3 的腳本:Ricky54326/Github-Auto-Issue-Creator at python3
→ 執行了卻找不到任何 issue
↑放棄上面的腳本,結果透過 Zapier,順利把記錄在 Google Spreadsheet 上的 issue,自動加到 GitHub 去了。還是要靠專業的來啊!🆗🔚
3/23 晚上,改成了 [^按鈕文字^]^^泡泡內容^^
然後又改用 [^按鈕文字^](^泡泡內容^)
,暫時可能會先用這個,再來可能要先處理別的問題了 ☞ Issues · GJRobert/dokuwiki-plugin-popup ,我可能要想辦法做個表把這些 issue 排個優先順序
討論區