sensestage / luapress_sections Goto Github PK
View Code? Open in Web Editor NEWA plugin to make sections with Luapress: https://github.com/Fizzadar/Luapress
A plugin to make sections with Luapress: https://github.com/Fizzadar/Luapress
Hi, thanks for creating this plugin. I don't expect any support on this after all these years, so don't sweat it. Here are some issues I came across trying to get it this to work. I have very limited lua skills but I tried my best:
I got stuck here:
/usr/bin/lua5.1: /usr/local/share/lua/5.1/luapress/util.lua:162: attempt to call a nil value
stack traceback:
/usr/local/share/lua/5.1/luapress/util.lua:162: in function '_process_plugins'
/usr/local/share/lua/5.1/luapress/util.lua:223: in function '_process_content'
/usr/local/share/lua/5.1/luapress/util.lua:312: in function 'load_markdowns'
/usr/local/share/lua/5.1/luapress.lua:216: in function 'build'
...lib/luarocks/rocks-5.1/luapress/4.1.2-0/bin/luapress:210: in function 'build'
...lib/luarocks/rocks-5.1/luapress/4.1.2-0/bin/luapress:237: in main chunk
[C]: ?
i changed the plugin name from "Luapress_sections-master" to "sections" and got a different error:
/usr/bin/lua5.1: ...rocks-5.1/luapress/4.1.2-0/plugins/sections/init.lua:171: attempt to call upvalue 'markdown' (a table value)
stack traceback:
...rocks-5.1/luapress/4.1.2-0/plugins/sections/init.lua:171: in function '_load_markdowns'
...rocks-5.1/luapress/4.1.2-0/plugins/sections/init.lua:235: in function 'plugin'
/usr/local/share/lua/5.1/luapress/util.lua:169: in function '_process_plugins'
/usr/local/share/lua/5.1/luapress/util.lua:223: in function '_process_content'
/usr/local/share/lua/5.1/luapress/util.lua:312: in function 'load_markdowns'
/usr/local/share/lua/5.1/luapress.lua:216: in function 'build'
...lib/luarocks/rocks-5.1/luapress/4.1.2-0/bin/luapress:210: in function 'build'
...lib/luarocks/rocks-5.1/luapress/4.1.2-0/bin/luapress:237: in main chunk
I don't know if it I fixed or merely bypassed this issue, but i change the init.lua line 171:
-- item.content = markdown(s)
item.content = markdown[s]
then I got here and got stuck again.
/usr/bin/lua5.1: /usr/local/share/lua/5.1/luapress/template.lua:74: attempt to concatenate local 'code' (a nil value)
stack traceback:
/usr/local/share/lua/5.1/luapress/template.lua:74: in function 'process'
/usr/local/share/lua/5.1/luapress/template.lua:117: in function 'process'
/usr/local/share/lua/5.1/luapress/util.lua:87: in function 'write_html'
...rocks-5.1/luapress/4.1.2-0/plugins/sections/init.lua:254: in function 'plugin'
/usr/local/share/lua/5.1/luapress/util.lua:169: in function '_process_plugins'
/usr/local/share/lua/5.1/luapress/util.lua:223: in function '_process_content'
/usr/local/share/lua/5.1/luapress/util.lua:312: in function 'load_markdowns'
/usr/local/share/lua/5.1/luapress.lua:216: in function 'build'
...lib/luarocks/rocks-5.1/luapress/4.1.2-0/bin/luapress:210: in function 'build'
...lib/luarocks/rocks-5.1/luapress/4.1.2-0/bin/luapress:237: in main chun
thanks for listening :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.