1
0
mirror of https://github.com/twirl/The-API-Book.git synced 2025-08-10 21:51:42 +02:00

various build improvements

This commit is contained in:
Sergey Konstantinov
2023-09-24 23:27:06 +03:00
parent b292809fba
commit 7ecb663613
19 changed files with 561 additions and 342 deletions

Binary file not shown.

View File

@@ -346,6 +346,7 @@ ul.references li a.back-anchor {
text-align: right;
padding-right: 0.3em;
}
body > article {
position: relative;
}
@@ -545,11 +546,6 @@ article ul.share {
z-index: 1;
}
body > article {
margin: 2em auto;
max-width: 60%;
}
a.anchor:before {
display: inline-block;
content: '¶';
@@ -582,46 +578,33 @@ ul.references li p a.back-anchor {
flex-shrink: 0;
}
@media screen {
.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
a.anchor:before {
display: inline-block;
content: '¶';
width: 0.8em;
color: lightgray;
text-indent: 0;
}
h5 a.anchor:before {
color: transparent;
}
a.anchor:hover:before {
color: black;
}
h2:not(.toc),
h3,
h5 {
text-indent: -0.8em;
}
@keyframes octocat-wave {
0%, 100% {
transform: rotate(0);
}
20%, 60% {
transform: rotate(-25deg);
}
40%, 80% {
transform: rotate(10deg);
}
a.anchor:before {
display: inline-block;
content: '¶';
width: 0.8em;
color: lightgray;
text-indent: 0;
}
h5 a.anchor:before {
color: transparent;
}
a.anchor:hover:before {
color: black;
}
h2:not(.toc),
h3,
h5 {
text-indent: -0.8em;
}
@media screen {
body > article {
margin: 2em auto;
max-width: 60%;
}
}
@media screen and (max-width: 1000px) {
@@ -664,7 +647,98 @@ ul.references li p a.back-anchor {
.cover {
font-size: 2.8vw;
}
}</style>
}
@media print {
html,
body {
margin: 0;
padding: 0;
font-size: 14pt;
}
.toc a,
ul li,
ol li {
text-size-adjust: none;
}
pre {
margin: 0 0 1em 0;
width: calc(100% - 2px);
line-height: 0.8em !important;
}
p code,
pre code {
font-size: 12pt !important;
}
img {
margin: 1px;
}
img.cc-by-nc-img {
width: 90px;
}
h1,
h2,
h3,
h4,
h5 {
break-after: avoid;
line-height: 1.2em;
font-size: 120%;
}
h6 {
break-before: avoid;
}
p,
li {
orphans: 5;
widows: 5;
}
img {
margin-top: 1em;
break-after: avoid;
}
.cover {
display: none;
}
.toc ul li ul li + li,
h4 + ul,
h4 + p {
break-inside: avoid;
break-before: avoid;
break-after: avoid;
}
.page-break {
break-after: page;
}
.no-page-break {
break-inside: avoid;
}
nav.page-main {
display: none;
}
}
@media print {
@page {
margin: 28mm 25mm 30mm 25mm;
padding: 0;
size: A4;
}
}
</style>
</head><body><div class="fade display-none"></div>
<aside class="side-panel display-none">
<h3 class="title">Sergey Konstantinov. The API</h3>

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

BIN
docs/API.ru.sample.epub Normal file

Binary file not shown.