From 508e25b6d6e9a81edb6ddf8738450b79898b446a Mon Sep 17 00:00:00 2001 From: Adin Scannell Date: Mon, 27 Apr 2020 22:24:58 -0700 Subject: Adapt website to use g3doc sources and bazel. This adapts the merged website repository to use the image and bazel build framework. It explicitly avoids the container_image rules provided by bazel, opting instead to build with direct docker commands when necessary. The relevant build commands are incorporated into the top-level Makefile. --- website/_includes/byline.html | 18 +++ website/_includes/footer-links.html | 37 ++++++ website/_includes/footer.html | 71 ++++++++++++ website/_includes/graph.html | 205 ++++++++++++++++++++++++++++++++++ website/_includes/header-links.html | 19 ++++ website/_includes/header.html | 30 +++++ website/_includes/paginator.html | 10 ++ website/_includes/required_linux.html | 2 + 8 files changed, 392 insertions(+) create mode 100644 website/_includes/byline.html create mode 100644 website/_includes/footer-links.html create mode 100644 website/_includes/footer.html create mode 100644 website/_includes/graph.html create mode 100644 website/_includes/header-links.html create mode 100644 website/_includes/header.html create mode 100644 website/_includes/paginator.html create mode 100644 website/_includes/required_linux.html (limited to 'website/_includes') diff --git a/website/_includes/byline.html b/website/_includes/byline.html new file mode 100644 index 000000000..d8ae22cb0 --- /dev/null +++ b/website/_includes/byline.html @@ -0,0 +1,18 @@ +By +{% assign last_pos=include.authors.size | minus: 1 %} +{% assign and_pos=include.authors.size | minus: 2 %} +{% for i in (0..last_pos) %} + {% assign author_id=include.authors[i] %} + {% assign author=site.authors[author_id] %} + {% if author %} + {{ author.name }} + {% else %} + {{ author_id }} + {% endif %} + {% if i == and_pos %} + and + {% elsif i < and_pos %} + , + {% endif %} +{% endfor %} +on {{ include.date | date_to_long_string }} diff --git a/website/_includes/footer-links.html b/website/_includes/footer-links.html new file mode 100644 index 000000000..b6a9771ca --- /dev/null +++ b/website/_includes/footer-links.html @@ -0,0 +1,37 @@ +
+
+ +
+

Support

+ +
+ +
+
+
+

© {{ 'now' | date: "%Y" }} The gVisor Authors

+
+
+
diff --git a/website/_includes/footer.html b/website/_includes/footer.html new file mode 100644 index 000000000..9946fc592 --- /dev/null +++ b/website/_includes/footer.html @@ -0,0 +1,71 @@ + + + + + + +{% if site.analytics %} + + +{% endif %} + + diff --git a/website/_includes/graph.html b/website/_includes/graph.html new file mode 100644 index 000000000..f3a999341 --- /dev/null +++ b/website/_includes/graph.html @@ -0,0 +1,205 @@ +{::nomarkdown} +{% assign fn = include.id | remove: " " | remove: "-" | downcase %} +
{{ include.title }}
+ +{:/} diff --git a/website/_includes/header-links.html b/website/_includes/header-links.html new file mode 100644 index 000000000..467bb1e72 --- /dev/null +++ b/website/_includes/header-links.html @@ -0,0 +1,19 @@ + diff --git a/website/_includes/header.html b/website/_includes/header.html new file mode 100644 index 000000000..8323c26f8 --- /dev/null +++ b/website/_includes/header.html @@ -0,0 +1,30 @@ + + + + + {% if page.title %} + {{ page.title }} - gVisor + {% else %} + gVisor + {% endif %} + + + + + + + + + + + + {% if page.title %} + + {% else %} + + {% endif %} + {% if page.description %} + + {% endif %} + + diff --git a/website/_includes/paginator.html b/website/_includes/paginator.html new file mode 100644 index 000000000..b4ff4c3b1 --- /dev/null +++ b/website/_includes/paginator.html @@ -0,0 +1,10 @@ + diff --git a/website/_includes/required_linux.html b/website/_includes/required_linux.html new file mode 100644 index 000000000..e9d1b7548 --- /dev/null +++ b/website/_includes/required_linux.html @@ -0,0 +1,2 @@ +> Note: gVisor supports only x86\_64 and requires Linux 4.14.77+ +> ([older Linux](/docs/user_guide/networking/#gso)). -- cgit v1.2.3 From cf86ec5e40bd1abf5be45fabbc7591a0452747ea Mon Sep 17 00:00:00 2001 From: Adin Scannell Date: Wed, 29 Apr 2020 10:53:25 -0700 Subject: Add powered by gVisor logo. --- website/_includes/footer-links.html | 12 +++++++++--- website/assets/logos/powered-gvisor.png | Bin 0 -> 5193 bytes 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 website/assets/logos/powered-gvisor.png (limited to 'website/_includes') diff --git a/website/_includes/footer-links.html b/website/_includes/footer-links.html index b6a9771ca..10c28ead4 100644 --- a/website/_includes/footer-links.html +++ b/website/_includes/footer-links.html @@ -1,6 +1,6 @@
-
+

About

-
+

Support

-
+

Connect

+
+
diff --git a/website/assets/logos/powered-gvisor.png b/website/assets/logos/powered-gvisor.png new file mode 100644 index 000000000..e00c74a33 Binary files /dev/null and b/website/assets/logos/powered-gvisor.png differ -- cgit v1.2.3