Giter Site home page Giter Site logo

siterefactor's People

Contributors

spanezz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

siterefactor's Issues

how does this work?

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.