httpstatuses/contents
zoidbergwill 3ee553d788 Add Rust HTTP constants
In case I need to do this again.

I created a file of status code to constant names, then ran this script
against it:

IFS=$'\n';
for i in $(cat rust-consts.txt); do
  code="$(echo $i | awk '{print $1}')"
  const="http::StatusCode::$(echo $i | awk '{print $2}')"
  fastmod "(references:)(\n)" "\${1}\${2}    \"Rust HTTP Status Constant\": \"${const}\"\${2}" "contents/codes/${code}.md"
done

The hightlight is the grossness for the fastmod invocation, since I
couldn't figure out how to get fastmod to add newlines in the
replacement text, so I captured and reused the one from the searched
patterns.
2021-01-27 14:16:18 +01:00
..
codes Add Rust HTTP constants 2021-01-27 14:16:18 +01:00
error-404.md Remove markdown line limit (#52) 2016-04-23 01:12:07 +01:00
error-500.md Remove markdown line limit (#52) 2016-04-23 01:12:07 +01:00
favicon.ico Adds (ugly, ugly) favicon 2015-11-06 22:29:11 +00:00
index.md Adds Runscope sponsorship banner (#54) 2016-04-27 21:51:17 +01:00
open-sans-regular.woff Hosts fonts locally 2015-11-12 16:05:20 +00:00
robots.txt Adds project readme 2015-11-06 20:40:30 +00:00
source-code-pro-700.woff Hosts fonts locally 2015-11-12 16:05:20 +00:00
style.scss Adds Share buttons for Twitter, GitHub and Pinboard (#56) 2016-04-28 00:01:37 +01:00