Skip to content

Commit

Permalink
docs: include rustdoc in Docusaurus build (#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadaj authored Nov 9, 2024
1 parent f2213af commit 2c17d65
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build_docs.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ cd website_playground

CARGO_CFG_HYDROFLOW_GENERATE_DOCS="1" RUSTFLAGS="--cfg procmacro2_semver_exempt --cfg super_unstable" CC="$PWD/../clang+llvm-13.0.0-$PLATFORM/bin/clang" wasm-pack build

cd ../docs
cd ..

RUSTDOCFLAGS="-Dwarnings" cargo doc --no-deps

cp -r target/doc docs/static/rustdoc

cd docs

npm ci

Expand Down
4 changes: 4 additions & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ const config = {
type: 'docSidebar',
sidebarId: 'deploySidebar',
label: 'Hydro Deploy',
},
{
href: 'pathname:///rustdoc/hydroflow/',
label: 'Rustdoc',
}
]
},
Expand Down
1 change: 1 addition & 0 deletions docs/static/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rustdoc/

0 comments on commit 2c17d65

Please sign in to comment.