Skip to content

Name the documentation site as the packages' homepage - #111

Merged
zoosky merged 1 commit into
masterfrom
chore/package-homepage
Sep 13, 2026
Merged

zoosky merged 1 commit into
masterfrom
chore/package-homepage

Conversation

@zoosky

@zoosky zoosky commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Why

The npm page for @zoosky/accent-sass shows no Homepage link, and neither do the three crates on crates.io. npm reads the link from the homepage field in package.json, and wasm-pack generates that field from the crate manifest.

What changes

  • homepage field. crates/lib/Cargo.toml, crates/compiler/Cargo.toml and crates/accent-sass-macro/Cargo.toml each set homepage = "https://zoosky.github.io/accent-sass/", so crates.io links the site from every crate.
  • Changelog. An entry under [Unreleased].

What was measured

  • Cargo metadata: cargo metadata reports the homepage for accent_sass_compiler, accent-sass-macro and accent-sass.
  • Generated package.json: a fresh wasm-pack build --scope zoosky writes "homepage": "https://zoosky.github.io/accent-sass/" into package.json, next to the repository URL.
  • Quality gates: fmt is clean, clippy is clean on 1.96.1 and stable, and the tests pass.

When it shows up

Neither registry lets you change the metadata of a version that is already published, so 0.16.0 keeps its current pages. The link appears with the next published version.

release.sh --npm-only will not republish 0.16.0 with this change: its source guard counts crates/lib/Cargo.toml as released source. Publishing a new version is the only route.

The npm page for @zoosky/accent-sass had no Homepage link, and neither did
the three crates on crates.io. npm takes the link from package.json's
`homepage`, which wasm-pack fills from the crate manifest, so the field goes
in Cargo.toml: https://zoosky.github.io/accent-sass/. All three crates get
it, so crates.io links the site from each.

Checked: `cargo metadata` reports the homepage for accent_sass_compiler,
accent-sass-macro and accent-sass, and a fresh `wasm-pack build --scope
zoosky` writes it into package.json beside the repository URL.

A registry cannot change the metadata of a version it already has, so the
link appears with the next published version, not on 0.16.0.
@zoosky
zoosky merged commit d664ce0 into master Sep 13, 2026
12 checks passed
@zoosky
zoosky deleted the chore/package-homepage branch September 13, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant