diff --git a/.DS_Store b/.DS_Store index 9c0462f..18032eb 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b7a225..d17fe59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,9 @@ on: env: RUSTFLAGS: -Dwarnings + DOCS_FASTLY_API_TOKEN: ${{ secrets.DOCS_FASTLY_API_TOKEN }} + DOCS_FASTLY_SERVICE_ID: ${{ vars.DOCS_FASTLY_SERVICE_ID }} + DOCS_FASTLY_KVSTORE_NAME: ${{ vars.DOCS_FASTLY_KVSTORE_NAME }} jobs: rustfmt: @@ -71,7 +74,7 @@ jobs: - uses: extractions/setup-just@v3 - uses: actions-rust-lang/setup-rust-toolchain@v1 - + - name: Build WebAssembly module run: just @@ -82,8 +85,11 @@ jobs: uses: mattnotmitt/doxygen-action@v1.9.5 - name: Deploy docs - uses: JamesIves/github-pages-deploy-action@v4 if: github.ref == 'refs/heads/main' - with: - branch: gh-pages - folder: docs # The folder the action should deploy. + env: + FASTLY_API_TOKEN: ${{ env.DOCS_FASTLY_API_TOKEN }} + run: | + npx -y @fastly/compute-js-static-publish@7 --root-dir=./docs --output=./docs-compute-cpp --service-id=${{ env.DOCS_FASTLY_SERVICE_ID }} --kv-store-name=${{ env.DOCS_FASTLY_KVSTORE_NAME }} + cd ./docs-compute-cpp + npm install + npm run fastly:publish diff --git a/Cargo.lock b/Cargo.lock index bd49a10..85e2f35 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -293,7 +293,7 @@ dependencies = [ [[package]] name = "fastly-sys" -version = "0.5.0" +version = "0.6.0" dependencies = [ "cxx", "cxx-build", diff --git a/Cargo.toml b/Cargo.toml index c565bc0..00e5bc9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fastly-sys" -version = "0.5.0" +version = "0.6.0" authors = ["Kat Marchán ", "Sy Brand "] edition = "2024" diff --git a/README.md b/README.md index 8767561..884df7a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This SDK is lets you use Fastly Compute platform directly with C++, using a C++-native API with all the usual facilities of modern C++. In case you got to this page from elsewhere, the full documentation is available online at [this -link](https://cuddly-adventure-lrw9z3m.pages.github.io). +link](https://cpp-compute-sdk.fastly.dev). ### Examples diff --git a/docs/.nojekyll b/docs/.nojekyll deleted file mode 100644 index e69de29..0000000 diff --git a/quickstart/README.md b/quickstart/README.md index e10bc89..73bc753 100644 --- a/quickstart/README.md +++ b/quickstart/README.md @@ -52,7 +52,7 @@ curl -d "hello, world!" http://127.0.0.1:7676/ ### Documentation Online documentation can be accessed -[here](https://cuddly-adventure-lrw9z3m.pages.github.io/). +[here](https://cpp-compute-sdk.fastly.dev/). The quickstart tarball also includes the HTML reference docs in `docs/index.html`, which you can open locally. If you've configured your editor