Skip to content

Commit

Permalink
fix publish doc build (#161)
Browse files Browse the repository at this point in the history
Make a copy of the html header into a new assets folder this time.

---------

Co-authored-by: Ryan Goree <[email protected]>
  • Loading branch information
dpaiton and ryangoree authored Jul 3, 2024
1 parent eb0fe9e commit ed36e6f
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 29 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ members = [

[workspace.package]
name = "hyperdrive-rs"
version = "0.16.5"
version = "0.16.6"
authors = [
"Alex Towle <[email protected]>",
"Dylan Paiton <[email protected]>",
Expand All @@ -29,9 +29,9 @@ repository = "https://github.com/delvtech/hyperdrive-rs"
description = "API for simulating Hyperdrive smart contract transactions."

[workspace.dependencies]
fixedpointmath = { version = "0.16.5", path="crates/fixedpointmath" }
hyperdrive-wrappers = { version = "0.16.5", path="crates/hyperdrive-wrappers" }
hyperdrive-math = { version = "0.16.5", path="crates/hyperdrive-math" }
fixedpointmath = { version = "0.16.6", path="crates/fixedpointmath" }
hyperdrive-wrappers = { version = "0.16.6", path="crates/hyperdrive-wrappers" }
hyperdrive-math = { version = "0.16.6", path="crates/hyperdrive-math" }

[workspace.lints.clippy]
comparison_chain = "allow"
Expand Down
5 changes: 1 addition & 4 deletions bindings/hyperdrivepy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,4 @@ fixedpointmath = { path = "../../crates/fixedpointmath" }
hyperdrive-math = { path = "../../crates/hyperdrive-math" }
hyperdrive-wrappers = { path = "../../crates/hyperdrive-wrappers" }

pyo3 = { version = "0.21.2", features = ["abi3-py37", "multiple-pymethods"] }

[package.metadata.docs.rs]
rustdoc-args = ["--html-in-header", "../assets/katex_header.html"]
pyo3 = { version = "0.21.2", features = ["abi3-py37", "multiple-pymethods"] }
2 changes: 1 addition & 1 deletion bindings/hyperdrivepy/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "hyperdrivepy"
version = "0.16.5"
version = "0.16.6"
requires-python = ">=3.7"
classifiers = [
"Programming Language :: Rust",
Expand Down
2 changes: 1 addition & 1 deletion bindings/hyperdrivepy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="hyperdrivepy",
version="0.16.5",
version="0.16.6",
packages=["hyperdrivepy"],
package_dir={"": "python"},
rust_extensions=[
Expand Down
2 changes: 1 addition & 1 deletion crates/fixedpointmath/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ test-utils = { path = "../test-utils" }
hyperdrive-wrappers = { path = "../hyperdrive-wrappers" }

[package.metadata.docs.rs]
rustdoc-args = ["--html-in-header", "../assets/katex_header.html"]
rustdoc-args = ["--html-in-header", "assets/katex_header.html"]
2 changes: 1 addition & 1 deletion crates/hyperdrive-math/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ tracing-test = "0.1"
hyperdrive-test-utils = { path = "../hyperdrive-test-utils" }

[package.metadata.docs.rs]
rustdoc-args = ["--html-in-header", "../assets/katex_header.html"]
rustdoc-args = ["--html-in-header", "assets/katex_header.html"]
5 changes: 1 addition & 4 deletions crates/hyperdrive-test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,4 @@ tracing = "0.1"
# Workspace dependencies.
fixedpointmath = { path = "../fixedpointmath" }
hyperdrive-wrappers = { path = "../hyperdrive-wrappers" }
test-utils = { path = "../test-utils" }

[package.metadata.docs.rs]
rustdoc-args = ["--html-in-header", "../assets/katex_header.html"]
test-utils = { path = "../test-utils" }
2 changes: 1 addition & 1 deletion crates/hyperdrive-wrappers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ tokio = { version = "1", features = ["full"] }
walkdir = "2"

[package.metadata.docs.rs]
rustdoc-args = ["--html-in-header", "../assets/katex_header.html"]
rustdoc-args = ["--html-in-header", "assets/katex_header.html"]
5 changes: 1 addition & 4 deletions crates/test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,4 @@ ethers = "2.0.11"
eyre = "0.6.8"
futures-locks = "0.7.1"
lazy_static = "1.4.0"
thiserror = "1.0"

[package.metadata.docs.rs]
rustdoc-args = ["--html-in-header", "../assets/katex_header.html"]
thiserror = "1.0"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "hyperdrivepy"
version = "0.16.5"
version = "0.16.6"
authors = [
{ name = "Dylan Paiton", email = "[email protected]" },
{ name = "Matthew Brown", email = "[email protected]" },
Expand Down
12 changes: 11 additions & 1 deletion scripts/publish_crates.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
#!/bin/bash

echo "copy assets into crates"
mkdir crates/fixedpointmath/assets && cp assets/katex_header.html crates/fixedpointmath/assets/
mkdir crates/hyperdrive-wrappers/assets && cp assets/katex_header.html crates/hyperdrive-wrappers/assets/
mkdir crates/hyperdrive-math/assets && cp assets/katex_header.html crates/hyperdrive-math/assets/

echo "publish rust crates to crates.io"
cargo publish --token $1 -p fixedpointmath
BUILD_DISABLED=true cargo publish --token $1 -p hyperdrive-wrappers
cargo publish --token $1 -p hyperdrive-math
cargo publish --token $1 -p hyperdrive-math

echo "remove crate asset directories"
rm -rf crates/fixedpointmath/assets
rm -rf crates/hyperdrive-wrappers/assets
rm -rf crates/hyperdrive-math/assets

0 comments on commit ed36e6f

Please sign in to comment.