Skip to content

Commit a3ad552

Browse files
author
Jordan Poles
committed
Cleaning up styles and linted
1 parent 23e4c59 commit a3ad552

File tree

1 file changed

+48
-37
lines changed

1 file changed

+48
-37
lines changed

doc/_static/cadquery_cheatsheet.html

Lines changed: 48 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2-
<html>
2+
<html lang="en">
33
<head>
44
<title>CadQuery Cheatsheet</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77

88
<style type="text/css">
9+
body {
10+
margin: 0;
11+
text-align: center;
12+
}
13+
#header {
14+
background-color: #ddd; padding: 2px;
15+
margin-bottom: 10px;
16+
}
17+
#section-container {
18+
display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-around; row-gap: 10px;
19+
}
920
.section {
1021
margin: 0.5em;
1122
padding: 0px 0.5em 0.5em;
@@ -16,14 +27,13 @@
1627
.section-subtitle {
1728
margin-bottom: 4px;
1829
}
19-
h2 a, h2 a:visited, .section a,.section a:visited {
30+
a, a:visited {
2031
color: #1f4b8f;
2132
font-weight: bold;
2233
text-decoration: none;
23-
2434
}
25-
.column {
26-
float: left;
35+
table {
36+
width: 100%;
2737
}
2838
tr {
2939
background-color: #FFFFFF;
@@ -32,43 +42,44 @@
3242
text-align: center;
3343
width: 5em;
3444
}
45+
h1 {
46+
margin: 10px;
47+
}
3548
h2 {
3649
display: inline;
3750
}
3851
</style>
3952
</head>
40-
<body style="text-align: center">
41-
<div style="background-color: #ddd; padding: 2px;">
42-
<h1><img src="https://cadquery.readthedocs.io/en/latest/_static/cadquery_logo_dark.svg" height=30> Cheatsheet</h1>
43-
<i>A Quick Guide To The Most Commonly Used Functions!
44-
<br/>
45-
<sub>For the full API ref <a target="_blank" href="https://cadquery.readthedocs.io/en/latest/apireference.html" target="_blank">click here!</a></sub></i>
53+
<body>
54+
<div id="header">
55+
<h1><img src="https://cadquery.readthedocs.io/en/latest/_static/cadquery_logo_dark.svg" alt="CadQuery Logo" height=30> Cheatsheet</h1>
56+
<i>
57+
A Quick Guide To The Most Commonly Used Functions!
58+
<br/>
59+
<sub>
60+
For the full API reference <a target="_blank" href="https://cadquery.readthedocs.io/en/latest/apireference.html">click here</a>.
61+
For examples <a target="_blank" href="https://cadquery.readthedocs.io/en/latest/examples.html">click here</a>.
62+
</sub>
63+
</i>
4664
</div>
47-
<div style="display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-around; row-gap: 10px;">
48-
<div class="section" hidden>
49-
<h2>Documentation</h2>
50-
<ul style="background-color:#ffffff;margin-bottom:0px;margin-top:0px;">
51-
<li><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/">CadQuery Documentation</a></li>
52-
<li><a target="_blank" href="https://github.com/CadQuery/cadquery/blob/master/README.md">CadQuery Readme</a></li>
53-
<li><a target="_blank" href="https://github.com/CadQuery/cadquery/tree/master/examples">CadQuery Examples</a></li>
54-
<li><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/apireference.html">CadQuery API Reference</a></li>
55-
</ul>
56-
</div>
65+
<div id="section-container">
5766
<div class="section">
5867
<h2><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/apireference.html#id1">3D Construction</a></h2>
59-
<table style="width:100%;">
68+
<table>
6069
<thead>
61-
<th>Primitives</th>
62-
<th>Additive</th>
63-
<th>Subtractive</th>
70+
<tr>
71+
<th>Primitives</th>
72+
<th>Additive</th>
73+
<th>Subtractive</th>
74+
</tr>
6475
</thead>
6576
<tr>
6677
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.box">Workplane.box</a><br>(length, width, height)</td>
6778
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.extrude">Workplane.extrude</a><br>(until)</td>
6879
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.cut">Workplane.cut</a><br>(toCut)</td>
6980
</tr>
7081
<tr>
71-
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.sphere">Workplane.sphere</a><br>(radius)</li></td>
82+
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.sphere">Workplane.sphere</a><br>(radius)</td>
7283
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.sweep">Workplane.sweep</a><br>(path)</td>
7384
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.cutThruAll">Workplane.cutThruAll</a><br>(until)</td>
7485
</tr>
@@ -86,7 +97,7 @@ <h2><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/apirefere
8697
</div>
8798
<div class="section">
8899
<h2><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/apireference.html#d-operations">2D Construction</a></h2>
89-
<table style="width:100%;">
100+
<table>
90101
<tr>
91102
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.rect">Workplane.rect</a><br>(xLen, yLen)</td>
92103
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.circle">Workplane.circle</a><br>(radius)</td>
@@ -103,15 +114,15 @@ <h2><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/apirefere
103114
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.polarLine">Workplane.polarLine</a><br>(distance, angle)</td>
104115
</tr>
105116
<tr>
106-
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.vLine">Workplane.vLine</a><br>(distance)</li></td>
117+
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.vLine">Workplane.vLine</a><br>(distance)</td>
107118
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.hLine">Workplane.hLine</a><br>(distance)</td>
108119
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Workplane.polyline">Workplane.polyline</a><br>(listOfXYTuple)</td>
109120
</tr>
110121
</table>
111122
</div>
112123
<div class="section">
113124
<h2><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/apireference.html#sketch-initialization">Sketching</a></h2>
114-
<table style="width:100%;">
125+
<table>
115126
<tr>
116127
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Sketch.rect">Sketch.rect</a><br>(w, h)</td>
117128
<td><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.Sketch.circle">Sketch.circle</a><br>(r)</td>
@@ -131,7 +142,7 @@ <h2><a target="_blank" href="https://cadquery.readthedocs.io/en/latest/apirefere
131142
</div>
132143
<div class="section" style="min-width: 300px;" hidden>
133144
<h2>BREP Terminology</h2><br />
134-
<table style="width:100%;">
145+
<table>
135146
<tr>
136147
<td style="width:10%;"><strong>vertex</strong></td>
137148
<td style="width:90%;">A single point in space</td>
@@ -166,7 +177,7 @@ <h2>BREP Terminology</h2><br />
166177
<h2>Selector String Modifiers</h2><br />
167178
<div class="section-subtitle">See <a target="_blank" href="https://cadquery.readthedocs.io/en/latest/selectors.html">CadQuery String Selectors</a> for more information.<br />
168179
Axis Strings are: X, Y, Z, XY, YZ, XZ</div>
169-
<table style="width:100%;">
180+
<table>
170181
<tr>
171182
<th style="width:10%;">Modifier</th>
172183
<th style="width:90%;">Description</th>
@@ -204,7 +215,7 @@ <h2>Selector String Modifiers</h2><br />
204215
<div class="section">
205216
<h2>Selector Methods</h2><br />
206217
<div class="section-subtitle">CadQuery selector strings and classes allow filtering to select objects.</div>
207-
<table style="width:100%;">
218+
<table>
208219
<tr>
209220
<th style="width:40%;">Selector Methods</th>
210221
<th style="width:60%;">Selector Classes
@@ -234,7 +245,7 @@ <h2>Selector Methods</h2><br />
234245
<div class="section">
235246
<h2>Named Planes</h2><br />
236247
<div class="section-subtitle">Direction references refer to the global directions.</div>
237-
<table style="width:100%;">
248+
<table>
238249
<tr>
239250
<th style="width:25%;">Name</th>
240251
<th style="width:25%;">xDir</th>
@@ -300,7 +311,7 @@ <h2>Named Planes</h2><br />
300311

301312
<div class="section" hidden>
302313
<h2>Core Classes</h2><br />
303-
<table style="width:100%;">
314+
<table>
304315
<tr>
305316
<th style="width:40%;">Class</th>
306317
<th style="width:60%;">Description</th>
@@ -326,7 +337,7 @@ <h2>Examples of Filtering Faces</h2><br />
326337
All types of filters work on faces. In most cases, the selector refers to the direction of the normal vector of the face.
327338
If a face is not planar, selectors are evaluated at the center of mass of the face. This can lead to results that are quite unexpected.
328339
</div>
329-
<table style="width:100%;">
340+
<table>
330341
<tr>
331342
<th style="width:10%;">Selector</th>
332343
<th style="width:40%;">Selector Class</th>
@@ -383,7 +394,7 @@ <h2>Examples of Filtering Edges</h2><br />
383394
Some filter types are not supported for edges. The selector usually refers to the direction of the edge.
384395
Non-linear edges are not selected for any selectors except type (%). Non-linear edges are never returned when these filters are applied.
385396
</div>
386-
<table style="width:100%;">
397+
<table>
387398
<tr>
388399
<th style="width:10%;">Selector</th>
389400
<th style="width:40%;">Selector Class</th>
@@ -437,7 +448,7 @@ <h2>Examples of Filtering Edges</h2><br />
437448
<div class="section" style="max-width: 600px">
438449
<h2>Examples of Filtering Vertices</h2><br />
439450
<div class="section-subtitle">Only a few of the filter types apply to vertices. The location of the vertex is the subject of the filter.</div>
440-
<table style="width:100%;">
451+
<table>
441452
<tr>
442453
<th style="width:10%;">Selector</th>
443454
<th style="width:40%;">Selector Class</th>

0 commit comments

Comments
 (0)