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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# can-hub.io

Marketing + docs site for [can-hub](https://github.com/jamofer/can-hub), built
Marketing + docs site for [can-hub](https://github.com/can-hub-io/can-hub), built
with [Zola](https://www.getzola.org) and deployed on Cloudflare Pages.

```sh
Expand All @@ -13,7 +13,7 @@ with [Zola](https://www.getzola.org) and deployed on Cloudflare Pages.
- **Landing** lives in `templates/index.html` (+ `templates/partials/`); copy is
in the template, not markdown.
- **Docs** under `/docs/` are pulled from the [can-hub
repo](https://github.com/jamofer/can-hub) at build time by `build.sh`
repo](https://github.com/can-hub-io/can-hub) at build time by `build.sh`
(quick-start, installation, security, the five tool references, protocol and
design). Edit them **there**, never here — the fetched files are gitignored.
- **API reference** at `/api/` renders `web/openapi.yaml` (also fetched at build)
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -eu

ZOLA_VERSION=0.19.2
CODE_RAW=https://raw.githubusercontent.com/jamofer/can-hub/main
CODE_RAW=https://raw.githubusercontent.com/can-hub-io/can-hub/main

if [ ! -x ./zola ] || ! ./zola --version | grep -q "$ZOLA_VERSION"; then
curl -sfL "https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz" | tar xz
Expand All @@ -23,7 +23,7 @@ fetch_doc() {
} > "content/docs/$out"
curl -sf "$CODE_RAW/$repo_path" \
| sed 's#](\([a-z][a-z0-9-]*\)\.md#](/docs/\1/#g' \
| sed 's#](/docs/design/#](https://github.com/jamofer/can-hub/blob/main/doc/design.md#g' \
| sed 's#](/docs/design/#](https://github.com/can-hub-io/can-hub/blob/main/doc/design.md#g' \
>> "content/docs/$out"
}

Expand Down
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ highlight_code = true
highlight_theme = "ayu-dark"

[extra]
github = "https://github.com/jamofer/can-hub"
github = "https://github.com/can-hub-io/can-hub"
contact = "licensing@can-hub.io"
2 changes: 1 addition & 1 deletion content/docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ sort_by = "weight"

Everything here — quick start, tool reference, security, the wire protocol and
the design notes — is rendered straight from the
[can-hub repository](https://github.com/jamofer/can-hub) at build time. The
[can-hub repository](https://github.com/can-hub-io/can-hub) at build time. The
repository is the source of truth; edit the docs there.
Loading