This is an automated email from the ASF dual-hosted git repository.
mssun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-website.git
The following commit(s) were added to refs/heads/master by this push:
new 86659bc Add api doc of rust client sdk
86659bc is described below
commit 86659bc0f1cecefb6d21a094b74bb961d7cd5fe6
Author: Mingshen Sun <[email protected]>
AuthorDate: Tue Feb 9 14:37:34 2021 -0800
Add api doc of rust client sdk
---
site/.vuepress/config.js | 1 +
site/Makefile | 7 ++++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/site/.vuepress/config.js b/site/.vuepress/config.js
index 0639206..92c973e 100644
--- a/site/.vuepress/config.js
+++ b/site/.vuepress/config.js
@@ -29,6 +29,7 @@ module.exports = {
{
text: 'API Docs',
items: [
+ { text: 'Teaclave Client SDK (Rust)', link:
'https://teaclave.apache.org/api-docs/client-sdk-rust/', target: '_self', rel:
'' },
{ text: 'Teaclave Client SDK (Python)', link:
'https://teaclave.apache.org/api-docs/client-sdk-python/', target: '_self',
rel: '' },
{ text: 'Teaclave SGX SDK', link:
'https://teaclave.apache.org/api-docs/sgx-sdk/', target: '_self', rel: '' },
{ text: 'Crates in Teaclave (Enclave)', link:
'https://teaclave.apache.org/api-docs/crates-enclave/', target: '_self', rel:
'' },
diff --git a/site/Makefile b/site/Makefile
index 9ff1b1f..84c1448 100644
--- a/site/Makefile
+++ b/site/Makefile
@@ -15,6 +15,11 @@ client-sdk-python-docs: teaclave-docs
pdoc teaclave/sdk/python/teaclave.py -o
.vuepress/dist/api-docs/client-sdk-python --html
@echo "<meta http-equiv=refresh content=0;url=teaclave.html>" >
.vuepress/dist/api-docs/client-sdk-python/index.html
+client-sdk-rust-docs: teaclave-docs
+ cargo doc --no-deps --manifest-path teaclave/sdk/rust/Cargo.toml
+ cp -r teaclave/sdk/rust/target/doc
.vuepress/dist/api-docs/client-sdk-rust
+ @echo "<meta http-equiv=refresh content=0;url=`echo teaclave_client_sdk
| cut -d '/' -f 2`/index.html>" >
.vuepress/dist/api-docs/client-sdk-rust/index.html
+
crate-docs:
cp ${TEACLAVE_TARGET_DIR}/trusted/doc
.vuepress/dist/api-docs/crates-enclave -r
cp ${TEACLAVE_TARGET_DIR}/untrusted/doc
.vuepress/dist/api-docs/crates-app -r
@@ -32,7 +37,7 @@ dev:
preview:
cd .vuepress/dist && python3 -m http.server
-build: teaclave-docs sgx-sdk-api-docs client-sdk-python-docs crate-docs
+build: teaclave-docs sgx-sdk-api-docs client-sdk-python-docs
client-sdk-rust-docs crate-docs
cp ../.asf.yaml .vuepress/dist
clean:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]