playground: replace - with _ to make srdjan happy
Change-Id: I222bc1461956ddba15145fac10f63da46efd57e8
diff --git a/README.md b/README.md
index 3bcf818..a8ae6a3 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@
Test your image (without running compilerd):
- $ sudo docker run -i playground < /usr/local/google/home/sadovsky/dev/veyron-www/content/playgrounds/code/fortune/ex0-go/bundle.json
+ $ sudo docker run -i playground < /usr/local/google/home/sadovsky/dev/veyron-www/content/playgrounds/code/fortune/ex0_go/bundle.json
## Running the playground server (compilerd)
diff --git a/client/bundles/fortune.md b/client/bundles/fortune.md
index 1b13cd1..c319cd4 100644
--- a/client/bundles/fortune.md
+++ b/client/bundles/fortune.md
@@ -71,8 +71,8 @@
### Code
-<div class="lang-go playground" data-srcdir="/fortune/ex0-go"></div>
+<div class="lang-go playground" data-srcdir="/fortune/ex0_go"></div>
<!--
-<div class="lang-js playground" data-srcdir="/fortune/ex0-js"></div>
+<div class="lang-js playground" data-srcdir="/fortune/ex0_js"></div>
-->
diff --git a/client/bundles/fortune/ex0-go/src/client/client.go b/client/bundles/fortune/ex0_go/src/client/client.go
similarity index 100%
rename from client/bundles/fortune/ex0-go/src/client/client.go
rename to client/bundles/fortune/ex0_go/src/client/client.go
diff --git a/client/bundles/fortune/ex0-go/src/fortune/fortune.vdl b/client/bundles/fortune/ex0_go/src/fortune/fortune.vdl
similarity index 100%
rename from client/bundles/fortune/ex0-go/src/fortune/fortune.vdl
rename to client/bundles/fortune/ex0_go/src/fortune/fortune.vdl
diff --git a/client/bundles/fortune/ex0-go/src/fortune/fortune.vdl.go b/client/bundles/fortune/ex0_go/src/fortune/fortune.vdl.go
similarity index 98%
rename from client/bundles/fortune/ex0-go/src/fortune/fortune.vdl.go
rename to client/bundles/fortune/ex0_go/src/fortune/fortune.vdl.go
index 4243c2e..e7e2009 100644
--- a/client/bundles/fortune/ex0-go/src/fortune/fortune.vdl.go
+++ b/client/bundles/fortune/ex0_go/src/fortune/fortune.vdl.go
@@ -137,7 +137,7 @@
// descFortune hides the desc to keep godoc clean.
var descFortune = __ipc.InterfaceDesc{
Name: "Fortune",
- PkgPath: "v.io/playground/client/bundles/fortune/ex0-go/src/fortune",
+ PkgPath: "v.io/playground/client/bundles/fortune/ex0_go/src/fortune",
Methods: []__ipc.MethodDesc{
{
Name: "Get",
diff --git a/client/bundles/fortune/ex0-go/src/server/server.go b/client/bundles/fortune/ex0_go/src/server/server.go
similarity index 100%
rename from client/bundles/fortune/ex0-go/src/server/server.go
rename to client/bundles/fortune/ex0_go/src/server/server.go
diff --git a/client/bundles/fortune/ex0-js/client.js b/client/bundles/fortune/ex0_js/client.js
similarity index 100%
rename from client/bundles/fortune/ex0-js/client.js
rename to client/bundles/fortune/ex0_js/client.js
diff --git a/client/bundles/fortune/ex0-js/server.js b/client/bundles/fortune/ex0_js/server.js
similarity index 100%
rename from client/bundles/fortune/ex0-js/server.js
rename to client/bundles/fortune/ex0_js/server.js
diff --git a/client/src/static/index.html b/client/src/static/index.html
index 85192ea..3128005 100644
--- a/client/src/static/index.html
+++ b/client/src/static/index.html
@@ -1,16 +1,16 @@
<!DOCTYPE html>
<html>
-<head>
- <title>Playground</title>
- <link rel="stylesheet" href="/stylesheets/playground.css">
- <script src="/playground.js" async></script>
-</head>
-<body class="default-layout">
- <main>
- <h1>Hello, go playground!</h1>
- <div class="lang-go playground" data-srcdir="/fortune/ex0-go"></div>
- <h1>Hello, js playground!</h1>
- <div class="lang-js playground" data-srcdir="/fortune/ex0-js"></div>
- </main>
-</body>
+ <head>
+ <title>Playground</title>
+ <link rel="stylesheet" href="/stylesheets/playground.css">
+ <script src="/playground.js" async></script>
+ </head>
+ <body class="default-layout">
+ <main>
+ <h1>Hello, go playground!</h1>
+ <div class="lang-go playground" data-srcdir="/fortune/ex0_go"></div>
+ <h1>Hello, js playground!</h1>
+ <div class="lang-js playground" data-srcdir="/fortune/ex0_js"></div>
+ </main>
+ </body>
</html>
diff --git a/client/test.sh b/client/test.sh
index 4c2caa5..17a90b9 100755
--- a/client/test.sh
+++ b/client/test.sh
@@ -3,7 +3,7 @@
# Tests that all embedded playgrounds execute successfully.
# To debug playground compile errors you can build examples locally, e.g.:
-# $ cd bundles/fortune/ex0-go/src
+# $ cd bundles/fortune/ex0_go/src
# $ GOPATH=$(dirname $(pwd)) VDLPATH=$(dirname $(pwd)) v23 go install ./...
# v.io/core/shell/lib/shell_test.sh sourced via v.io/playground/lib/pg_test_util.sh