Skip to content

Commit a3fb5ad

Browse files
committed
update ebooks
1 parent f8d659f commit a3fb5ad

File tree

5 files changed

+29
-26
lines changed

5 files changed

+29
-26
lines changed

_docs/conceptual_topics_in_api_docs/docconceptual.md

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ path1: docconceptual.html
66
weight: 7.0
77
course: "Documenting REST APIs"
88
section: docconceptual
9-
redirect_from:
10-
- docconceptual.html
119
last-modified: 2020-11-02
1210
---
1311

_docs/introduction_to_rest_apis/docapis_formats.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar: docapis
66
section: introtoapis
77
path1: docapis_introtoapis.html
88
weight: 1.21
9-
last-modified: 2022-01-01
9+
last-modified: 2022-02-08
1010
---
1111

1212
<figure><a class="noCrossRef" href="https://idbwrtng.com/learnapidoc-pdf"><img class="tiny" style="float: right; border: 4px solid #dedede; margin-left: 10px;" src="{{site.media}}/ebook_cover.svg" alt="Documenting APIs ebook - You can read this course content as an ebook or PDF." /></a></figure>

_docs/metrics_and_measurement/docapis_quality_checklist.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ section: metrics
88
path1: docapis_metrics_and_measurement.html
99
last-modified: 2022-02-07
1010
redirect_from:
11-
- /learnapidoc/docapis_metrics_second_level_checklist.html
12-
- /learnapidoc/docapis_metrics_first_level_checklist.html
11+
- /learnapidoc/docapis_metrics_second_level_checklist
12+
- /learnapidoc/docapis_metrics_first_level_checklist
1313
---
1414

1515
*This section continues from the previous page, [Different approaches for assessing information quality](docapis_metrics_assessing_information_quality.html).*

build_ebooks.sh

+25-20
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@
33
## docapis
44
## writing_process
55

6-
# echo "Removing previous ebooks"
7-
# rm ebooks/docapis.mobi
8-
# rm ebooks/docapis.epub
9-
# rm ebooks/.DS_Store
10-
# echo "Done removing old ebooks"
6+
echo "Removing previous ebooks"
7+
rm ebooks/docapis.mobi
8+
rm ebooks/docapis.epub
9+
rm ebooks/.DS_Store
10+
echo "Done removing old ebooks"
11+
12+
# echo "Build kindle output"
13+
# bundle exec jekyll build --config _config_kindle.yml,_config_simplifying-complexity.yml
14+
# echo $?
15+
# echo "Done building kindle output"
1116

1217
echo "Build kindle output"
13-
bundle exec jekyll build --config _config_kindle.yml,_config_simplifying-complexity.yml
18+
bundle exec jekyll build --config _config_kindle.yml
1419
echo $?
1520
echo "Done building kindle output"
1621

@@ -20,22 +25,22 @@ echo $?
2025
echo "Done creating mobi file"
2126

2227
echo "Move mobi file into mobi directory"
23-
mv _site/docapis.mobi ebooks/simplifying-complexity.mobi;
28+
mv _site/docapis.mobi ebooks/docapis.mobi;
2429
echo $?
2530
echo "Done moving the file! Note that if the build failed, often due to missing media, there won't be a mobi file in the ebooks directory."
2631

27-
# echo "Create epub output"
28-
# mv _site ebooks/docapis
29-
# cd ebooks/docapis
30-
# zip -rX docapis.epub mimetype META-INF/ .
31-
# echo $?
32-
# echo "Done creating epub"
33-
#
34-
# echo "Move epub"
35-
# cd ../../
36-
# mv ebooks/$1/$1.epub ebooks/$1.epub
37-
# rm -r ebooks/$1/
38-
# echo $?
39-
# echo "Done moving epub"
32+
echo "Create epub output"
33+
mv _site ebooks/docapis
34+
cd ebooks/docapis
35+
zip -rX docapis.epub mimetype META-INF/ .
36+
echo $?
37+
echo "Done creating epub"
38+
39+
echo "Move epub"
40+
cd ../../
41+
mv ebooks/$1/$1.epub ebooks/$1.epub
42+
rm -r ebooks/$1/
43+
echo $?
44+
echo "Done moving epub"
4045

4146
echo "Ready to upload: run myvenv and then ./upload_outputs.sh"

docapis.opf

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ layout: null
140140
<item id="css_syntax" href="assets/css/syntax.css" media-type="text/css"/>
141141

142142
<!-- table of contents [mandatory] -->
143-
<item id="My_Table_of_Contents" media-type="application/x-dtbncx+xml" href="docapis_test.ncx"/>
143+
<item id="My_Table_of_Contents" media-type="application/x-dtbncx+xml" href="docapis.ncx"/>
144144

145145
<!-- cover image [mandatory] -->
146146
<item id="My_Cover" media-type="image/png" href="images/{{site.cover_image}}"/>

0 commit comments

Comments
 (0)