Skip to content

Commit 9eaee06

Browse files
committed
Upstream changes
2 parents 48d477a + 7708643 commit 9eaee06

8 files changed

Lines changed: 67 additions & 44 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: "bug"
6+
assignees: ""
87
---
98

109
<!-- Before filing a bug please check the following: -->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1+
blank_issues_enabled: false
12
contact_links:
23
- name: Translation bug
34
url: https://github.com/progit/progit2/blob/master/TRANSLATING.md
45
about: Refer to this table to find out where to report translation bugs.
56

67
- name: Report bugs for git-scm.com site
78
url: https://github.com/git/git-scm.com/issues/
8-
about: Please report problems with the git-scm.com site here.
9+
about: Please report problems with the git-scm.com site there.
910

1011
- name: Bug is about Git program itself
1112
url: https://git-scm.com/community
12-
about: Please report problems with the Git program here.
13+
about: Please report problems with the Git program there.
1314

1415
- name: Bug is about Git for Windows
1516
url: https://github.com/git-for-windows/git/issues
16-
about: Please report problems with Git for Windows here.
17+
about: Please report problems with Git for Windows there.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: Enhancement idea
3+
about: Suggest an idea for the ProGit2 book or repository
4+
title: ""
5+
labels: "enhancement"
6+
assignees: ""
7+
---
8+
9+
**Give a general overview of your idea.**
10+
11+
**Explain what problem you're trying to solve.**
12+
13+
**Have you thought about other solutions?**
14+
15+
**Do you want to help with this enhancement idea?**

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ updates:
66
schedule:
77
interval: "daily" # Checks on Monday trough Friday.
88

9+
# Maintain GitHub Action runners
10+
- package-ecosystem: "github-actions"
11+
directory: "/"
12+
schedule:
13+
interval: "daily" # Checks on Monday trough Friday.
14+
915
# Set default reviewer and labels
1016
reviewers:
1117
- "ben"

Gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ gem 'asciidoctor', '2.0.15'
66
gem 'json', '2.5.1'
77
gem 'awesome_print', '1.9.2'
88

9-
gem 'asciidoctor-epub3', '1.5.0.alpha.19'
10-
gem 'asciidoctor-pdf', '1.5.4'
9+
gem 'asciidoctor-epub3', '1.5.1'
10+
gem 'asciidoctor-pdf', '1.6.0'
1111

1212
gem 'coderay', '1.1.3'
1313
gem 'pygments.rb', '2.2.0'
1414
gem 'thread_safe', '0.3.6'
1515
gem 'epubcheck-ruby', '4.2.5.0'
16-
gem 'html-proofer', '3.19.0'
16+
gem 'html-proofer', '3.19.2'

README.asc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
== Генериране на книгата
1616

1717
Можете да генерирате e-book файловете ръчно с Asciidoctor.
18-
Преди можехме да генерираме и .mobi файлове (за Kindle), но в момента това не е така, вижте #1496 за повече подробности.
19-
Посредством следните команди _можете_ да генерирате също HTML, Epub и PDF изходни файлове:
18+
Посредством следните команди _можете_ да генерирате също HTML, Epub, Mobi и PDF изходни файлове:
2019

2120
----
2221
$ bundle install
@@ -25,11 +24,13 @@ Converting to HTML...
2524
-- HTML output at progit.html
2625
Converting to EPub...
2726
-- Epub output at progit.epub
27+
Converting to Mobi (kf8)...
28+
-- Mobi output at progit.mobi
2829
Converting to PDF...
2930
-- PDF output at progit.pdf
3031
----
3132

32-
Можете да генерирате и само един от поддържаните формати (HTML, EPUB, или PDF).
33+
Можете да генерирате и само един от поддържаните формати (HTML, EPUB, mobi или PDF).
3334
Използвайте някоя от следните команди:
3435

3536
За да генерирате HTML варианта:
@@ -44,6 +45,12 @@ $ bundle exec rake book:build_html
4445
$ bundle exec rake book:build_epub
4546
----
4647

48+
За да генерирате mobi врианта:
49+
50+
----
51+
$ bundle exec rake book:build_mobi
52+
----
53+
4754
За да генерирате PDF варианта:
4855

4956
----

Rakefile

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace :book do
3737
end
3838

3939
desc 'build basic book formats'
40-
task :build => [:build_html, :build_epub, :build_pdf] do
40+
task :build => [:build_html, :build_epub, :build_mobi, :build_pdf] do
4141
begin
4242
# Run check
4343
Rake::Task['book:check'].invoke
@@ -50,7 +50,7 @@ namespace :book do
5050
end
5151

5252
desc 'build basic book formats (for ci)'
53-
task :ci => [:build_html, :build_epub, :build_pdf] do
53+
task :ci => [:build_html, :build_epub, :build_mobi, :build_pdf] do
5454
# Run check, but don't ignore any errors
5555
Rake::Task['book:check'].invoke
5656
end
@@ -84,18 +84,11 @@ namespace :book do
8484

8585
desc 'build Mobi format'
8686
task :build_mobi => 'book/contributors.txt' do
87-
# Commented out the .mobi file creation because the kindlegen dependency is not available.
88-
# For more information on this see: #1496.
89-
# This is a (hopefully) temporary fix until upstream asciidoctor-epub3 is fixed and we can offer .mobi files again.
90-
91-
# puts "Converting to Mobi (kf8)..."
92-
# `bundle exec asciidoctor-epub3 #{params} -a ebook-format=kf8 progit.asc`
93-
# puts " -- Mobi output at progit.mobi"
94-
95-
# FIXME: If asciidoctor-epub3 supports Mobi again, uncomment these lines below
96-
puts "Converting to Mobi isn't supported yet."
97-
puts "For more information see issue #1496 at https://github.com/progit/progit2/issues/1496."
98-
exit(127)
87+
check_contrib()
88+
89+
puts "Converting to Mobi (kf8)..."
90+
`bundle exec asciidoctor-epub3 #{params} -a ebook-format=kf8 progit.asc`
91+
puts " -- Mobi output at progit.mobi"
9992
end
10093

10194
desc 'build PDF format'
@@ -120,7 +113,7 @@ namespace :book do
120113
begin
121114
puts 'Removing generated files'
122115

123-
FileList['book/contributors.txt', 'progit.html', 'progit.epub', 'progit.pdf'].each do |file|
116+
FileList['book/contributors.txt', 'progit.html', 'progit.epub', 'progit.mobi', 'progit.pdf'].each do |file|
124117
rm file
125118

126119
# Rescue if file not found

book/01-introduction/sections/help.asc

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,22 @@ $ git help config
2828
$ git add -h
2929
usage: git add [<options>] [--] <pathspec>...
3030
31-
-n, --dry-run dry run
32-
-v, --verbose be verbose
33-
34-
-i, --interactive interactive picking
35-
-p, --patch select hunks interactively
36-
-e, --edit edit current diff and apply
37-
-f, --force allow adding otherwise ignored files
38-
-u, --update update tracked files
39-
--renormalize renormalize EOL of tracked files (implies -u)
40-
-N, --intent-to-add record only the fact that the path will be added later
41-
-A, --all add changes from all tracked and untracked files
42-
--ignore-removal ignore paths removed in the working tree (same as --no-all)
43-
--refresh don't add, only refresh the index
44-
--ignore-errors just skip files which cannot be added because of errors
45-
--ignore-missing check if - even missing - files are ignored in dry run
46-
--chmod (+|-)x override the executable bit of the listed files
31+
-n, --dry-run dry run
32+
-v, --verbose be verbose
33+
34+
-i, --interactive interactive picking
35+
-p, --patch select hunks interactively
36+
-e, --edit edit current diff and apply
37+
-f, --force allow adding otherwise ignored files
38+
-u, --update update tracked files
39+
--renormalize renormalize EOL of tracked files (implies -u)
40+
-N, --intent-to-add record only the fact that the path will be added later
41+
-A, --all add changes from all tracked and untracked files
42+
--ignore-removal ignore paths removed in the working tree (same as --no-all)
43+
--refresh don't add, only refresh the index
44+
--ignore-errors just skip files which cannot be added because of errors
45+
--ignore-missing check if - even missing - files are ignored in dry run
46+
--chmod (+|-)x override the executable bit of the listed files
47+
--pathspec-from-file <file> read pathspec from file
48+
--pathspec-file-nul with --pathspec-from-file, pathspec elements are separated with NUL character
4749
----

0 commit comments

Comments
 (0)