Skip to content

Commit 9ecaf54

Browse files
authored
Merge pull request bpftrace#25 from jordalgo/docs_link
update docs.bpftrace links
2 parents 76575f3 + 2b08189 commit 9ecaf54

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

docusaurus.config.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import {themes as prismThemes} from 'prism-react-renderer';
88

99
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
1010

11+
const latestDocs = "/docs/0.22"
12+
1113
/** @type {import('@docusaurus/types').Config} */
1214
const config = {
1315
title: 'bpftrace',
@@ -65,9 +67,13 @@ const config = {
6567
{
6668
redirects: [
6769
{
68-
to: 'https://docs.bpftrace.org/latest',
70+
to: latestDocs,
6971
from: '/docs',
7072
},
73+
{
74+
to: latestDocs,
75+
from: '/docs/latest',
76+
},
7177
],
7278
},
7379
],
@@ -129,7 +135,7 @@ const config = {
129135
items: [
130136
{
131137
label: 'Documentation',
132-
to: 'https://docs.bpftrace.org/latest',
138+
to: latestDocs,
133139
target: '_self',
134140
},
135141
{

src/pages/tutorial-one-liners.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The bpftrace One-Liner Tutorial
22

3-
This teaches you bpftrace for Linux in 12 easy lessons, where each lesson is a one-liner you can try running. This series of one-liners introduces concepts which are summarized as bullet points. For a full reference to bpftrace, see the [man page](https://docs.bpftrace.org/)
3+
This teaches you bpftrace for Linux in 12 easy lessons, where each lesson is a one-liner you can try running. This series of one-liners introduces concepts which are summarized as bullet points. For a full reference to bpftrace, see the [man page](https://bpftrace.org/docs)
44

55
Contributed by Brendan Gregg, Netflix (2018), based on his FreeBSD [DTrace Tutorial](https://wiki.freebsd.org/DTrace/Tutorial).
66

@@ -327,4 +327,4 @@ This uses kernel dynamic tracing of the vfs_open() function, which has a (struct
327327

328328
The kernel struct support is the same as bcc, making use of kernel headers. This means that many structs are available, but not everything, and sometimes it might be necessary to manually include a struct. For an example of this, see the [dcsnoop tool](https://github.com/bpftrace/bpftrace/tree/master/tools/dcsnoop.bt), which includes a portion of struct nameidata manually as it wasn't in the available headers. If the kernel has BTF data, all kernel structs are always available.
329329

330-
At this point you understand much of bpftrace, and can begin to use and write powerful one-liners. See the [Manual](https://docs.bpftrace.org/) for more capabilities.
330+
At this point you understand much of bpftrace, and can begin to use and write powerful one-liners. See the [Manual](https://bpftrace.org/docs) for more capabilities.

static/docs/master.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<!-- This is used as a redirect for the old docs website. We can probably remove at some point -->
44
<head>
55
<meta charset="UTF-8">
6-
<meta http-equiv="refresh" content="0; url=https://docs.bpftrace.org/latest">
7-
<link rel="canonical" href="https://docs.bpftrace.org/latest" />
6+
<meta http-equiv="refresh" content="0; url=https://bpftrace.org/docs/pre-release">
7+
<link rel="canonical" href="https://bpftrace.org/docs/pre-release" />
88
</head>
99
<script>
10-
window.location.href = 'https://docs.bpftrace.org/next' + window.location.search + window.location.hash;
10+
window.location.href = 'https://bpftrace.org/docs/pre-release' + window.location.search + window.location.hash;
1111
</script>
1212
</html>

static/docs/v0.21.x.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<!-- This is used as a redirect for the old docs website. We can probably remove at some point -->
44
<head>
55
<meta charset="UTF-8">
6-
<meta http-equiv="refresh" content="0; url=https://docs.bpftrace.org/latest">
7-
<link rel="canonical" href="https://docs.bpftrace.org/latest" />
6+
<meta http-equiv="refresh" content="0; url=https://bpftrace.org/docs/0.21">
7+
<link rel="canonical" href="https://bpftrace.org/docs/0.21" />
88
</head>
99
<script>
10-
window.location.href = 'https://docs.bpftrace.org/' + window.location.search + window.location.hash;
10+
window.location.href = 'https://bpftrace.org/docs/0.21' + window.location.search + window.location.hash;
1111
</script>
1212
</html>

0 commit comments

Comments
 (0)