File tree Expand file tree Collapse file tree 7 files changed +500
-1376
lines changed Expand file tree Collapse file tree 7 files changed +500
-1376
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ const { encode } = require('html-entities');
88const { JSDOM } = require ( 'jsdom' ) ;
99const yaml = require ( 'js-yaml' ) ;
1010const esbuild = require ( 'esbuild' ) ;
11- const { generatePlayground } = require ( './src/playground' )
1211
1312const 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');
692689generateRedirects ( ) ;
693690generateSitemap ( ) ;
694691generateLLMs ( ) ;
695- generatePlayground ( ) ;
696692
697693if ( anyErrors ) {
698694 process . exit ( 1 ) ;
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments