diff --git a/docs/API.en.epub b/docs/API.en.epub index 145e9eb..46aa177 100644 Binary files a/docs/API.en.epub and b/docs/API.en.epub differ diff --git a/docs/API.en.html b/docs/API.en.html index 1e1a22c..f321a48 100644 --- a/docs/API.en.html +++ b/docs/API.en.html @@ -673,13 +673,13 @@ ul.references li p a.back-anchor {
  • -
    +

    Sergey Konstantinov
    The API

    -

    +

    Sergey Konstantinov. The API.
    yatwirl@gmail.com · linkedin.com/in/twirl · twirl.substack.com

    API-first development is one of the hottest technical topics nowadays since many companies have started to realize that APIs serves as a multiplier to their opportunities — but it amplifies the design mistakes as well.

    @@ -694,7 +694,7 @@ ul.references li p a.back-anchor { Creative Commons «Attribution-NonCommercial» Logo

    This book is distributed under the Creative Commons Attribution-NonCommercial 4.0 International licence.

    Source code available at github.com/twirl/The-API-Book

    -

    Share: · · ·

    +

    API-first development is one of the hottest technical topics nowadays since many companies have started to realize that APIs serves as a multiplier to their opportunities — but it amplifies the design mistakes as well.

    @@ -123,7 +123,7 @@
  • -

    [Work in Progress] Section V. SDKs & UI Libraries

    +

    Section V. SDKs & UI Libraries

  • diff --git a/docs/index.ru.html b/docs/index.ru.html index 308631c..0132ec3 100644 --- a/docs/index.ru.html +++ b/docs/index.ru.html @@ -123,7 +123,7 @@
  • -

    [В разработке] Раздел V. SDK и UI

    +

    Раздел V. SDK и UI

  • diff --git a/src/css/print.css b/src/css/print.css index 4a14319..9569b1b 100644 --- a/src/css/print.css +++ b/src/css/print.css @@ -1,101 +1,86 @@ -@page { - margin: 20mm 18mm 27mm 25mm; - size: 145mm 204mm; -} +@media print { + @page { + margin: 20mm 18mm 27mm 25mm; + size: letter; + } -@page:first { - margin: 0; - size: 102mm 157mm; -}; + html, + body { + margin: 0; + padding: 0; + font-size: 14pt; + } -html, -body { - margin: 0; - padding: 0; -} + .toc a, + ul li, + ol li { + text-size-adjust: none; + } -.toc a, ul li, ol li { - text-size-adjust: none; - font-size: 11pt !important; -} + pre { + margin: 0 0 1em 0; + width: calc(100% - 2px); + line-height: 0.8em !important; + } -pre { - margin: 0 0 1em 0; - width: calc(100% - 2px); - line-height: 0.8em !important; -} + p code, + pre code { + font-size: 12pt !important; + } -p code, pre code { - font-size: 9pt !important; -} + img { + margin: 1px; + } -img { - margin: 1px; -} + img.cc-by-nc-img { + width: 90px; + } -img.cc-by-nc-img { - width: 90px; -} + h1, + h2, + h3, + h4, + h5 { + break-after: avoid; + line-height: 1.2em; + font-size: 120%; + } -h1, -h2, -h3, -h4, -h5, -h6 { - page-break-before: auto; - page-break-after: avoid; - line-height: 1.2em; - font-size: 80%; -} + h6 { + break-before: avoid; + } -p { - orphans: 5; - font-size: 11pt; -} + p { + orphans: 5; + widows: 5; + } -img { - margin-top: 1em; - page-break-before: auto; - page-break-after: avoid; -} + img { + margin-top: 1em; + break-after: avoid; + } -.cover { - background-image: url(/cover_300dpi.png); - background-position: 50% 50%; - background-repeat: no-repeat; - background-size: cover; - position: relative; - margin: 0; - aspect-ratio: 102/150; -} + .cover { + display: none; + } -.cover h1 { - font-size: 7mm; - text-align: left; - padding: 8mm 18mm 10mm 18mm; - line-height: 12mm; -} + .toc ul li ul li + li, + h4 + ul, + h4 + p { + break-inside: avoid; + break-before: avoid; + break-after: avoid; + } -.cover h1 .title { - font-size: 10mm; -} + .page-break { + break-after: page; + } -p, -ul, -ol { - orphans: 4; -} + .no-page-break { + break-inside: avoid; + } -.page-break, -.cover { - page-break-after: always; -} - -.no-page-break { - page-break-inside: avoid; -} - -nav.page-main { - display: none; + nav.page-main { + display: none; + } } diff --git a/src/templates.mjs b/src/templates.mjs index f1a7c34..200863a 100644 --- a/src/templates.mjs +++ b/src/templates.mjs @@ -77,7 +77,7 @@ export const templates = { >${l10n.frontPage.title} -

    +

    ${l10n.author}. ${l10n.title}.
    ${ l10n.links.emailString