-
Home`;
+
+
+
+
Home`;
+ let groups = {};
for ( let item in pathObject ) {
- console.log( pathObject[ item ] );
+ if ( groups[ pathObject[ item ][ 'group' ] ] ) {
+ groups[ pathObject[ item ][ 'group' ] ].push( pathObject[ item ] );
+ } else {
+ groups[ pathObject[ item ][ 'group' ] ] = [ pathObject[ item ] ];
+ }
}
+
+ for ( let group in groups ) {
+ html += `
${ group }
+
\n';
+ }
+
+ html += `
+
+
+
+
+`;
+
+ console.log( html );
+ fs.writeFileSync( path.join( __dirname + '/dist/docs/side-bar.html' ), html );
}
function buildDocs () {
@@ -109,26 +129,30 @@ function guessTitle( html ) {
function storeHTML( html, filepath ) {
let title = guessTitle( html );
let data = `
-
+
-
${ title } :: docs - libreevent
-
-
-
-
-
-
-
-
+
${ title } :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
+
+
`;
@@ -152,5 +176,5 @@ function storeHTML( html, filepath ) {
}
fileOutputPath += '/index.html';
fs.writeFileSync( fileOutputPath, data );
- return { 'filePath': fileOutputPath, 'title': title, 'group': group };
+ return { 'filePath': '/docs/' + category, 'title': title, 'group': group };
}
\ No newline at end of file
diff --git a/website/dist/docs/admin-panel/admin-accounts/index.html b/website/dist/docs/admin-panel/admin-accounts/index.html
index 4f1c538..939e1ee 100644
--- a/website/dist/docs/admin-panel/admin-accounts/index.html
+++ b/website/dist/docs/admin-panel/admin-accounts/index.html
@@ -1,19 +1,21 @@
-
+
-
Admin Accounts :: docs - libreevent
-
-
-
-
-
-
-
-
+
Admin Accounts :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
Admin Accounts
@@ -56,5 +58,7 @@
+
+
\ No newline at end of file
diff --git a/website/dist/docs/admin-panel/events/index.html b/website/dist/docs/admin-panel/events/index.html
index a93c6b2..e1eed92 100644
--- a/website/dist/docs/admin-panel/events/index.html
+++ b/website/dist/docs/admin-panel/events/index.html
@@ -1,19 +1,21 @@
-
+
-
Events :: docs - libreevent
-
-
-
-
-
-
-
-
+
Events :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
+
+
\ No newline at end of file
diff --git a/website/dist/docs/admin-panel/index.html b/website/dist/docs/admin-panel/index.html
index 6122833..73e3d9c 100644
--- a/website/dist/docs/admin-panel/index.html
+++ b/website/dist/docs/admin-panel/index.html
@@ -1,19 +1,21 @@
-
+
-
Admin panel :: docs - libreevent
-
-
-
-
-
-
-
-
+
Admin panel :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
Admin panel
@@ -31,5 +33,7 @@
+
+
\ No newline at end of file
diff --git a/website/dist/docs/admin-panel/pages/index.html b/website/dist/docs/admin-panel/pages/index.html
index 7ebda96..c3ac8b3 100644
--- a/website/dist/docs/admin-panel/pages/index.html
+++ b/website/dist/docs/admin-panel/pages/index.html
@@ -1,24 +1,28 @@
-
+
-
Pages :: docs - libreevent
-
-
-
-
-
-
-
-
+
Pages :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
+
+
\ No newline at end of file
diff --git a/website/dist/docs/admin-panel/plugins/index.html b/website/dist/docs/admin-panel/plugins/index.html
index b33bb56..337741d 100644
--- a/website/dist/docs/admin-panel/plugins/index.html
+++ b/website/dist/docs/admin-panel/plugins/index.html
@@ -1,24 +1,28 @@
-
+
-
Plugins :: docs - libreevent
-
-
-
-
-
-
-
-
+
Plugins :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
+
+
\ No newline at end of file
diff --git a/website/dist/docs/admin-panel/seatplan-editor/index.html b/website/dist/docs/admin-panel/seatplan-editor/index.html
index 95bfa97..278601d 100644
--- a/website/dist/docs/admin-panel/seatplan-editor/index.html
+++ b/website/dist/docs/admin-panel/seatplan-editor/index.html
@@ -1,19 +1,21 @@
-
+
-
Seatplan editor :: docs - libreevent
-
-
-
-
-
-
-
-
+
Seatplan editor :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
Seatplan editor
@@ -29,5 +31,7 @@
+
+
\ No newline at end of file
diff --git a/website/dist/docs/admin-panel/settings/index.html b/website/dist/docs/admin-panel/settings/index.html
index 67ae11f..f5d9b49 100644
--- a/website/dist/docs/admin-panel/settings/index.html
+++ b/website/dist/docs/admin-panel/settings/index.html
@@ -1,19 +1,21 @@
-
+
-
Settings :: docs - libreevent
-
-
-
-
-
-
-
-
+
Settings :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
Settings
@@ -38,5 +40,7 @@
+
+
\ No newline at end of file
diff --git a/website/dist/docs/contributing/index.html b/website/dist/docs/contributing/index.html
index 296b0f1..37e9a88 100644
--- a/website/dist/docs/contributing/index.html
+++ b/website/dist/docs/contributing/index.html
@@ -1,19 +1,21 @@
-
+
-
Contributing :: docs - libreevent
-
-
-
-
-
-
-
-
+
Contributing :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
Contributing
@@ -21,5 +23,7 @@
+
+
\ No newline at end of file
diff --git a/website/dist/docs/contributing/plugins/index.html b/website/dist/docs/contributing/plugins/index.html
index 91b1dc0..ab63d3a 100644
--- a/website/dist/docs/contributing/plugins/index.html
+++ b/website/dist/docs/contributing/plugins/index.html
@@ -1,24 +1,28 @@
-
+
-
Contributing Plugins :: docs - libreevent
-
-
-
-
-
-
-
-
+
Contributing Plugins :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
+
+
\ No newline at end of file
diff --git a/website/dist/docs/css/navstyle.css b/website/dist/docs/css/navstyle.css
new file mode 100644
index 0000000..e69de29
diff --git a/website/dist/docs/errors/index.html b/website/dist/docs/errors/index.html
index d08e756..6c8dcd5 100644
--- a/website/dist/docs/errors/index.html
+++ b/website/dist/docs/errors/index.html
@@ -1,19 +1,21 @@
-
+
-
Errors :: docs - libreevent
-
-
-
-
-
-
-
-
+
Errors :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
+
+
\ No newline at end of file
diff --git a/website/dist/docs/how-it-works/index.html b/website/dist/docs/how-it-works/index.html
index f38b1d2..874b26e 100644
--- a/website/dist/docs/how-it-works/index.html
+++ b/website/dist/docs/how-it-works/index.html
@@ -1,19 +1,21 @@
-
+
-
How it works :: docs - libreevent
-
-
-
-
-
-
-
-
+
How it works :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
How it works
@@ -23,5 +25,7 @@
+
+
\ No newline at end of file
diff --git a/website/dist/docs/index.html b/website/dist/docs/index.html
index f13e694..b7bf50f 100644
--- a/website/dist/docs/index.html
+++ b/website/dist/docs/index.html
@@ -14,39 +14,19 @@
+
-
-
Docs - libreǝvent
-
-
-
-
Website & project not completed yet!
+
+
+
Docs - libreǝvent
+
+
+
+
Website & project not completed yet!
+
-
-
+
\ No newline at end of file
diff --git a/website/dist/docs/js/index.js b/website/dist/docs/js/index.js
index 133fbff..d199f19 100644
--- a/website/dist/docs/js/index.js
+++ b/website/dist/docs/js/index.js
@@ -2,4 +2,22 @@ $( document ).ready( function () {
$( '#nav' ).load( '/nav.html' );
$( '#side-bar' ).load( '/docs/side-bar.html' );
$( '#footer' ).load( '/footer.html' );
-} );
\ No newline at end of file
+} );
+
+let btn = document.getElementById( 'backToTop' );
+
+function backToTop () {
+ if ( document.body.scrollTop > 500 || document.documentElement.scrollTop > 500 ) {
+ window.scrollTo( { top: 0, behavior: 'smooth' } );
+ }
+}
+
+window.onscroll = function () {
+ if ( document.body.scrollTop > 500 || document.documentElement.scrollTop > 500 ) {
+ btn.style.opacity = '1';
+ btn.style.cursor = 'pointer';
+ } else {
+ btn.style.opacity = '0';
+ btn.style.cursor = 'default';
+ }
+};
\ No newline at end of file
diff --git a/website/dist/docs/js/nav.js b/website/dist/docs/js/nav.js
new file mode 100644
index 0000000..3ae1b50
--- /dev/null
+++ b/website/dist/docs/js/nav.js
@@ -0,0 +1,3 @@
+function toggleList( element ) {
+ $( '#' + element ).slideToggle();
+}
\ No newline at end of file
diff --git a/website/dist/docs/payments/index.html b/website/dist/docs/payments/index.html
index ffac545..418aeef 100644
--- a/website/dist/docs/payments/index.html
+++ b/website/dist/docs/payments/index.html
@@ -1,19 +1,21 @@
-
+
-
Payments :: docs - libreevent
-
-
-
-
-
-
-
-
+
Payments :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
Payments
@@ -29,5 +31,7 @@ See
here for pricing information
+
+
\ No newline at end of file
diff --git a/website/dist/docs/plugins/index.html b/website/dist/docs/plugins/index.html
index b33bb56..337741d 100644
--- a/website/dist/docs/plugins/index.html
+++ b/website/dist/docs/plugins/index.html
@@ -1,24 +1,28 @@
-
+
-
Plugins :: docs - libreevent
-
-
-
-
-
-
-
-
+
Plugins :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
+
+
\ No newline at end of file
diff --git a/website/dist/docs/setup/index.html b/website/dist/docs/setup/index.html
index 763f79b..220e56b 100644
--- a/website/dist/docs/setup/index.html
+++ b/website/dist/docs/setup/index.html
@@ -1,19 +1,21 @@
-
+
-
Setup :: docs - libreevent
-
-
-
-
-
-
-
-
+
Setup :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
+
+
\ No newline at end of file
diff --git a/website/dist/docs/setup/installation/index.html b/website/dist/docs/setup/installation/index.html
index 5570ab6..e8f3db4 100644
--- a/website/dist/docs/setup/installation/index.html
+++ b/website/dist/docs/setup/installation/index.html
@@ -1,19 +1,21 @@
-
+
-
Installation :: docs - libreevent
-
-
-
-
-
-
-
-
+
Installation :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
Installation
@@ -41,5 +43,7 @@ https://www.digitalocean.com/go/affiliates
+
+
\ No newline at end of file
diff --git a/website/dist/docs/setup/setup/index.html b/website/dist/docs/setup/setup/index.html
index 4d9a0b5..926db3d 100644
--- a/website/dist/docs/setup/setup/index.html
+++ b/website/dist/docs/setup/setup/index.html
@@ -1,19 +1,21 @@
-
+
-
Setup of libreevent :: docs - libreevent
-
-
-
-
-
-
-
-
+
Setup of libreevent :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
Setup of libreevent
@@ -69,5 +71,7 @@
+
+
\ No newline at end of file
diff --git a/website/dist/docs/side-bar.html b/website/dist/docs/side-bar.html
new file mode 100644
index 0000000..fea627e
--- /dev/null
+++ b/website/dist/docs/side-bar.html
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/website/dist/docs/sponsor/index.html b/website/dist/docs/sponsor/index.html
index cbaf996..c895df8 100644
--- a/website/dist/docs/sponsor/index.html
+++ b/website/dist/docs/sponsor/index.html
@@ -1,24 +1,28 @@
-
+
-
Sponsor :: docs - libreevent
-
-
-
-
-
-
-
-
+
Sponsor :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
+
+
\ No newline at end of file
diff --git a/website/dist/docs/systemrequirements/index.html b/website/dist/docs/systemrequirements/index.html
index 91ba9e5..4addeff 100644
--- a/website/dist/docs/systemrequirements/index.html
+++ b/website/dist/docs/systemrequirements/index.html
@@ -1,19 +1,21 @@
-
+
-
Systemrequirements :: docs - libreevent
-
-
-
-
-
-
-
-
+
Systemrequirements :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
Systemrequirements
@@ -25,5 +27,7 @@
+
+
\ No newline at end of file
diff --git a/website/dist/docs/tutorial/index.html b/website/dist/docs/tutorial/index.html
index 618644b..daa6585 100644
--- a/website/dist/docs/tutorial/index.html
+++ b/website/dist/docs/tutorial/index.html
@@ -1,24 +1,28 @@
-
+
-
Tutorial :: docs - libreevent
-
-
-
-
-
-
-
-
+
Tutorial :: docs - libreevent
+
+
+
+
+
+
+
+
+
-
+
+
+
+
\ No newline at end of file
diff --git a/website/dist/nav.html b/website/dist/nav.html
index 5a7bbd7..9b29af8 100644
--- a/website/dist/nav.html
+++ b/website/dist/nav.html
@@ -30,10 +30,15 @@
} else {
$( '.nav-wrapper' ).css( 'display', 'none' );
}
+
if ( location.pathname === '/' ) {
$( '#home' ).removeClass( 'inactive' );
- } else {
+ } else if( !location.pathname.substring( 1, location.pathname.length - 1 ).includes( '/' ) ) {
$( '#' + location.pathname.slice( 1, location.pathname.length - 1 ) ).removeClass( 'inactive' );
+ } else if ( location.pathname.slice( 1, location.pathname.substring( 1 ).indexOf( '/' ) + 1 ) === 'docs' ) {
+ $( '#docs' ).removeClass( 'inactive' );
+ } else {
+ console.error( 'an error occurred whilst highlighting the path' );
}
sessionStorage.setItem( 'menuOpen', 'false' );
} );