Skip to content
forked from wezm/read-rust

Read Rust allows you to keep up with articles about the Rust programming language

License

Notifications You must be signed in to change notification settings

jonhoo/read-rust

 
 

Repository files navigation

Read Rust

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.

Build Status

Contributing

Check out the Submission page on the website for info on submitting a post.

Building

Website

The website is built with Cobalt. After installing Cobalt the site can be built by running make.

Tools

The tools are mostly written in Rust, so cargo build --release will build them. The tools themselves are:

  • add-url add a new entry to feed.json.
  • generate-rss generates feed.rss, and the cobalt data from feed.json.
  • opml2json converts subscriptions downloaded from Feedbin into JSON.

Running make will build the tools and generate the site content.

Notes

Adding a New Category

  1. Add an entry to content/_data/categories.json
  2. Add a new content directory and index file for the category. E.g. content/category/index.md.
  3. Add the new category to the Makefile

Resize Avatars

cd content/images/u
convert *.png *.jpg -set filename:name '%t' -resize 100\> -quality 60 'thumb/%[filename:name].jpg'

Updating OPML

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.

About

Read Rust allows you to keep up with articles about the Rust programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 53.9%
  • CSS 19.7%
  • Liquid 11.7%
  • Makefile 5.3%
  • JavaScript 4.2%
  • Ruby 4.0%
  • Shell 1.2%