Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
P403n1x87 committed Oct 14, 2024
1 parent d50ab47 commit 5cca8ee
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 13 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,28 @@ on:
jobs:
check-manpage:
runs-on: ubuntu-20.04
name: Check manpage
name: Check docs
steps:
- uses: actions/checkout@v3

- name: Install build dependencies
run: |
sudo add-apt-repository -y universe
sudo add-apt-repository -y ppa:inkscape.dev/stable
sudo apt-get update
sudo apt-get -y install libunwind-dev binutils-dev libiberty-dev help2man
sudo apt-get -y install libunwind-dev binutils-dev libiberty-dev help2man inkscape
- name: Compile Austin
run: |
autoreconf --install
./configure
make
- name: Generate manpage
run: bash doc/genman.sh
- name: Generate docs
run: bash doc/gen.sh

- name: Check manpage
run: git diff -I".* DO NOT MODIFY.*" -I"[.]TH AUSTIN.*" --exit-code src/austin.1
- name: Check docs
run: git diff -I".* DO NOT MODIFY.*" -I"[.]TH AUSTIN.*" --exit-code src/austin.1 doc/cheatsheet.png

cppcheck-linux:
runs-on: ubuntu-20.04
Expand Down
Binary file modified doc/cheatsheet.pdf
Binary file not shown.
Binary file modified doc/cheatsheet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions doc/gen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

help2man \
-n "Frame stack sampler for CPython" \
-i doc/examples.troff \
src/austin > src/austin.1

inkscape \
--export-type="png" \
--export-filename="doc/cheatsheet.png" \
--export-dpi=192 \
doc/cheatsheet.svg

inkscape \
--export-type="pdf" \
--export-filename="doc/cheatsheet.pdf" \
doc/cheatsheet.svg
6 changes: 0 additions & 6 deletions doc/genman.sh

This file was deleted.

2 changes: 1 addition & 1 deletion src/austin.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
.TH AUSTIN "1" "February 2024" "austin 3.7.0" "User Commands"
.TH AUSTIN "1" "October 2024" "austin 3.7.0" "User Commands"
.SH NAME
austin \- Frame stack sampler for CPython
.SH SYNOPSIS
Expand Down

0 comments on commit 5cca8ee

Please sign in to comment.