Skip to content

Commit

Permalink
chore: fix "docs ghpages/deploy" ci (privacy-scaling-explorations#305)
Browse files Browse the repository at this point in the history
* ci: update toolchain for docs/ghpages ci

* refactor: move the "katex-header.html" file for docs/ghpages ci

* chore: add the html copy/delete process in ci
  • Loading branch information
duguorong009 authored Apr 4, 2024
1 parent 720ba51 commit b9a057d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion halo2/katex-header.html → .github/katex-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
]
});
});
</script>
</script>
18 changes: 17 additions & 1 deletion .github/workflows/docs-ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,17 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: nightly-2023-10-05
override: true

- name: Copy the html file to workspace crates
run: |
for cargo_toml in $(find . -name Cargo.toml); do
crate_dir=$(dirname $cargo_toml)
cp .github/katex-header.html $crate_dir
echo "Copied html file to $crate_dir"
done
- name: Build latest rustdocs
uses: actions-rs/cargo@v1
with:
Expand All @@ -33,6 +41,14 @@ jobs:
cp -R ./target/doc ./docs
echo "<meta http-equiv=\"refresh\" content=\"0; url=halo2_proofs\">" > ./docs/index.html
- name: Delete the html files copied to every crate
run: |
for cargo_toml in $(find . -name Cargo.toml); do
crate_dir=$(dirname $cargo_toml)
rm -f $crate_dir/katex-header.html
echo "Deleted html file in $crate_dir"
done
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions halo2_frontend/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod circuit;
pub mod dev;
pub mod plonk;

0 comments on commit b9a057d

Please sign in to comment.