1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-06 09:19:22 +02:00

Update website

This commit is contained in:
Laurent Cozic
2017-11-18 16:13:27 +00:00
parent 716b1315a9
commit 9519bb1218
13 changed files with 242 additions and 35 deletions

View File

@@ -128,16 +128,13 @@ const headerHtml = `<!doctype html>
.nav a {
color: white;
display: inline-block;
padding: .7em 1.4em .7em 1.4em;
}
.nav.sticky a {
padding: .4em 1.4em .4em 1.4em;
padding: .6em 1.1em .6em 1.1em;
}
.nav ul {
padding-left: 2em;
margin-bottom: 0;
display: table-cell;
min-width: 400px;
min-width: 420px;
}
.nav ul li {
display: inline-block;
@@ -178,6 +175,7 @@ const headerHtml = `<!doctype html>
<ul>
<li class="{{selectedHome}}"><a href="{{baseUrl}}/">Home</a></li>
<li class="{{selectedTerminal}}"><a href="{{baseUrl}}/terminal">Terminal App Manual</a></li>
<li class="{{selectedDesktop}}"><a href="{{baseUrl}}/desktop">Desktop App</a></li>
</ul>
<div class="nav-right">
<iframe src="https://www.facebook.com/plugins/share_button.php?href=http%3A%2F%2Fjoplin.cozic.net&layout=button&size=small&mobile_iframe=true&width=60&height=20&appId" width="60" height="20" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
@@ -297,14 +295,16 @@ function renderFileToHtml(sourcePath, targetPath, params) {
async function main() {
renderFileToHtml(rootDir + '/README.md', rootDir + '/docs/index.html', {
baseUrl: '',
selectedHome: 'selected',
});
renderFileToHtml(rootDir + '/README_terminal.md', rootDir + '/docs/terminal/index.html', {
baseUrl: '..',
selectedTerminal: 'selected',
});
renderFileToHtml(rootDir + '/README_desktop.md', rootDir + '/docs/desktop/index.html', {
selectedDesktop: 'selected',
});
}
main().catch((error) => {