Go to file
Nicolas Lacasse 27fb02c4b8 Add link to gVisor gitter on contributing page. 2019-05-29 17:10:18 +09:00
archetypes Initial commit 2019-03-29 22:40:11 -04:00
assets Updated docsy to HEAD 2019-04-23 11:51:39 +09:00
cloudbuild Initial commit 2019-03-29 22:40:11 -04:00
cmd/gvisor-website Add script parameter for /rebuild 2019-04-28 12:24:29 +09:00
content Add link to gVisor gitter on contributing page. 2019-05-29 17:10:18 +09:00
layouts Upload latest set of benchmarks 2019-05-13 15:27:34 -07:00
static Drop confusing kvm-bare syscall time 2019-05-13 15:27:34 -07:00
themes/docsy Updated docsy to HEAD 2019-04-23 11:51:39 +09:00
.gcloudignore Remove .git handling from .gcloudignore 2019-04-03 16:14:17 +09:00
.gitattributes Mark themes/docsy as vendored. 2019-04-23 11:57:43 +09:00
.gitignore Initial commit 2019-03-29 22:40:11 -04:00
CODEOWNERS Add gvisor team to CODEOWNERS 2019-04-03 16:04:06 +09:00
CONTRIBUTING.md Initial commit 2019-03-29 22:40:11 -04:00
LICENSE Initial commit 2019-03-29 22:40:11 -04:00
Makefile build: fix deploy target for Makefile 2019-05-07 14:47:50 +09:00
README.md Add troubleshooting section to README (fixes #28) 2019-04-15 13:16:14 -07:00
cloudbuild.yaml Fix some html errors (refs #46 #51) 2019-04-23 11:59:09 +09:00
config.toml Update Linux version requirement for GSO 2019-04-17 12:08:36 -07:00
package-lock.json Initial commit 2019-03-29 22:40:11 -04:00
package.json Initial commit 2019-03-29 22:40:11 -04:00

README.md

gVisor Website

This repository holds the content for the gVisor website. It uses hugo to generate the website and Docsy as the theme.

Requirements

Building the website requires the extended version of hugo and node.js in order to generate CSS files. Please install them before building.

  • Node.js >= 10.15.0 LTS
  • hugo extended >= v0.53

Contributing to Documentation

Using Github

You can use the "Edit this page" link on any documentation page to edit the page content directly via GitHub and submit a pull request. This should generally be done for relatively small changes.

Using Git

You can submit pull requests by making changes in a Git branch. See more information on GitHub pull requests here.

Documentation is located in the content/docs/ directory. Documentation is written in markdown with hugo extensions. Please read more about content management in the hugo documentation.

You can use the hugo web server for testing. This will start a webserver that will rebuild the site when you make content changes:

make server

Access the site at http://localhost:8080

Building

If you are making changes to App Engine config or application code, you can build the website using make. This will output the App Engine application code, configuration, and html and CSS into the public/ directory.

make

If you have Go installed you can run a local version of the website via the public/ directory.

cd public/
go run main.go

Access the site at http://localhost:8080

Troubleshooting

I get errors when building the website.

If you get the following errors you should check that you have the "extended" version of Hugo. This is the version of hugo named "hugo_extended" on the releases page.

ERROR 2019/04/03 11:25:58 Failed to add template "partials/navbar.html" in path "/home/me/gvisor-website/layouts/partials/navbar.html": template: partials/navbar.html:5: function "resources" not defined
ERROR 2019/04/03 11:25:58 partials/navbar.html : template: partials/navbar.html:5: function "resources" not defined
ERROR 2019/04/03 11:25:58 Unable to locate template for shortcode "readfile" in page "docs/user_guide/docker.md"
ERROR 2019/04/03 11:25:58 Unable to locate template for shortcode "readfile" in page "docs/user_guide/oci.md"
ERROR 2019/04/03 11:25:58 Unable to locate template for shortcode "blocks" in page "_index.html"