Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d3d920e

Browse files
committed
Improve documentation
1 parent 51b8f5c commit d3d920e

3 files changed

Lines changed: 41 additions & 23 deletions

File tree

README.rst

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,22 @@ Setup
2323
Usage
2424
*****
2525

26+
::
27+
28+
python pygource.py \
29+
--name "Project ACME" \
30+
--path /path/to/acme \
31+
--audio-source '/path/to/audio.mp3' \
32+
--audio-loops 10
33+
34+
35+
********
36+
Examples
37+
********
38+
39+
Common
40+
======
41+
2642
Get an audio file::
2743

2844
youtube-dl --extract-audio --format=m4a \
@@ -36,32 +52,42 @@ Convert it to MP3 format::
3652
-c:v copy -c:a libmp3lame -q:a 4 \
3753
"./var/Beastie boys - Suco De Tangerina.mp3"
3854

39-
Get sources of repository::
55+
Gource
56+
======
57+
58+
Acquire sources::
4059

4160
git clone https://github.com/acaudwell/Gource ./var/Gource
4261

43-
Invoke renderer and play video, example 1::
62+
Render and play video::
4463

4564
python pygource.py \
46-
--name Gource \
65+
--name "Gource" \
4766
--path "./var/Gource" \
4867
--audio-source "./var/Beastie boys - Suco De Tangerina.mp3" \
49-
--audio-loops 2
68+
--audio-loops 10
5069

5170
open -a vlc Gource.mp4
5271

53-
Invoke renderer and play video, example 2::
72+
73+
CrateDB
74+
=======
75+
76+
Acquire sources::
77+
78+
git clone https://github.com/crate/crate ./var/crate
79+
80+
Render and play video::
5481

5582
python pygource.py \
56-
--name "CrateDB 2022Q1" \
57-
--path ~/dev/crate/sources/crate \
83+
--name "CrateDB 2022H2" \
84+
--path ./var/crate \
5885
--audio-source "./var/Beastie boys - Suco De Tangerina.mp3" \
5986
--audio-loops 10 \
6087
--outdir "./var" \
6188
--overwrite
6289

63-
# --time-lapse \
90+
open -a vlc "./var/CrateDB 2022H2.mp4"
6491

65-
open -a vlc "./var/CrateDB 2022Q1.mp4"
6692

6793
.. _Gource: https://github.com/acaudwell/Gource

backlog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
PyGource backlog
33
################
44

5+
- [o] Add ``--start-date`` and ``--stop-date`` options.
56
- [o] Better ``--time-lapse`` option.
7+
- [o] Make option ``--audio-loops`` obsolete.

pygource.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Renders video of repository commit history using gource, adds background song.
2+
Render video of VCS repository commit history using Gource, with audio.
33
44
Prerequisites::
55
@@ -11,7 +11,7 @@
1111
--name acme-trunk \
1212
--path ~/dev/three-investigators/acme/trunk \
1313
--audio-source '/home/foobar/music/Beastie boys/Suco De Tangerina.mp3' \
14-
--audio-loops 50 \
14+
--audio-loops 10 \
1515
# --overwrite
1616
"""
1717
import os
@@ -253,17 +253,7 @@ def run(self):
253253
shutil.move(tmpfile, self.video_file)
254254

255255

256-
def render_single():
257-
"""
258-
Renders single projects' vcs repository, e.g.::
259-
260-
bin/gource-render-single \
261-
--name acme-trunk \
262-
--path ~/dev/three-investigators/acme/trunk \
263-
--audio-source '/home/foobar/music/Beastie boys/Suco De Tangerina.mp3' \
264-
--audio-loops 50 \
265-
# --overwrite
266-
"""
256+
def render():
267257

268258
from optparse import OptionParser
269259

@@ -318,4 +308,4 @@ def render_single():
318308

319309

320310
if __name__ == "__main__":
321-
render_single()
311+
render()

0 commit comments

Comments
 (0)