From a0f6ad6fcc1507bce0d61d454e4578e4cb7073ec Mon Sep 17 00:00:00 2001 From: janis Date: Thu, 23 Feb 2023 15:35:17 +0100 Subject: [PATCH] fix build crash --- build.js | 16 ---------------- website/css/style.css | 4 ++++ website/demo/examples/index.html | 13 +++++++------ website/docs/src/build.js | 29 +++++++++++++++++++++++++++-- website/index.html | 6 +++++- 5 files changed, 43 insertions(+), 25 deletions(-) diff --git a/build.js b/build.js index 7136042..1e7d028 100644 --- a/build.js +++ b/build.js @@ -56,19 +56,3 @@ filename = 'js/impress.min.js.map'; fs.writeFileSync(filename, result.map); console.log(filename); -/* Auto generate an index.html that lists all the directories under examples/ - * This is useful for gh-pages, so you can link to http://impress.github.io/impress.js/examples - */ -var html_list = '\n' - -var html = '\n\nExample presentations\n\n' -html += '

Example presentations

\n' + html_list -html += '\n' - -filename = path.resolve(__dirname, 'examples', 'index.html'); -fs.writeFileSync(filename, html); -console.log(filename); diff --git a/website/css/style.css b/website/css/style.css index edfc638..f796988 100644 --- a/website/css/style.css +++ b/website/css/style.css @@ -170,4 +170,8 @@ body { .sidebyside-element { width: 40%; } +} + +code { + text-align: justify; } \ No newline at end of file diff --git a/website/demo/examples/index.html b/website/demo/examples/index.html index f10ca60..7a533cf 100644 --- a/website/demo/examples/index.html +++ b/website/demo/examples/index.html @@ -4,12 +4,13 @@

Example presentations

\ No newline at end of file diff --git a/website/docs/src/build.js b/website/docs/src/build.js index cc0c77a..6fc46fb 100644 --- a/website/docs/src/build.js +++ b/website/docs/src/build.js @@ -17,6 +17,7 @@ const path = require( 'path' ); const mdhtml = require( 'markdown-it' ); const md2html = new mdhtml(); const docRoot = path.join( __dirname + '/../' ); +const ls = require( 'ls' ); const prompt = require( 'prompt-sync' )( { sigint: true } ); @@ -58,6 +59,8 @@ for ( let obj in docPages ) { console.log( 'regenerating Nav' ); generateNav (); +buildExamplesPage(); + /* This function finds links. The reason for this is possible incompatibilities with links on the website */ @@ -265,6 +268,28 @@ function parseDocumentationMD () { } }; storeHTML( updatedPage, title, 'reference' ); - } - } + }; + }; +} + +function generateGettingStarted () { + +} + +function buildExamplesPage () { + /* Auto generate an index.html that lists all the directories under examples/ + * This is useful for gh-pages, so you can link to http://impress.github.io/impress.js/examples + */ + var html_list = '\n' + + var html = '\n\nExample presentations\n\n' + html += '

Example presentations

\n' + html_list + html += '\n' + + fs.writeFileSync( path.join( __dirname + '/../../demo/examples/index.html' ), html ); } \ No newline at end of file diff --git a/website/index.html b/website/index.html index 34805ad..7dba61a 100644 --- a/website/index.html +++ b/website/index.html @@ -34,7 +34,11 @@
                         
-<div></div>
+<div id="impress">
+    <div class="step">
+        <h1>impress.js - The JavaScript presentation framework</h1>
+    </div>
+</div>