Skip to content
This repository was archived by the owner on Feb 22, 2025. It is now read-only.

Commit cbfd99e

Browse files
committed
Sync from danobi.github.io
1 parent 0624d8b commit cbfd99e

13 files changed

+24232
-0
lines changed

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bpftrace.org

Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
SOURCE_DOCS := $(wildcard src/*.md)
2+
SOURCE_ADOCS := $(wildcard src/docs/*.adoc)
3+
4+
EXPORTED_DOCS = $(notdir $(SOURCE_DOCS:.md=.html))
5+
EXPORTED_ADOCS = $(addprefix docs/,$(notdir $(SOURCE_ADOCS:.adoc=.html)))
6+
7+
PANDOC_VERSION := 3.5.0
8+
PANDOC := podman run --rm -v $(shell pwd):/data --userns=keep-id pandoc/core:$(PANDOC_VERSION)
9+
PANDOC_OPTIONS = -t markdown-smart --standalone
10+
PANDOC_HTML_OPTIONS = --to html5 --css css/theme.css
11+
12+
ASCIIDOCTOR_VERSION := 1.79
13+
ASCIIDOCTOR := podman run --rm -v $(shell pwd):/documents --userns=keep-id asciidoctor/docker-asciidoctor:$(ASCIIDOCTOR_VERSION) asciidoctor
14+
15+
.PHONY: all
16+
all: $(EXPORTED_DOCS) $(EXPORTED_ADOCS)
17+
18+
%.html : src/%.md Makefile css/theme.css
19+
$(PANDOC) $(PANDOC_OPTIONS) $(PANDOC_HTML_OPTIONS) $< -o $@
20+
21+
docs/%.html: src/docs/%.adoc src/header.html src/footer.html | docs
22+
$(ASCIIDOCTOR) --no-header-footer $< -o - | cat src/header.html - src/footer.html > $@

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# bpftrace website
2+
3+
### Sending PRs
4+
5+
Please make markdown changes in `src/`. Then run `make` from the project root.
6+
Commit all the changes then send the PR.
7+
8+
### Updating documentation
9+
10+
All documentation is currently vendored in `src/docs`. When updating, please copy
11+
in un-edited files directly from bpftrace repository.
12+
13+
When adding a documentation for a new release, you'll also want to update
14+
`src/header.html` with a new drop-down selection. You'll also want to update
15+
`index.md` to point to the latest release.
16+
17+
### Notes
18+
19+
* Followed https://gist.github.com/matt-bailey/bbbc181d5234c618e4dfe0642ad80297
20+
to set up DNS records

css/theme.css

Lines changed: 307 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,307 @@
1+
/* Modified from https://gist.github.com/killercup/5917178 */
2+
3+
html {
4+
font-size: 100%;
5+
overflow-y: scroll;
6+
-webkit-text-size-adjust: 100%;
7+
-ms-text-size-adjust: 100%;
8+
}
9+
10+
body {
11+
color: #444;
12+
font-family: Georgia, Palatino, 'Palatino Linotype', Times, 'Times New Roman', serif;
13+
font-size: 12px;
14+
line-height: 110%;
15+
padding: 1em;
16+
margin: auto;
17+
max-width: 42em;
18+
background: #fefefe;
19+
}
20+
21+
a {
22+
color: #0645ad;
23+
text-decoration: none;
24+
}
25+
26+
a:visited {
27+
color: #0b0080;
28+
}
29+
30+
a:hover {
31+
color: #06e;
32+
}
33+
34+
a:active {
35+
color: #faa700;
36+
}
37+
38+
a:focus {
39+
outline: thin dotted;
40+
}
41+
42+
p {
43+
margin: 1em 0;
44+
}
45+
46+
img {
47+
max-width: 100%;
48+
}
49+
50+
h1, h2, h3, h4, h5, h6 {
51+
color: #111;
52+
line-height: 125%;
53+
margin-top: 2em;
54+
font-weight: normal;
55+
}
56+
57+
h4, h5, h6 {
58+
font-weight: bold;
59+
}
60+
61+
h1 {
62+
font-size: 2.5em;
63+
}
64+
65+
h2 {
66+
font-size: 2em;
67+
}
68+
69+
h3 {
70+
font-size: 1.5em;
71+
}
72+
73+
h4 {
74+
font-size: 1.2em;
75+
}
76+
77+
h5 {
78+
font-size: 1em;
79+
}
80+
81+
h6 {
82+
font-size: 0.9em;
83+
}
84+
85+
blockquote {
86+
color: #666666;
87+
margin: 0;
88+
padding-left: 3em;
89+
border-left: 0.5em #EEE solid;
90+
}
91+
92+
hr {
93+
display: block;
94+
height: 2px;
95+
border: 0;
96+
border-top: 1px solid #aaa;
97+
border-bottom: 1px solid #eee;
98+
margin: 1em 0;
99+
padding: 0;
100+
}
101+
102+
pre, code, kbd, samp {
103+
color: #000;
104+
font-family: monospace, monospace;
105+
_font-family: 'courier new', monospace;
106+
font-size: 0.85em;
107+
background-color: #ececec;
108+
}
109+
110+
pre {
111+
white-space: pre;
112+
white-space: pre-wrap;
113+
word-wrap: break-word;
114+
}
115+
116+
b, strong {
117+
font-weight: bold;
118+
}
119+
120+
dfn {
121+
font-style: italic;
122+
}
123+
124+
ins {
125+
background: #ff9;
126+
color: #000;
127+
text-decoration: none;
128+
}
129+
130+
mark {
131+
background: #ff0;
132+
color: #000;
133+
font-style: italic;
134+
font-weight: bold;
135+
}
136+
137+
sub, sup {
138+
font-size: 75%;
139+
line-height: 0;
140+
position: relative;
141+
vertical-align: baseline;
142+
}
143+
144+
sup {
145+
top: -0.5em;
146+
}
147+
148+
sub {
149+
bottom: -0.25em;
150+
}
151+
152+
ul, ol {
153+
margin: 1em 0;
154+
padding: 0 0 0 2em;
155+
}
156+
157+
li p:last-child {
158+
margin-bottom: 0;
159+
}
160+
161+
ul ul, ol ol {
162+
margin: .3em 0;
163+
}
164+
165+
dl {
166+
margin-bottom: 1em;
167+
}
168+
169+
dt {
170+
font-weight: bold;
171+
margin-bottom: .8em;
172+
}
173+
174+
dd {
175+
margin: 0 0 .8em 2em;
176+
}
177+
178+
dd:last-child {
179+
margin-bottom: 0;
180+
}
181+
182+
img {
183+
border: 0;
184+
-ms-interpolation-mode: bicubic;
185+
vertical-align: middle;
186+
}
187+
188+
figure {
189+
display: block;
190+
text-align: center;
191+
margin: 1em 0;
192+
}
193+
194+
figure img {
195+
border: none;
196+
margin: 0 auto;
197+
}
198+
199+
figcaption {
200+
font-size: 0.8em;
201+
font-style: italic;
202+
margin: 0 0 .8em;
203+
}
204+
205+
table {
206+
margin-bottom: 2em;
207+
border-bottom: 1px solid #ddd;
208+
border-right: 1px solid #ddd;
209+
border-spacing: 0;
210+
border-collapse: collapse;
211+
}
212+
213+
table th {
214+
padding: .2em 1em;
215+
background-color: #eee;
216+
border-top: 1px solid #ddd;
217+
border-left: 1px solid #ddd;
218+
}
219+
220+
table td {
221+
padding: .2em 1em;
222+
border-top: 1px solid #ddd;
223+
border-left: 1px solid #ddd;
224+
vertical-align: top;
225+
}
226+
227+
.author {
228+
font-size: 1.2em;
229+
text-align: center;
230+
}
231+
232+
@media only screen and (min-width: 480px) {
233+
body {
234+
font-size: 14px;
235+
}
236+
}
237+
@media only screen and (min-width: 768px) {
238+
body {
239+
font-size: 16px;
240+
}
241+
}
242+
@media print {
243+
* {
244+
background: transparent !important;
245+
color: black !important;
246+
filter: none !important;
247+
-ms-filter: none !important;
248+
}
249+
250+
body {
251+
font-size: 12pt;
252+
max-width: 100%;
253+
}
254+
255+
a, a:visited {
256+
text-decoration: underline;
257+
}
258+
259+
hr {
260+
height: 1px;
261+
border: 0;
262+
border-bottom: 1px solid black;
263+
}
264+
265+
a[href]:after {
266+
content: " (" attr(href) ")";
267+
}
268+
269+
abbr[title]:after {
270+
content: " (" attr(title) ")";
271+
}
272+
273+
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after {
274+
content: "";
275+
}
276+
277+
pre, blockquote {
278+
border: 1px solid #999;
279+
padding-right: 1em;
280+
page-break-inside: avoid;
281+
}
282+
283+
tr, img {
284+
page-break-inside: avoid;
285+
}
286+
287+
img {
288+
max-width: 100% !important;
289+
}
290+
291+
@page :left {
292+
margin: 15mm 20mm 15mm 10mm;
293+
}
294+
295+
@page :right {
296+
margin: 15mm 10mm 15mm 20mm;
297+
}
298+
299+
p, h2, h3 {
300+
orphans: 3;
301+
widows: 3;
302+
}
303+
304+
h2, h3 {
305+
page-break-after: avoid;
306+
}
307+
}

0 commit comments

Comments
 (0)