Skip to content

Commit b42e425

Browse files
HTML documentation
1 parent 8e892c5 commit b42e425

5 files changed

Lines changed: 2926 additions & 9 deletions

File tree

.github/workflows/doxygen.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Doxygen
2+
run-name: Updating online doc
3+
on:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
with:
14+
submodules: "true"
15+
16+
- name: Install Doxygen
17+
run: sudo apt-get install doxygen graphviz -y
18+
shell: bash
19+
20+
- name: Generate Doxygen Documentation
21+
run: cd docs; ./build_doc.sh
22+
shell: bash
23+
24+
- name: Create .nojekyll (ensures pages with underscores work on gh pages)
25+
run: touch docs/html/.nojekyll
26+
shell: bash
27+
28+
- name: Deploy to GitHub Pages
29+
uses: JamesIves/github-pages-deploy-action@v4
30+
with:
31+
branch: gh-pages
32+
folder: docs/html
33+

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
src/gitgraphz.egg-info
22
src/gitgraphz/__pycache__
3+
docs/html
4+
*.swp

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# git-graph
1+
# git-graphz
22

33
Tool to create a graph from a git history showing tags, branches, stash nodes, cherry-picks.
44

@@ -11,27 +11,31 @@ Tool to create a graph from a git history showing tags, branches, stash nodes, c
1111

1212
Run the following inside a git directory to write a graph description (DOT format) to stdout.
1313

14-
./git-graph
14+
git-graphz
1515

1616
On linux you can use the following command to create a graph.ps file
1717

18-
./git-graph | dot -Tps -o graph.ps
18+
git-graphz | dot -Tps -o graph.ps
1919

2020
Or you can simply (the file extension must be an accepted command line option of the dot utility (see [here](https://www.graphviz.org/docs/outputs/))
2121

22-
./git-graph -o image.pdf
22+
git-graphz -o image.pdf
2323

2424
In addition to the graphviz accepted extensions, it is also possible to generate an html page
2525

26-
./git-graph -o image.html
26+
git-graphz -o image.html
2727

2828
Example with range
2929

30-
./git-graph -r a51eced..HEAD | dot -Tps -o graph.ps
30+
git-graphz -r a51eced..HEAD | dot -Tps -o graph.ps
3131

3232
Example with upstream commits
3333

34-
./git-graph --option=--remotes=upstream
34+
git-graphz --option=--remotes=upstream
35+
36+
You can also provide an url for the git repository (instead of running the command in a git directory)
37+
38+
git-graphz -p https://github.com/SebastienRietteMTO/git-graphz.git
3539

3640
### Parameters
3741
* **-v**: to print info (or debug if provided twice) output to stderr
@@ -40,5 +44,5 @@ Example with upstream commits
4044
* **-p path**: to specify the directory containig the git repository (current working directory if omitted) or the url of a git repository
4145
* **--option=OPTION**: to add an option to the git log command used to list the relevant commits. If no option is provided the '--all' option is used. Ex: --option=--remotes=upstream
4246

43-
# Example Graph
44-
![alt text](images/example.gif)
47+
# Example Graphs
48+
![simple example](docs/example.gif)

0 commit comments

Comments
 (0)