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: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
# Hugo resolves the landingkit module (hugo.toml [module]) with the go
# command, at the version go.mod pins.
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: false
- uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.167.0"
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:
- uses: actions/checkout@v7
with:
submodules: recursive
# Hugo resolves the landingkit module (hugo.toml [module]) with the go
# command, at the version go.mod pins.
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: false
- uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.167.0"
Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/go-ndarray/go-ndarray.github.io

go 1.27.1

require github.com/go-fleettools/landingkit v0.1.0
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/go-fleettools/landingkit v0.1.0 h1:hTeoBDLRPR5+l95YYQvQQnW0el/GTwh830LXxy6uXSg=
github.com/go-fleettools/landingkit v0.1.0/go.mod h1:NUBMh7cVFUfD/hX6Xv5ef2O/r4F6rPtPGGVd3T+9qc0=
10 changes: 10 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ disableKinds = ['taxonomy', 'term', 'rss', 'sitemap', '404']
[markup.goldmark.renderer]
unsafe = true

# The design -- layouts/partials/styles.html, theme-toggle.html,
# fork-ribbon.html and icons/{github,book}.html -- comes from the shared Hugo
# module github.com/go-fleettools/landingkit, not from copies here: the copies
# drifted. Its version is pinned in go.mod (Renovate bumps it), and kit.go
# keeps `go mod tidy` from deleting that requirement. A file of the same name
# under layouts/partials/ would silently override the module's.
[module]
[[module.imports]]
path = "github.com/go-fleettools/landingkit"

[params]
description = "go-ndarray is a pure-Go (CGO=0) NumPy-style n-dimensional array library for float64 — slicing/views, broadcasting, ufuncs, reductions and linear algebra, multicore + SIMD on amd64, arm64, ppc64le, loong64, riscv64 and s390x, with a Workspace arena for loops."

Expand Down
9 changes: 9 additions & 0 deletions kit.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//go:build tools

// This file never builds. A Hugo site has no Go code, so `go mod tidy` --
// which Renovate runs after every bump -- would find nothing that uses
// github.com/go-fleettools/landingkit and delete its requirement from go.mod.
// Importing it here keeps it. See the landingkit README.
package site

import _ "github.com/go-fleettools/landingkit"
5 changes: 0 additions & 5 deletions layouts/partials/fork-ribbon.html

This file was deleted.

21 changes: 0 additions & 21 deletions layouts/partials/icons/OCTICONS-LICENSE

This file was deleted.

5 changes: 0 additions & 5 deletions layouts/partials/icons/book.html

This file was deleted.

5 changes: 0 additions & 5 deletions layouts/partials/icons/github.html

This file was deleted.

Loading
Loading