diff options
-rwxr-xr-x | build.py | 7 | ||||
-rw-r--r-- | head.html | 14 |
2 files changed, 16 insertions, 5 deletions
@@ -102,11 +102,8 @@ def write_features(f, feature_data): with open('target/index.html', 'w') as f: - f.write('<!doctype html>') - f.write('<meta charset=utf-8>') - f.write('<title>Rust features</title>') - f.write('<h1>Rust features</h1>') - f.write('<link rel="stylesheet" href="style.css" />') + with open('head.html') as h: + f.write(h.read()) # TODO: sort by T-lang and T-lib f.write('<h2>Unstable features</h2>') diff --git a/head.html b/head.html new file mode 100644 index 0000000..f0782e8 --- /dev/null +++ b/head.html @@ -0,0 +1,14 @@ +<!doctype html> +<html> +<head> +<meta charset=utf-8> +<title>Rust features</title> +<link rel="stylesheet" href="style.css" /> +</head> +<body> + +<h1>Rust features</h1> + +page generated by <a href="https://push-f.com/">push-f</a> +from the <a href="https://github.com/jplatte/caniuse.rs">TOML files</a> +maintained by <a href="https://blog.turbo.fish/">jplatte</a> |