Closed Eason-YC-Huang closed 1 year ago
@Eason-YC-Huang
Open wikit configuration directory, remove the static/
cache directory and restart wikit to see if the problem disappeared.
If the method above does not work, one possible reason is that your mdx file does not contain any css file and the css file is provided in another file such as LDOCE5.css
. If you are in this case, you can first convert mdx into text (./wikit dict -c -o LDOCE5.txt LDOCE5.mdx
) and create wikit dictionary from this text and its css file. See here for detail instructions.
If you are sure that your mdx contains css style, you can join QQ group 546132895 or email with me your mdx file, and then I will try to figure out what happens.
Since there is not active on this thread, I'll close this issue if someday you can provide me more information to reproduce the issue, you can reopen again.
It didn't work for me either. Somehow wikit did not respect [css] and [js] fields in the .toml config alongside a .wikit file. After I manually copy the contents .css and .js files into those counterpart .js & .css files in the static/ cache directory, the css and js files started to work.
Not sure this is the same case as yours, but hope it helps.
The css & js files in static/ shall not be empty.
@Congee Hi, can you give me a minimal example to reproduce the problem?
It seems like wikit only recognize the wikit format dictionary. So I had to convert my mdx file to wikit file using this command
./wikit dict --create -o ./LDOCE5.wikit LDOCE5.mdx
and loaded it into wikit desktop. But in the end, I found that the style is quite different between the Eudict and the Wikit Desktop. Did i do something wrong ?