Source code to readrust.net. A news aggregator for Rust news. This repo contains the source to the website and tools for updating the feeds.
Check out the Submission page on the website for info on submitting a post.
The website is built with Cobalt. After installing Cobalt
the site can be built by running make
.
The tools are mostly written in Rust, so cargo build --release
will build
them. The tools themselves are:
add-url
add a new entry tofeed.json
.generate-rss
generatesfeed.rss
, and the cobalt data fromfeed.json
.opml2json
converts subscriptions downloaded from Feedbin into JSON.
Running make
will build the tools and generate the site content.
- Add an entry to
content/_data/categories.json
- Add a new content directory and index file for the category. E.g.
content/category/index.md
. - Add the new category to the
Makefile
cd content/images/u
convert *.png *.jpg -set filename:name '%t' -resize 100\> -quality 60 'thumb/%[filename:name].jpg'
Download subscriptions from Feedbin, then:
./script/opml2json ~/Downloads/subscriptions.xml > content/_data/rust/blogs.json
make
xmllint public/rust-blogs.opml
Some manual tweaks to the JSON might be needed.