generated from EclipseFdn/.eclipsefdn-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating file 'docs/playground.md' with otterdog.
- Loading branch information
1 parent
32ee388
commit f427940
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
template: editor.html | ||
hide: | ||
- navigation | ||
- toc | ||
--- | ||
|
||
# Playground | ||
|
||
You can use the playground below to create and evaluate resource snippets to include in your jsonnet configuration: | ||
|
||
<div class="inverse hgroup"> | ||
<div class=hgroup-inline> | ||
<div class="tab-window-input" id="input"> | ||
<div class="tab-header"> | ||
</div> | ||
<textarea id=playground-jsonnet> | ||
{% include 'jsonnet/playground.jsonnet' %} | ||
</textarea> | ||
<textarea id=otterdog-defaults-libsonnet> | ||
{% include 'jsonnet/otterdog-defaults.libsonnet' %} | ||
</textarea> | ||
<textarea id=otterdog-functions-libsonnet> | ||
{% include 'jsonnet/otterdog-functions.libsonnet' %} | ||
</textarea> | ||
</div> | ||
<div class="bigarrow">➡</div> | ||
<div class="tab-window-output" id="output"> | ||
<div class="tab-header"> | ||
<div class=selected onclick="tab_output_click(this, 'json-output')">output.json</div> | ||
</div> | ||
<textarea readonly class="selected code-json" id="json-output"> | ||
</textarea> | ||
</div> | ||
<script> | ||
demo( | ||
'input', | ||
{ | ||
'playground-jsonnet': 'playground.jsonnet', | ||
'otterdog-defaults-libsonnet': 'otterdog-defaults.libsonnet', | ||
'otterdog-functions-libsonnet': 'otterdog-functions.libsonnet' | ||
}, | ||
'playground.jsonnet', | ||
'output', | ||
false, | ||
false | ||
); | ||
</script> | ||
<div style="clear: both"></div> | ||
</div> | ||
</div> | ||
|
||
## Resource functions and default values | ||
|
||
The following snippets illustrate the functions to create the supported resources with default values as defined in the [default configuration](https://github.com/EclipseFdn/otterdog-defaults/blob/main/otterdog-defaults.libsonnet). | ||
used at the Eclipse Foundation. |