You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by ms...@apache.org on 2020/06/17 00:55:52 UTC

[incubator-teaclave-website] branch master updated: Add docs for crates in Teaclave

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 73f4a30  Add docs for crates in Teaclave
73f4a30 is described below

commit 73f4a30b5df27d9bb261a04f7183768e9ad05d34
Author: Mingshen Sun <bo...@mssun.me>
AuthorDate: Tue Jun 16 17:55:27 2020 -0700

    Add docs for crates in Teaclave
---
 site/.vuepress/config.js | 4 +++-
 site/Makefile            | 6 +++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/site/.vuepress/config.js b/site/.vuepress/config.js
index a3ef527..e174afe 100644
--- a/site/.vuepress/config.js
+++ b/site/.vuepress/config.js
@@ -15,10 +15,12 @@ module.exports = {
             { text: 'Documentation', link: '/docs/my-first-function/' },
             { text: 'Blog', link: '/blog/' },
             {
-                text: 'SDK',
+                text: 'API Docs',
                 items: [
                     { text: 'Teaclave Client SDK (Python)', link: 'https://teaclave.apache.org/docs/client-sdk-python/', target: '_self', rel: '' },
                     { text: 'Teaclave SGX SDK', link: 'https://teaclave.apache.org/docs/sgx-sdk/', target: '_self', rel: '' },
+                    { text: 'Crates in Teaclave (Enclave)', link: 'https://teaclave.apache.org/docs/crates-enclave/', target: '_self', rel: '' },
+                    { text: 'Crates in Teaclave (App)', link: 'https://teaclave.apache.org/docs/crates-app/', target: '_self', rel: '' },
                 ]
             },
             {
diff --git a/site/Makefile b/site/Makefile
index 410dcc9..424ba2a 100644
--- a/site/Makefile
+++ b/site/Makefile
@@ -15,6 +15,10 @@ client-sdk-python-docs: teaclave-docs
 	pdoc teaclave/sdk/python/teaclave.py -o .vuepress/dist/docs/client-sdk-python --html
 	@echo "<meta http-equiv=refresh content=0;url=teaclave.html>" > .vuepress/dist/docs/client-sdk-python/index.html
 
+crate-docs:
+	cp ${TEACLAVE_TARGET_DIR}/trusted/doc .vuepress/dist/docs/crates-enclave -r
+	cp ${TEACLAVE_TARGET_DIR}/untrusted/doc .vuepress/dist/docs/crates-app -r
+
 teaclave-docs:
 	git clone https://github.com/apache/incubator-teaclave.git teaclave || cd teaclave && git pull
 	vuepress build
@@ -26,7 +30,7 @@ dev:
 preview:
 	cd .vuepress/dist && python3 -m http.server
 
-build: teaclave-docs sgx-sdk-docs client-sdk-python-docs
+build: teaclave-docs sgx-sdk-docs client-sdk-python-docs crate-docs
 	cp ../.asf.yaml .vuepress/dist
 
 clean:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org