build
This commit is contained in:
@@ -55,7 +55,7 @@ html, body {
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.doc-container {
|
||||
#doc-container {
|
||||
width: 90%;
|
||||
margin: 5%;
|
||||
}
|
||||
|
||||
@@ -13,10 +13,8 @@
|
||||
<div id="nav"></div>
|
||||
<div id="top"></div>
|
||||
<div id="docPage">
|
||||
<div class="doc-container">
|
||||
<div class="docTitle">
|
||||
<div id="doc-container">
|
||||
<h1>Getting Started with impress.js</h1>
|
||||
</div>
|
||||
<p>impress.js is a JavaScript framework to create stunning presentations. Note: impress may not help you, if you have nothing interesting to say!</p>
|
||||
<p>If you are new to impress and you want to learn to use it, we suggest you <a href="./gettingStarted.html" class="docs-link">start here</a>!</p>
|
||||
</div>
|
||||
|
||||
@@ -13,10 +13,8 @@
|
||||
<div id="nav"></div>
|
||||
<div id="top"></div>
|
||||
<div id="docPage">
|
||||
<div class="doc-container">
|
||||
<div class="docTitle">
|
||||
<div id="doc-container">
|
||||
<h1>Welcome to the impress.js docs!</h1>
|
||||
</div>
|
||||
<p>impress.js is a JavaScript framework to create stunning presentations. Note: impress may not help you, if you have nothing interesting to say!</p>
|
||||
<p>If you are new to impress and you want to learn to use it, we suggest you <a href="./gettingStarted.html" class="docs-link">start here</a>!</p>
|
||||
</div>
|
||||
|
||||
@@ -16,6 +16,7 @@ const fs = require( 'fs' );
|
||||
const path = require( 'path' );
|
||||
const mdhtml = require( 'markdown-it' );
|
||||
const md2html = new mdhtml();
|
||||
const docRoot = path.join( __dirname + '/../' );
|
||||
|
||||
const pluginsPath = path.join( __dirname + '/../../../src/plugins' );
|
||||
|
||||
@@ -43,5 +44,27 @@ function checkLinks ( html ) {
|
||||
}
|
||||
|
||||
function storeHTML ( html, path ) {
|
||||
|
||||
let fileOut = `<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Docs - impress.js</title>
|
||||
<!--I am using jquery for button animations.-->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
<script src="/js/docs/loader.js"></script>
|
||||
<link rel="stylesheet" href="/css/docs/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="content">
|
||||
<div id="nav"></div>
|
||||
<div id="top"></div>
|
||||
<div id="docPage">
|
||||
<div id="doc-container">` + html
|
||||
+ `</div>
|
||||
</div>
|
||||
<div id="footer"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>`;
|
||||
fs.writeFileSync( docRoot + '/plugins/' + path + '.html', fileOut );
|
||||
}
|
||||
@@ -3,13 +3,17 @@
|
||||
<head>
|
||||
<title>Docs - impress.js</title>
|
||||
<!--I am using jquery for button animations.-->
|
||||
<script defer src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
<script src="/js/docs/loader.js"></script>
|
||||
<link rel="stylesheet" href="/css/docs/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="content">
|
||||
<div id="nav"></div>
|
||||
<div id="top"></div>
|
||||
<div id="docPage">
|
||||
<div class="docTitle"></div>
|
||||
<div id="doc-container"></div>
|
||||
</div>
|
||||
<div id="footer"></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user