Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New impress website #847

Open
wants to merge 73 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
9889fd4
Added a Getting Started guide
janishutz Nov 29, 2022
a26426b
Improved "notes" hiding
janishutz Nov 29, 2022
548b4c5
fixed the errors in check
janishutz Nov 29, 2022
4978f8b
fixed other errors
janishutz Nov 29, 2022
83fd6b6
some more missing spaces
janishutz Nov 29, 2022
7aff9bf
Update GettingStarted.md
janishutz Nov 30, 2022
a167dfc
Update README.md
janishutz Nov 30, 2022
40a3766
clean up
janishutz Dec 12, 2022
070b6a0
Merge branch 'impress:master' into master
janishutz Dec 12, 2022
10a585a
Revert "clean up"
janishutz Dec 12, 2022
229a5d7
removed the notes bugfix
janishutz Dec 12, 2022
6fde217
removed the notes bugfix
janishutz Dec 12, 2022
16af2ca
bugfix
janishutz Dec 12, 2022
7b4759f
removed getting started guide from this pr
janishutz Dec 12, 2022
7f6b1ab
remove code from other pr
janishutz Dec 12, 2022
0e72ee6
added plugins getting started guide
janishutz Dec 12, 2022
d4aecd2
removed plugins getting started guide from this pr
janishutz Dec 12, 2022
0b72574
restructoring of repo
janishutz Dec 12, 2022
fa0431f
Added first code for website
janishutz Dec 12, 2022
3c3bc09
base html layout of index.html
janishutz Dec 12, 2022
0f1cf6e
basic html for index.html & docs
janishutz Dec 12, 2022
f7da68b
first styling of website
janishutz Dec 13, 2022
8fdc291
lots more styling
janishutz Dec 13, 2022
08d3fc8
readme + more styling
janishutz Dec 14, 2022
0c651e3
update README.md
janishutz Dec 14, 2022
7112b26
added a nav menu
janishutz Dec 14, 2022
bd246fe
background image now in
janishutz Dec 22, 2022
f686863
progress on main page
janishutz Dec 24, 2022
7937175
images, download page & rwd
janishutz Jan 10, 2023
9337b26
updates to doc
janishutz Jan 13, 2023
7ae6585
fix oversized navmenu in mobile mode
janishutz Jan 14, 2023
4e1cc69
md2html setup & first doc page
janishutz Jan 21, 2023
1d9b077
build
janishutz Jan 22, 2023
c87fdfc
dark mode in docs
janishutz Jan 22, 2023
e81ca0d
fix not working dark mode
janishutz Jan 23, 2023
70add78
build
janishutz Jan 23, 2023
0647307
working build.js - no link check yet
janishutz Jan 23, 2023
92cc355
fix dark mode link color
janishutz Jan 23, 2023
367b65f
link checking without replacement
janishutz Jan 24, 2023
4fb1ff4
more doc for build script + fixes
janishutz Jan 24, 2023
c791349
working website build system
janishutz Jan 24, 2023
71d665c
add gettingStarted Guide to build.js
janishutz Jan 24, 2023
bb84b3a
fix darkmode & reference index.html
janishutz Jan 24, 2023
fa74800
gen api reference beginning
janishutz Jan 25, 2023
baab1a3
now also builds from DOCs, but no link check there
janishutz Feb 2, 2023
54838a6
Merge remote-tracking branch 'impress/master' into new-impress-website
janishutz Feb 2, 2023
abfdebf
better build script
janishutz Feb 2, 2023
17c961f
Merge branch 'impress:master' into new-impress-website
janishutz Feb 2, 2023
8b173ff
fixed broken nav menu & link replacement errors
janishutz Feb 2, 2023
7b7b645
fixed title of getting started & nav highlighting
janishutz Feb 3, 2023
52c22d8
fix darkmode of toggle
janishutz Feb 10, 2023
a0f6ad6
fix build crash
janishutz Feb 23, 2023
7f3e83c
optiomised build script
janishutz Feb 23, 2023
784541d
build script now fixes links in getting started
janishutz Feb 23, 2023
e0dca1e
finished build script
janishutz Feb 23, 2023
a1f5da3
final cleanup & fixes
janishutz Feb 23, 2023
50a8379
more beautiful examples index.html & fixes
janishutz Feb 23, 2023
e1d0d20
fixed a link
janishutz Feb 23, 2023
85e8fe3
added examples & demo link to nav
janishutz Feb 23, 2023
4a056b3
fix in build script of nav
janishutz Feb 23, 2023
8ec2d1e
fixed wrong title
janishutz Feb 23, 2023
764b657
Update nav.js
janishutz Feb 24, 2023
91d71c6
plugin index.html
janishutz Feb 24, 2023
fec7ff9
fix broken links and better dark mode
janishutz Mar 6, 2023
ba1c815
link fix
janishutz Mar 6, 2023
252a274
fix non-working rwd
janishutz Mar 9, 2023
60e4c5d
fix styling for mobile devices
janishutz Mar 9, 2023
b7ebb21
fix broken dark mode detection
janishutz Mar 25, 2023
6b6bb29
Update GettingStarted.md
janishutz Mar 29, 2023
4955521
add impress.min.js to repo
janishutz Jun 9, 2023
8fc62c8
modernize website
janishutz Jul 26, 2023
03c6445
fix not working in prod
janishutz Jul 27, 2023
334a9dd
fix broken link in getting started
janishutz Jul 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/js/impress.min.js.map
/js/impress.min.js
# /js/impress.min.js
/node_modules
/npm-debug.log
/*.tgz
Expand Down
4 changes: 2 additions & 2 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ impress().tear();

#### .next()

Navigates to the next step of the presentation using the [`goto()` function](#impressgotostepindexstepelementidstepelement-duration).
Navigates to the next step of the presentation using the [`goto()` function](#-goto-stepindex--stepelementid--stepelement---duration--).

**Example:**

Expand All @@ -331,7 +331,7 @@ api.next();

#### .prev()

Navigates to the previous step of the presentation using the [`goto()` function](#impressgotostepindexstepelementidstepelement-duration).
Navigates to the previous step of the presentation using the [`goto()` function](#-goto-stepindex--stepelementid--stepelement---duration--).

**Example:**

Expand Down
6 changes: 3 additions & 3 deletions GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ First of all, you need to know, if you are going to have WiFi connection when yo
Loading the script from the cdn is quite straight forward. If you copy the below example code, you need to do nothing else, impress will be loaded automatically.

**Direct links to different versions of the impress.js file**
- V2.0.0: https://cdn.jsdelivr.net/gh/impress/impress.js@2.0.0/js/impress.js
- V1.1.0: https://cdn.jsdelivr.net/gh/impress/impress.js@1.1.0/js/impress.js
- Source: https://cdn.jsdelivr.net/gh/impress/impress.js/js/impress.js
- [V2.0.0](https://cdn.jsdelivr.net/gh/impress/impress.js@2.0.0/js/impress.js)
- [V1.1.0](https://cdn.jsdelivr.net/gh/impress/impress.js@1.1.0/js/impress.js)
- [Source](https://cdn.jsdelivr.net/gh/impress/impress.js/js/impress.js)

### Download the file to your PC
Head to the releases tab and download the source code as zip or as a tarball. Go ahead and unzip / untar it. You need to copy the folder */js/* into the folder you are working in. Optionally, if you want to make your life a bit easier, you can copy also copy the folder */css/* in there.
Expand Down
50 changes: 16 additions & 34 deletions build.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
const fs = require('fs');
var ls = require('ls');
var path = require('path');
const fs = require( 'fs' );
var Terser = require("terser");

var files = ['src/impress.js'];
var files = [ 'src/impress.js' ];
// Libraries from src/lib
files.push('src/lib/gc.js', 'src/lib/util.js', 'src/lib/rotation.js')
files.push( 'src/lib/gc.js', 'src/lib/util.js', 'src/lib/rotation.js' );
// Plugins from src/plugins
files.push('src/plugins/autoplay/autoplay.js',
files.push( 'src/plugins/autoplay/autoplay.js',
'src/plugins/blackout/blackout.js',
'src/plugins/extras/extras.js',
'src/plugins/form/form.js',
Expand All @@ -27,17 +25,17 @@ files.push('src/plugins/autoplay/autoplay.js',
'src/plugins/stop/stop.js',
'src/plugins/substep/substep.js',
'src/plugins/touch/touch.js',
'src/plugins/toolbar/toolbar.js')
var output = files.map((f)=>{
return fs.readFileSync(f).toString();
}).join('\n')
'src/plugins/toolbar/toolbar.js' );
var output = files.map( ( f )=>{
return fs.readFileSync( f ).toString();
}).join( '\n' );

var filename = 'js/impress.js';
fs.writeFileSync(filename, '// This file was automatically generated from files in src/ directory.\n\n' + output)
console.log(filename);
fs.writeFileSync( filename, '// This file was automatically generated from files in src/ directory.\n\n' + output );
console.log( filename );

// terser --compress --mangle --comments '/^!/' --source-map --output js/impress.min.js js/impress.js
var code = fs.readFileSync('js/impress.js').toString();
var code = fs.readFileSync( 'js/impress.js' ).toString();
var options = {
sourceMap: {
filename: 'js/impress.js',
Expand All @@ -47,28 +45,12 @@ var options = {
comments: /^!/
}
};
var result = Terser.minify({'js/impress.js': code}, options);
var result = Terser.minify( {'js/impress.js': code}, options );

filename = 'js/impress.min.js';
fs.writeFileSync(filename, result.code);
console.log(filename);
fs.writeFileSync( filename, result.code );
console.log( filename );
filename = 'js/impress.min.js.map';
fs.writeFileSync(filename, result.map);
console.log(filename);
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 = '<ul><br />\n'
ls( 'examples/*', { type: 'dir' }).forEach(function(dir) {
html_list += ' <li><a href="' + dir['file'] + '/">' + dir['name'] + '</a></li>\n';
});
html_list += '</ul>\n'

var html = '<html>\n<head>\n<title>Example presentations</title>\n</head>\n<body>'
html += '<h1>Example presentations</h1>\n' + html_list
html += '</body>\n</html>'

filename = path.resolve(__dirname, 'examples', 'index.html');
fs.writeFileSync(filename, html);
console.log(filename);
15 changes: 0 additions & 15 deletions examples/index.html

This file was deleted.

2 changes: 1 addition & 1 deletion js/impress.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* in modern browsers and inspired by the idea behind prezi.com.
*
*
* Copyright 2011-2012 Bartek Szopka (@bartaz), 2016-2023 Henrik Ingo (@henrikingo)
* Copyright 2011-2012 Bartek Szopka (@bartaz), 2016-2023 Henrik Ingo (@henrikingo)
* and 70+ other contributors
*
* Released under the MIT License.
Expand Down
3 changes: 3 additions & 0 deletions js/impress.min.js

Large diffs are not rendered by default.

Loading