sixem / ivfi-node

IVFi is a directory indexer written in Node that aims to make it easy to browse and explore web-accessible directories.
https://git.five.sh/ivfi/
Other
33 stars 3 forks source link

Add readme/notice functionality #8

Closed evwltrs closed 2 years ago

evwltrs commented 2 years ago

This adds functionality to read from a readme.txt file and present it as a notice at the top of a directory.

Sample is attached.

Let me know if you want anything changed, or this implementation causes any issues :) image

v1rx commented 2 years ago

Using a similar method with markdown for mine. Looks good man.

evwltrs commented 2 years ago

Using a similar method with markdown for mine. Looks good man.

Thanks, I might implement markdown as well. I have no experience with rending markdown on the web, so I will have to look into a parser that can handle this.

evwltrs commented 2 years ago

Now works with markdown, issue is code blocks don't render. Is this something that needs fixing?

evwltrs commented 2 years ago

cc @v1rx

evwltrs commented 2 years ago

image Just deployed to production and it seems to be working great :)

sixem commented 2 years ago

I added an option to enable/disable the readme feature, as well as an option to hide the readme file. I also made some slight changes to the way the readme is being displayed (most notably a header and a container was added).

Feel free to test them, and also to let me know if you are OK with these changes 😄

evwltrs commented 2 years ago

Looks good 👍👌