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/01 22:21:10 UTC

[incubator-teaclave-website] branch master updated: Add SGX SDK document

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 926f6a3  Add SGX SDK document
926f6a3 is described below

commit 926f6a3331ea2192aba7f4c7638fba99ee5c6808
Author: Mingshen Sun <bo...@mssun.me>
AuthorDate: Mon Jun 1 15:20:12 2020 -0700

    Add SGX SDK document
---
 .gitignore               |  4 +++-
 sgx-sdk-docs/Cargo.toml  | 13 +++++++++++++
 sgx-sdk-docs/lib.rs      |  3 +++
 site/.vuepress/config.js |  2 ++
 site/Makefile            | 24 +++++++++++++++++-------
 5 files changed, 38 insertions(+), 8 deletions(-)

diff --git a/.gitignore b/.gitignore
index ff20d1f..a7932ea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
 dist
 teaclave
-node_modules
\ No newline at end of file
+node_modules
+target
+sgx-sdk-docs/Cargo.lock
diff --git a/sgx-sdk-docs/Cargo.toml b/sgx-sdk-docs/Cargo.toml
new file mode 100644
index 0000000..46b34ef
--- /dev/null
+++ b/sgx-sdk-docs/Cargo.toml
@@ -0,0 +1,13 @@
+[package]
+name = "teaclave-sgx-sdk-docs"
+version = "0.1.0"
+authors = ["Teaclave Contributors <de...@teaclave.apache.org>"]
+edition = "2018"
+
+[lib]
+path = "lib.rs"
+
+[dependencies]
+sgx_tstd = { git = "https://github.com/apache/incubator-teaclave-sgx-sdk.git", tag = "v1.1.2" }
+sgx_trts = { git = "https://github.com/apache/incubator-teaclave-sgx-sdk.git", tag = "v1.1.2" }
+sgx_tse = { git = "https://github.com/apache/incubator-teaclave-sgx-sdk.git", tag = "v1.1.2" }
\ No newline at end of file
diff --git a/sgx-sdk-docs/lib.rs b/sgx-sdk-docs/lib.rs
new file mode 100644
index 0000000..44b4aa0
--- /dev/null
+++ b/sgx-sdk-docs/lib.rs
@@ -0,0 +1,3 @@
+//! Teaclave SGX SDK Documentation
+#![no_std]
+extern crate sgx_tstd as std;
diff --git a/site/.vuepress/config.js b/site/.vuepress/config.js
index c952fc0..785919c 100644
--- a/site/.vuepress/config.js
+++ b/site/.vuepress/config.js
@@ -10,6 +10,7 @@ module.exports = {
             { text: 'Community', link: '/community/' },
             { text: 'Contributors', link: '/contributors/' },
             { text: 'Documentation', link: '/docs/my-first-function/' },
+            { text: 'SGX SDK', link: 'https://teaclave.apache.org/docs/sgx-sdk/' },
             { text: 'Blog', link: '/blog/' },
             {
                 text: 'Repository',
@@ -51,6 +52,7 @@ module.exports = {
                 path: '/services/',
                 collapsable: false,
                 children: [
+                    '/teaclave/attestation/',
                     '/teaclave/services/',
                     '/teaclave/worker/',
                     '/teaclave/executor/',
diff --git a/site/Makefile b/site/Makefile
index 3fe0c6c..93a0709 100644
--- a/site/Makefile
+++ b/site/Makefile
@@ -1,19 +1,29 @@
 all: staging site
 
 staging: build
-	ghp-import dist -b asf-staging
+	ghp-import .vuepress/dist -b asf-staging
 
 site: build
-	ghp-import dist -b asf-site
+	ghp-import .vuepress/dist -b asf-site
+
+sgx-sdk-docs: teaclave-docs
+	cd ../sgx-sdk-docs && cargo doc
+	cp -r ../sgx-sdk-docs/target/doc .vuepress/dist/docs/sgx-sdk
+	@echo "<meta http-equiv=refresh content=0;url=`echo sgx_tstd | cut -d '/' -f 2`/index.html>" > .vuepress/dist/docs/sgx-sdk/index.html
+
+teaclave-docs:
+	git clone https://github.com/apache/incubator-teaclave.git teaclave || cd teaclave && git pull
+	vuepress build
 
 dev:
 	git clone https://github.com/apache/incubator-teaclave.git teaclave || cd teaclave && git pull
 	vuepress dev
 
-build:
-	git clone https://github.com/apache/incubator-teaclave.git teaclave || cd teaclave && git pull
-	vuepress build -d dist
-	cp ../.asf.yaml dist
+preview:
+	cd .vuepress/dist && python3 -m http.server
+
+build: teaclave-docs sgx-sdk-docs
+	cp ../.asf.yaml .vuepress/dist
 
 clean:
-	rm -rf dist teaclave
+	rm -rf .vuepress/dist teaclave


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