Skip to content

Commit 0c5264b

Browse files
committed
docs: update docs
1 parent d50ab47 commit 0c5264b

File tree

6 files changed

+34
-12
lines changed

6 files changed

+34
-12
lines changed

.github/workflows/checks.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,27 @@ on:
1010
jobs:
1111
check-manpage:
1212
runs-on: ubuntu-20.04
13-
name: Check manpage
13+
name: Check docs
1414
steps:
1515
- uses: actions/checkout@v3
1616

1717
- name: Install build dependencies
1818
run: |
19+
sudo add-apt-repository -y universe
20+
sudo add-apt-repository -y ppa:inkscape.dev/stable
1921
sudo apt-get update
20-
sudo apt-get -y install libunwind-dev binutils-dev libiberty-dev help2man
22+
sudo apt-get -y install libunwind-dev binutils-dev libiberty-dev help2man inkscape
2123
2224
- name: Compile Austin
2325
run: |
2426
autoreconf --install
2527
./configure
2628
make
2729
28-
- name: Generate manpage
29-
run: bash doc/genman.sh
30+
- name: Generate docs
31+
run: bash doc/gen.sh
3032

31-
- name: Check manpage
33+
- name: Check docs
3234
run: git diff -I".* DO NOT MODIFY.*" -I"[.]TH AUSTIN.*" --exit-code src/austin.1
3335

3436
cppcheck-linux:

doc/cheatsheet.pdf

-450 KB
Binary file not shown.

doc/cheatsheet.png

1.89 KB
Loading

doc/gen.sh

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
help2man \
4+
-n "Frame stack sampler for CPython" \
5+
-i doc/examples.troff \
6+
src/austin > src/austin.1
7+
8+
VERSION=$(cat src/austin.h | sed -r -n "s/^#define VERSION[ ]+\"([0-9]+[.][0-9]+).*\"/\1/p")
9+
10+
# Update the version in the SVG file
11+
if [[ $(uname) == "Darwin" ]]; then
12+
sed -E -i '' "s/for version [0-9]+[.][0-9]+/for version $VERSION/g" "doc/cheatsheet.svg"
13+
else
14+
sed -i "s/for version [0-9]+[.][0-9]+/for version $VERSION/g" "doc/cheatsheet.svg"
15+
fi
16+
17+
inkscape \
18+
--export-type="png" \
19+
--export-filename="doc/cheatsheet.png" \
20+
--export-dpi=192 \
21+
doc/cheatsheet.svg
22+
23+
inkscape \
24+
--export-type="pdf" \
25+
--export-filename="doc/cheatsheet.pdf" \
26+
doc/cheatsheet.svg

doc/genman.sh

-6
This file was deleted.

src/austin.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
2-
.TH AUSTIN "1" "February 2024" "austin 3.7.0" "User Commands"
2+
.TH AUSTIN "1" "October 2024" "austin 3.7.0" "User Commands"
33
.SH NAME
44
austin \- Frame stack sampler for CPython
55
.SH SYNOPSIS

0 commit comments

Comments
 (0)