|
1 | 1 | <!DOCTYPE html>
|
| 2 | +<!-- Expanded by util/versions.py into the HTML file seen at https://rust-lang.github.io/rust-clippy/ --> |
2 | 3 | <html lang="en">
|
3 | 4 | <head>
|
4 | 5 | <meta charset="UTF-8"/>
|
|
7 | 8 | <title>Clippy lints documentation</title>
|
8 | 9 |
|
9 | 10 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css"/>
|
10 |
| - <style> |
11 |
| - [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak { display: none !important; } |
12 |
| - </style> |
13 | 11 | </head>
|
14 | 12 | <body>
|
15 |
| - <div class="container" ng-app="clippy" ng-controller="docVersions"> |
| 13 | + <div class="container"> |
16 | 14 | <div class="page-header">
|
17 | 15 | <h1>Clippy lints documentation</h1>
|
18 | 16 | </div>
|
19 | 17 |
|
20 |
| - <div ng-cloak> |
21 |
| - <div class="alert alert-info" role="alert" ng-if="loading"> |
22 |
| - Loading… |
23 |
| - </div> |
24 |
| - <div class="alert alert-danger" role="alert" ng-if="error"> |
25 |
| - Error loading versions!<br/> |
26 |
| - You can always try to get <a href="master/index.html">the master branch docs</a>. |
27 |
| - </div> |
28 |
| - |
29 |
| - <article class="panel panel-default" ng-show="data"> |
| 18 | + <div> |
| 19 | + <article class="panel panel-default"> |
30 | 20 | <div class="panel-heading">
|
31 | 21 | <h3 class="panel-title">
|
32 | 22 | Available versions
|
33 | 23 | </h3>
|
34 | 24 | </div>
|
35 | 25 |
|
36 | 26 | <ul class="list-group">
|
37 |
| - <a class="list-group-item" ng-repeat="version in data | orderBy:versionOrder:true" |
38 |
| - href="./{{version}}/index.html"> |
39 |
| - {{version}} |
40 |
| - </a> |
| 27 | + $list |
41 | 28 | </ul>
|
42 | 29 | </article>
|
43 | 30 | </div>
|
44 | 31 | </div>
|
45 | 32 |
|
46 |
| - <a href="https://github.com/rust-lang/rust-clippy"> |
47 |
| - <img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"/> |
48 |
| - </a> |
49 |
| - |
50 |
| - |
51 |
| - <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.12/angular.min.js"></script> |
52 |
| - <script> |
53 |
| - angular.module('clippy', []) |
54 |
| - .controller('docVersions', function ($scope, $http) { |
55 |
| - $scope.loading = true; |
56 |
| - |
57 |
| - $scope.normalizeVersion = function(v) { |
58 |
| - return v.replace(/^rust-/, ''); |
59 |
| - }; |
60 |
| - |
61 |
| - $scope.versionOrder = function(v) { |
62 |
| - if (v === 'master') { return Infinity; } |
63 |
| - if (v === 'stable') { return Number.MAX_VALUE; } |
64 |
| - if (v === 'beta') { return Number.MAX_VALUE - 1; } |
65 |
| - if (v === 'pre-1.29.0') { return Number.MIN_VALUE; } |
66 |
| - |
67 |
| - return $scope.normalizeVersion(v) |
68 |
| - .split('.') |
69 |
| - .reverse() |
70 |
| - .reduce(function(acc, val, index) { |
71 |
| - return acc + (val * Math.pow(100, index)); |
72 |
| - }, 0); |
| 33 | + <a |
| 34 | + aria-label="View source on GitHub" |
| 35 | + class="github-corner" |
| 36 | + href="https://github.com/rust-lang/rust-clippy" |
| 37 | + rel="noopener noreferrer" |
| 38 | + target="_blank" |
| 39 | + > |
| 40 | + <svg |
| 41 | + width="80" |
| 42 | + height="80" |
| 43 | + viewBox="0 0 250 250" |
| 44 | + style="position: absolute; top: 0; border: 0; right: 0" |
| 45 | + aria-hidden="true" |
| 46 | + > |
| 47 | + <path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z" fill="var(--theme-color)"></path> |
| 48 | + <path |
| 49 | + d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" |
| 50 | + fill="currentColor" |
| 51 | + style="transform-origin: 130px 106px" |
| 52 | + class="octo-arm" |
| 53 | + ></path> |
| 54 | + <path |
| 55 | + d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" |
| 56 | + fill="currentColor" |
| 57 | + class="octo-body" |
| 58 | + ></path> |
| 59 | + </svg> |
| 60 | + <style> |
| 61 | + .github-corner svg { |
| 62 | + fill: black; |
| 63 | + color: white; |
73 | 64 | }
|
74 |
| - |
75 |
| - $http.get('./versions.json') |
76 |
| - .success(function (data) { |
77 |
| - $scope.data = data; |
78 |
| - $scope.loading = false; |
79 |
| - }) |
80 |
| - .error(function (data) { |
81 |
| - $scope.error = data; |
82 |
| - $scope.loading = false; |
83 |
| - }); |
84 |
| - }) |
85 |
| - ; |
86 |
| - </script> |
| 65 | + .github-corner:hover .octo-arm { |
| 66 | + animation: octocat-wave 560ms ease-in-out; |
| 67 | + } |
| 68 | + @keyframes octocat-wave { |
| 69 | + 0%, |
| 70 | + 100% { |
| 71 | + transform: rotate(0); |
| 72 | + } |
| 73 | + 20%, |
| 74 | + 60% { |
| 75 | + transform: rotate(-25deg); |
| 76 | + } |
| 77 | + 40%, |
| 78 | + 80% { |
| 79 | + transform: rotate(10deg); |
| 80 | + } |
| 81 | + } |
| 82 | + @media (max-width: 500px) { |
| 83 | + .github-corner:hover .octo-arm { |
| 84 | + animation: none; |
| 85 | + } |
| 86 | + .github-corner .octo-arm { |
| 87 | + animation: octocat-wave 560ms ease-in-out; |
| 88 | + } |
| 89 | + } |
| 90 | + </style> |
| 91 | + </a> |
87 | 92 | </body>
|
88 | 93 | </html>
|
0 commit comments