File tree Expand file tree Collapse file tree 5 files changed +38
-5
lines changed Expand file tree Collapse file tree 5 files changed +38
-5
lines changed Original file line number Diff line number Diff line change 56
56
with :
57
57
path : Documentation/git-absorb.1
58
58
name : git-absorb.1
59
+ - name : Upload HTML docs page as artifact
60
+ uses : actions/upload-artifact@v4
61
+ with :
62
+ path : Documentation/git-absorb.html
63
+ name : git-absorb.html
Original file line number Diff line number Diff line change 78
78
with :
79
79
name : ${{ needs.create-release.outputs.GA_VERSION }}
80
80
files : Documentation/git-absorb.1
81
+ - name : Upload HTML docs as artifact
82
+ uses : actions/upload-artifact@v4
83
+ with :
84
+ path : Documentation/git-absorb.html
85
+ name : git-absorb.html
86
+ - name : Attach HTML docs to release
87
+ uses : softprops/action-gh-release@v2
88
+ with :
89
+ name : ${{ needs.create-release.outputs.GA_VERSION }}
90
+ files : Documentation/git-absorb.html
81
91
82
92
build-release :
83
93
name : build-release
@@ -155,6 +165,12 @@ jobs:
155
165
name : git-absorb.1
156
166
path : Documentation
157
167
168
+ - name : Download HTML docs
169
+ uses : actions/download-artifact@v4
170
+ with :
171
+ name : git-absorb.html
172
+ path : Documentation
173
+
158
174
- name : Build archive
159
175
shell : bash
160
176
run : |
@@ -163,7 +179,7 @@ jobs:
163
179
mkdir -p "$staging"/doc
164
180
165
181
cp {README.md,LICENSE.md} "$staging/"
166
- cp Documentation/{git-absorb.1,git-absorb.adoc} "$staging/doc/"
182
+ cp Documentation/{git-absorb.1,git-absorb.html,git-absorb. adoc} "$staging/doc/"
167
183
168
184
if [[ "${{ matrix.target }}" =~ .*windows.* ]]; then
169
185
cp "target/${{ matrix.target }}/release/git-absorb.exe" "$staging/"
Original file line number Diff line number Diff line change 1
1
/Documentation /git-absorb.1
2
+ /Documentation /git-absorb.html
2
3
/target /
3
4
.idea
Original file line number Diff line number Diff line change 1
- build-manpage : git-absorb.1
1
+ build-documentation : git-absorb.1 git-absorb.html
2
2
3
3
git-absorb.1 : git-absorb.adoc
4
4
$(if $(shell command -v a2x) ,,$(error "No a2x in PATH; install asciidoc.") )
5
5
$(info Building manpage. This may take a few moments...)
6
6
a2x -L -d manpage -f manpage git-absorb.adoc --attribute man-version=${GA_VERSION}
7
7
8
+ git-absorb.html : git-absorb.adoc
9
+ $(if $(shell command -v a2x) ,,$(error "No a2x in PATH; install asciidoc.") )
10
+
11
+ $(info Building HTML docs. This may take a few moments...)
12
+ asciidoc -d manpage -b xhtml11 git-absorb.adoc
13
+
8
14
clean :
9
15
rm -f git-absorb.1 git-absorb.xml
Original file line number Diff line number Diff line change 1
1
git-absorb manual
2
2
=================
3
3
4
- This project's man page ` git-absorb.1 ` can be generated from ` git-absorb.adoc `
4
+ This project's documentation can be generated from [ git-absorb.adoc] [ ] as
5
+
6
+ * a man page (` git-absorb.1 ` ) and
7
+ * an HTML document (` git-absorb.html ` )
8
+
5
9
by running ` make ` .
6
10
7
11
Build dependencies
8
12
------------------
9
13
10
- - [ asciidoc] [ ] (tested with version 8.6.10 )
14
+ - [ asciidoc] [ ] (tested with version 10.2.0 )
11
15
- GNU Make
12
16
13
- [ asciidoc ] : http://www.methods.co.nz/asciidoc/
17
+ [ asciidoc ] : https://asciidoc.org/
18
+ [ git-absorb.adoc ] : git-absorb.adoc
You can’t perform that action at this time.
0 commit comments