spanezz / siterefactor Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
I'm looking at converting my ikiwiki site into... something else. Maybe staticsite, but i'm also seriously considering hugo as I use it in other projets.
I've tried to convert https://anarc.at/ using this, therefore. It seems like it has a few rough edges, for example I have my tags in the tag/
directory and that makes siterefactor quite unhappy:
anarcat@angela:anarc.at$ ~/dist/siterefactor/siterefactor -v . ../anarc.at-hugo
2023-03-10 15:09:55,105 INFO Loading tag info from tags
Traceback (most recent call last):
File "/home/anarcat/dist/siterefactor/siterefactor", line 85, in <module>
main()
File "/home/anarcat/dist/siterefactor/siterefactor", line 36, in main
site.read_tag_descriptions("tags")
File "/home/anarcat/dist/siterefactor/siterefactorlib/core.py", line 289, in read_tag_descriptions
for f in os.listdir(abspath):
^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/anarcat/wikis/anarc.at/tags'
a symlink works around that issue, but then it's somewhat unhappy with my tag pages:
anarcat@angela:anarc.at$ ~/dist/siterefactor/siterefactor -v -t hugo . ../anarc.at-hugo
2023-03-10 15:10:34,654 INFO Loading tag info from tags
2023-03-10 15:10:34,654 WARNING tags/politique.mdwn: found unsupported tag lookup: [[!meta title="pages tagged politique"]]
2023-03-10 15:10:34,654 WARNING tags/politique.mdwn: found unsupported tag lookup: [[!inline pages="tagged(politique)" actions="no" archive="yes"
2023-03-10 15:10:34,654 WARNING tags/gitlab.mdwn: found unsupported tag lookup: [[!meta title="pages tagged gitlab"]]
2023-03-10 15:10:34,654 WARNING tags/gitlab.mdwn: found unsupported tag lookup: [[!inline pages="tagged(gitlab)" actions="no" archive="yes"
2023-03-10 15:10:34,654 WARNING tags/shit.mdwn: found unsupported tag lookup: [[!meta title="pages tagged shit"]]
2023-03-10 15:10:34,654 WARNING tags/shit.mdwn: found unsupported tag lookup: [[!inline pages="tagged(shit)" actions="no" archive="yes"
2023-03-10 15:10:34,654 WARNING tags/terminals.mdwn: found unsupported tag lookup: [[!meta title="pages tagged terminals"]]
2023-03-10 15:10:34,654 WARNING tags/terminals.mdwn: found unsupported tag lookup: [[!inline pages="tagged(terminals)" actions="no" archive="yes"
2023-03-10 15:10:34,654 WARNING tags/sieve.mdwn: found unsupported tag lookup: [[!meta title="pages tagged sieve"]]
2023-03-10 15:10:34,654 WARNING tags/sieve.mdwn: found unsupported tag lookup: [[!inline pages="tagged(sieve)" actions="no" archive="yes"
[...]
2023-03-10 15:10:34,683 WARNING tags/usability.mdwn: found unsupported tag lookup: [[!meta title="pages tagged usability"]]
2023-03-10 15:10:34,683 WARNING tags/usability.mdwn: found unsupported tag lookup: [[!inline pages="tagged(usability)" actions="no" archive="yes"
anarcat@angela:anarc.at$
... and then it basically does nothing from there. it doesn't create the output dir, nor does the -t dump
argument help me in any way:
Traceback (most recent call last):
File "/home/anarcat/dist/siterefactor/siterefactor", line 85, in <module>
main()
File "/home/anarcat/dist/siterefactor/siterefactor", line 80, in main
writer.write(site)
File "/home/anarcat/dist/siterefactor/siterefactorlib/dump.py", line 55, in write
for static in site.static.values():
^^^^^^^^^^^
AttributeError: 'Site' object has no attribute 'static'
should i be using this at all?
thanks!
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.