Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
<h1 class="head">The whole of PDF<br><span class="accent">in Go, with no C anywhere.</span></h1>
<p class="sub">Read a file, write one, rearrange it, draw it, read it back as words and pictures, and <b>edit it with other people</b> — in a browser tab if you like, since every one of these builds for <code>js/wasm</code>. Fonts are parsed and shaped by <a href="https://github.com/go-opentype/opentype">go-opentype</a>, pages are rasterised by <a href="https://github.com/go-gfx/gfx">go-gfx</a>. Pure Go, <code>CGO_ENABLED=0</code>. BSD-3-Clause.</p>
<div class="cta">
<a class="btn btn-primary" href="https://go-pdfkit.github.io/app/">Edit a PDF in your browser →</a>
<a class="btn btn-ghost" href="https://go-pdfkit.github.io/docs/">Read the documentation</a>
<a class="btn btn-primary" href="https://go-pdfkit.github.io/app/">{{ partial "icons/link-external.html" . }}Edit a PDF in your browser →</a>
<a class="btn btn-ghost" href="https://go-pdfkit.github.io/docs/">{{ partial "icons/book.html" . }}Read the documentation</a>
</div>
{{/* ⛔ DERIVED. A count typed beside the data it counts is right the day
it is typed and has no way of staying right; the repository total
Expand Down Expand Up @@ -145,7 +145,7 @@ <h2>A subset, an encoding, and text you can still copy.</h2>
<div class="band">
<h2>100 % statement coverage, including the branches that report a bad file.</h2>
<p>And it <b>runs</b> on {{ len .Site.Params.arches }} architectures, not merely compiles for them. Pure Go, cgo disabled, BSD-3-Clause.</p>
<a class="btn btn-ghost" href="https://github.com/go-pdfkit">Read the source on GitHub →</a>
<a class="btn btn-ghost" href="https://github.com/go-pdfkit">{{ partial "icons/mark-github.html" . }}Read the source on GitHub →</a>
</div>
</div></section>

Expand Down
21 changes: 21 additions & 0 deletions layouts/partials/icons/OCTICONS-LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 GitHub Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
5 changes: 5 additions & 0 deletions layouts/partials/icons/book.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- /* Octicons "book" (16 px), primer/octicons @primer/octicons-react@19.40.0, copied verbatim, MIT,
(c) GitHub Inc.: the licence is OCTICONS-LICENSE beside this file.
currentColor follows the button in light and dark; aria-hidden, since
the button's text already says where it leads. */ -}}
<svg class="icon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" focusable="false"><path d="M0 1.75A.75.75 0 0 1 .75 1h4.253c1.227 0 2.317.59 3 1.501A3.743 3.743 0 0 1 11.006 1h4.245a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-4.507a2.25 2.25 0 0 0-1.591.659l-.622.621a.75.75 0 0 1-1.06 0l-.622-.621A2.25 2.25 0 0 0 5.258 13H.75a.75.75 0 0 1-.75-.75Zm7.251 10.324.004-5.073-.002-2.253A2.25 2.25 0 0 0 5.003 2.5H1.5v9h3.757a3.75 3.75 0 0 1 1.994.574ZM8.755 4.75l-.004 7.322a3.752 3.752 0 0 1 1.992-.572H14.5v-9h-3.495a2.25 2.25 0 0 0-2.25 2.25Z"/></svg>
5 changes: 5 additions & 0 deletions layouts/partials/icons/link-external.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- /* Octicons "link-external" (16 px), primer/octicons @primer/octicons-react@19.40.0, copied verbatim, MIT,
(c) GitHub Inc.: the licence is OCTICONS-LICENSE beside this file.
currentColor follows the button in light and dark; aria-hidden, since
the button's text already says where it leads. */ -}}
<svg class="icon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" focusable="false"><path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"/></svg>
5 changes: 5 additions & 0 deletions layouts/partials/icons/mark-github.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- /* Octicons "mark-github" (16 px), primer/octicons @primer/octicons-react@19.40.0, copied verbatim, MIT,
(c) GitHub Inc.: the licence is OCTICONS-LICENSE beside this file.
currentColor follows the button in light and dark; aria-hidden, since
the button's text already says where it leads. */ -}}
<svg class="icon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" focusable="false"><path d="M6.766 11.328c-2.063-.25-3.516-1.734-3.516-3.656 0-.781.281-1.625.75-2.188-.203-.515-.172-1.609.063-2.062.625-.078 1.468.25 1.968.703.594-.187 1.219-.281 1.985-.281.765 0 1.39.094 1.953.265.484-.437 1.344-.765 1.969-.687.218.422.25 1.515.046 2.047.5.593.766 1.39.766 2.203 0 1.922-1.453 3.375-3.547 3.64.531.344.89 1.094.89 1.954v1.625c0 .468.391.734.86.547C13.781 14.359 16 11.53 16 8.03 16 3.61 12.406 0 7.984 0 3.563 0 0 3.61 0 8.031a7.88 7.88 0 0 0 5.172 7.422c.422.156.828-.125.828-.547v-1.25c-.219.094-.5.156-.75.156-1.031 0-1.64-.562-2.078-1.609-.172-.422-.36-.672-.719-.719-.187-.015-.25-.093-.25-.187 0-.188.313-.328.625-.328.453 0 .844.281 1.25.86.313.452.64.655 1.031.655s.641-.14 1-.5c.266-.265.47-.5.657-.656"/></svg>
1 change: 1 addition & 0 deletions layouts/partials/styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
.theme-toggle:hover{border-color:var(--ghost-border-hover)}
.btn{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:14px;padding:11px 18px;
border-radius:12px;border:1px solid transparent;transition:.15s}
.btn .icon{flex:none}
{{/* ⛔ `.btn.btn-primary`, not `.btn-primary`. Further down this file sits
`.lm a{color:inherit}`, and `.lm a` is a class AND an element -- (0,1,1)
-- which BEATS a single class. So the primary button, which is an <a>,
Expand Down
Loading