Skip to content

Commit 964f751

Browse files
rejasVeeck
authored and
Veeck
committed
Add htmlint, fixy errors, move css into own file
1 parent 1bf67fc commit 964f751

File tree

4 files changed

+103
-29
lines changed

4 files changed

+103
-29
lines changed

.htmllintrc

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"plugins": [], // npm modules to load
3+
4+
"maxerr": false,
5+
"raw-ignore-regex": false,
6+
"attr-bans": [
7+
"align",
8+
"background",
9+
"bgcolor",
10+
"border",
11+
"frameborder",
12+
"longdesc",
13+
"marginwidth",
14+
"marginheight",
15+
"scrolling",
16+
"style",
17+
"width"
18+
],
19+
"indent-delta": false,
20+
"indent-style": "nonmixed",
21+
"indent-width": false,
22+
"indent-width-cont": false,
23+
"spec-char-escape": true,
24+
"text-ignore-regex": false,
25+
"tag-bans": [
26+
"style",
27+
"b",
28+
"i"
29+
],
30+
"tag-close": true,
31+
"tag-name-lowercase": true,
32+
"tag-name-match": true,
33+
"tag-self-close": false,
34+
"doctype-first": false,
35+
"doctype-html5": false,
36+
"attr-name-style": "dash",
37+
"attr-name-ignore-regex": false,
38+
"attr-no-dup": true,
39+
"attr-no-unsafe-char": true,
40+
"attr-order": false,
41+
"attr-quote-style": "double",
42+
"attr-req-value": true,
43+
"attr-new-line": false,
44+
"attr-validate": true,
45+
"id-no-dup": true,
46+
"id-class-no-ad": true,
47+
"id-class-style": "underscore",
48+
"class-no-dup": true,
49+
"class-style": false,
50+
"id-class-ignore-regex": false,
51+
"img-req-alt": true,
52+
"img-req-src": true,
53+
"html-valid-content-model": true,
54+
"head-valid-content-model": true,
55+
"href-style": false,
56+
"label-req-for": true,
57+
"line-end-style": "lf",
58+
"line-no-trailing-whitespace": false,
59+
"line-max-len": false,
60+
"line-max-len-ignore-regex": false,
61+
"head-req-title": true,
62+
"title-no-dup": true,
63+
"title-max-len": 60,
64+
"html-req-lang": false,
65+
"lang-style": "case",
66+
"fig-req-figcaption": false,
67+
"focusable-tabindex-style": false,
68+
"input-radio-req-name": true,
69+
"input-req-label": false,
70+
"table-req-caption": false,
71+
"table-req-header": false
72+
}

docs/index.html

+8-28
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,7 @@
88
<script src="https://d3js.org/d3.v4.min.js"></script>
99
<script src="radar.js"></script>
1010

11-
<style type="text/css">
12-
body {
13-
font-family: 'Source Sans Pro', arial, helvetica, sans-serif;
14-
padding-bottom: 50px;
15-
}
16-
h3 {
17-
margin-top: 50px;
18-
}
19-
li {
20-
margin: 25px 50px 0 0;
21-
}
22-
table {
23-
width: 1400px;
24-
margin: 0 50px 0 50px;
25-
}
26-
td {
27-
width: 50%;
28-
vertical-align: top;
29-
padding-right: 60px;
30-
}
31-
</style>
11+
<link rel="stylesheet" href="radar.css">
3212
</head>
3313

3414
<body>
@@ -898,14 +878,14 @@
898878
<h3>What is the Tech Radar?</h3>
899879

900880
<p>
901-
The Zalando Tech Radar is a list of technologies, complemented by an assessment result, called <i>ring assignment</i>. We use four rings with the following semantics:
881+
The Zalando Tech Radar is a list of technologies, complemented by an assessment result, called <em>ring assignment</em>. We use four rings with the following semantics:
902882
</p>
903883

904884
<ul>
905-
<li><b>ADOPT</b> &mdash; Technologies we have high confidence in to serve our purpose, also in large scale. Technologies with a usage culture in our Zalando production environment, low risk and recommended to be widely used.</li>
906-
<li><b>TRIAL</b> &mdash; Technologies that we have seen work with success in project work to solve a real problem; first serious usage experience that confirm benefits and can uncover limitations. TRIAL technologies are slightly more risky; some engineers in our organization walked this path and will share knowledge and experiences.</li>
907-
<li><b>ASSESS</b> &mdash; Technologies that are promising and have clear potential value-add for us; technologies worth to invest some research and prototyping efforts in to see if it has impact. ASSESS technologies have higher risks; they are often brand new and highly unproven in our organisation. You will find some engineers that have knowledge in the technology and promote it, you may even find teams that have started a prototyping effort.</li>
908-
<li><b>HOLD</b> &mdash; Technologies not recommended to be used for new projects. Technologies that we think are not (yet) worth to (further) invest in. HOLD technologies should not be used for new projects, but usually can be continued for existing projects.</li>
885+
<li><strong>ADOPT</strong> &mdash; Technologies we have high confidence in to serve our purpose, also in large scale. Technologies with a usage culture in our Zalando production environment, low risk and recommended to be widely used.</li>
886+
<li><strong>TRIAL</strong> &mdash; Technologies that we have seen work with success in project work to solve a real problem; first serious usage experience that confirm benefits and can uncover limitations. TRIAL technologies are slightly more risky; some engineers in our organization walked this path and will share knowledge and experiences.</li>
887+
<li><strong>ASSESS</strong> &mdash; Technologies that are promising and have clear potential value-add for us; technologies worth to invest some research and prototyping efforts in to see if it has impact. ASSESS technologies have higher risks; they are often brand new and highly unproven in our organisation. You will find some engineers that have knowledge in the technology and promote it, you may even find teams that have started a prototyping effort.</li>
888+
<li><strong>HOLD</strong> &mdash; Technologies not recommended to be used for new projects. Technologies that we think are not (yet) worth to (further) invest in. HOLD technologies should not be used for new projects, but usually can be continued for existing projects.</li>
909889
</ul>
910890

911891
</td><td>
@@ -919,15 +899,15 @@ <h3>What is the purpose?</h3>
919899
<h3>How do we maintain it?</h3>
920900

921901
<p>
922-
The Tech Radar is maintained by the <i>Zalando Technologists Guild</i> &mdash; an open group of senior Zalando technologists committed to devote time to the Tech Radar purpose. The guild self organises to maintain the Tech Radar documents, including this public version. Assignment of technologies to rings is the outcome of ring change proposals, which are discussed and voted on in guild meetings. The Tech Radar depends on active participation and input from all engineering teams at Zalando.
902+
The Tech Radar is maintained by the <em>Zalando Technologists Guild</em> &mdash; an open group of senior Zalando technologists committed to devote time to the Tech Radar purpose. The guild self organises to maintain the Tech Radar documents, including this public version. Assignment of technologies to rings is the outcome of ring change proposals, which are discussed and voted on in guild meetings. The Tech Radar depends on active participation and input from all engineering teams at Zalando.
923903
</p>
924904

925905
<p>
926906
There is also an <a href="https://techradar.zalando.net/">internal version of the Tech Radar</a> that contains background information about each technology &mdash; when to use it, pros and cons, main risks, which teams at Zalando are using it, and for what purpose.
927907
</p>
928908

929909
<p>
930-
<i>BTW, if you would like to create your own Tech Radar &mdash; we have <a href="https://github.com/zalando/tech-radar">open sourced the code</a> to generate this visualization.</i>
910+
<em>BTW, if you would like to create your own Tech Radar &mdash; we have <a href="https://github.com/zalando/tech-radar">open sourced the code</a> to generate this visualization.</em>
931911
</p>
932912

933913
</td></tr>

docs/radar.css

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
body {
2+
font-family: 'Source Sans Pro', arial, helvetica, sans-serif;
3+
padding-bottom: 50px;
4+
}
5+
h3 {
6+
margin-top: 50px;
7+
}
8+
li {
9+
margin: 25px 50px 0 0;
10+
}
11+
table {
12+
width: 1400px;
13+
margin: 0 50px 0 50px;
14+
}
15+
td {
16+
width: 50%;
17+
vertical-align: top;
18+
padding-right: 60px;
19+
}

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@
1010
},
1111
"devDependencies": {
1212
"browser-sync": "^2.26.3",
13-
"eslint": "^5.7.0"
13+
"eslint": "^5.7.0",
14+
"htmllint": "^0.7.2"
1415
},
1516
"scripts": {
1617
"start": "browser-sync docs -w",
18+
"lint": "npm run lint:js && npm run lint:html",
1719
"lint:js": "eslint docs/*.js",
20+
"lint:html": "htmllint docs/*.html"
1821
}
1922
}

0 commit comments

Comments
 (0)