Skip to content

Commit b616ee9

Browse files
Revert "Revamp playground (#69)"
This reverts commit 8e15423.
1 parent 8e15423 commit b616ee9

File tree

7 files changed

+500
-1376
lines changed

7 files changed

+500
-1376
lines changed

build.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const { encode } = require('html-entities');
88
const { JSDOM } = require('jsdom');
99
const yaml = require('js-yaml');
1010
const esbuild = require('esbuild');
11-
const { generatePlayground } = require('./src/playground')
1211

1312
const site = "https://docs.puter.com";
1413

@@ -46,10 +45,8 @@ marked.use({
4645
// toolbar
4746
html += '<div class="code-buttons">';
4847
// "Run"
49-
if (exampleID == "intro-chatgpt")
50-
html += `<a href="/playground/?autorun=1" class="code-button run-code-button" target="_blank"><span class="run"></span></a>`;
51-
else
52-
html += `<a href="/playground/${exampleID}/?autorun=1" class="code-button run-code-button" target="_blank"><span class="run"></span></a>`;
48+
if (exampleID)
49+
html += `<a href="/playground/index.html?example=${exampleID}&autorun=1" class="code-button run-code-button" target="_blank"><span class="run"></span></a>`;
5350

5451
// "Copy"
5552
html += '<div class="code-button copy-code-button"><span class="copy"></span></div>';
@@ -692,7 +689,6 @@ generateDocumentation('./src');
692689
generateRedirects();
693690
generateSitemap();
694691
generateLLMs();
695-
generatePlayground();
696692

697693
if (anyErrors) {
698694
process.exit(1);

src/examples.js

Lines changed: 0 additions & 529 deletions
This file was deleted.

src/playground.js

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)