Skip to content

Camroku/wdcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wdcd

What da code doin'?

Pros:

  • Just a single file, no bloat (except libraries 😊).
  • No too many files for configuration, just a single .ini file and you can keep them all in one place.

Cons:

  • I felt too lazy to add support for every language.
  • Images are not supported.
  • Performance is a little too bad - it downloads an entire page on every request.
  • You have to restart the server every time you change the configuration.

All of these will be fixed in future, except for the third one (probably?).

Installing

Run pip install flask requests beautifulsoup4 to install dependencies, move wdcd.py to /usr/local/bin/wdcd (mv wdcd.py /usr/local/bin/wdcd) and set it as executable (chmod +x /usr/local/bin/wdcd).

Running

Create your config file by looking at the example and then run wdcd config.ini.

Credits

  • Arnolxu for the stylesheets (and literally making the project)
  • Prism for syntax highlighting