Skip to content

Commit

Permalink
build: prettier after build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Jan 16, 2021
1 parent 0de444f commit 062f68c
Show file tree
Hide file tree
Showing 10 changed files with 108 additions and 83 deletions.
3 changes: 3 additions & 0 deletions docs/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/src/components.d.ts
dist/**/*
www/**/*
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dist/"
],
"scripts": {
"docs": "tsc --p ./scripts && node ./.deckgo/markdown-to-html",
"docs": "tsc --p ./scripts && node ./.deckgo/markdown-to-html && npx prettier --write src/",
"build": "npm run docs && stencil build --prerender",
"start": "npm run docs && stencil build --dev --watch --serve",
"test": "npm run docs && stencil test --spec --e2e",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/components/app-footer/app-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Component, Prop, h} from '@stencil/core';
@Component({
tag: 'app-footer',
styleUrl: 'app-footer.scss',
shadow: true
shadow: true,
})
export class AppFooter {
@Prop() start: boolean = false;
Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/components/app-logo/app-logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Component, h} from '@stencil/core';
@Component({
tag: 'app-logo',
styleUrl: 'app-logo.scss',
shadow: true
shadow: true,
})
export class AppLogo {
render() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Component, h} from '@stencil/core';
@Component({
tag: 'app-menu-footer',
styleUrl: 'app-menu-footer.scss',
shadow: true
shadow: true,
})
export class AppMenuFooter {
render() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {set, get} from 'idb-keyval';

@Component({
tag: 'app-theme-switcher',
styleUrl: 'app-theme-switcher.scss'
styleUrl: 'app-theme-switcher.scss',
})
export class AppThemeSwitcher {
@State()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Component, Element, Listen, h} from '@stencil/core';

@Component({
tag: 'app-navigation-modal',
styleUrl: 'app-navigation-modal.scss'
styleUrl: 'app-navigation-modal.scss',
})
export class AppNavigationModal {
@Element() el: HTMLElement;
Expand Down Expand Up @@ -45,7 +45,7 @@ export class AppNavigationModal {
<app-theme-switcher></app-theme-switcher>
</div>
</div>
</ion-content>
</ion-content>,
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ export class AppSlidePoll {
<h2 id="app-slide-poll-layout">Layout</h2>
<div class="container ion-margin">
<deckgo-deck embedded={true}>
<deckgo-slide-poll poll-link="https://app.deckdeckgo.com/poll" socket-url="https://api.deckdeckgo.com">
<deckgo-slide-poll poll-link="https://deckdeckgo.com/poll" socket-url="https://api.deckdeckgo.com">
<h1 slot="question">Do you like my presentation so far?</h1>
<p slot="answer-1">It is super</p>
<p slot="answer-2">Meh</p>
<p slot="answer-3">I could'nt care less</p>
<p slot="answer-4">Tell me why</p>
<p slot="how-to">
Go to <a href="https://app.deckdeckgo.com/poll">app.deckdeckgo.com/poll</a> and use the code {0}
Go to <a href="https://deckdeckgo.com/poll">deckdeckgo.com/poll</a> and use the code {0}
</p>
<p slot="awaiting-votes">Awaiting first votes</p>
<p slot="answer-5">Ain't nothin' but a heartache</p>
Expand Down Expand Up @@ -226,7 +226,7 @@ export class AppSlidePoll {
<td>pollLink</td>
<td>string</td>
<td>
<code>https://app.deckdeckgo.com/poll</code>
<code>https://deckdeckgo.com/poll</code>
</td>
<td>
The url which leads to the voting application respectively where your audience will be available to make their voice heard aka where they will
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,14 @@ export class AppSlidesConcept {
</ul>
<div class="container ion-margin">
<deckgo-deck embedded={true}>
<deckgo-slide-poll poll-link="https://app.deckdeckgo.com/poll" socket-url="https://api.deckdeckgo.com" connectPollSocket={false}>
<deckgo-slide-poll poll-link="https://deckdeckgo.com/poll" socket-url="https://api.deckdeckgo.com" connectPollSocket={false}>
<h1 slot="question">Do you like my presentation so far?</h1>
<p slot="answer-1">It is super</p>
<p slot="answer-2">Meh</p>
<p slot="answer-3">I could'nt care less</p>
<p slot="answer-4">Tell me why</p>
<p slot="how-to">
Go to <a href="https://app.deckdeckgo.com/poll">app.deckdeckgo.com/poll</a> and use the code {0}
Go to <a href="https://deckdeckgo.com/poll">deckdeckgo.com/poll</a> and use the code {0}
</p>
<p slot="awaiting-votes">Awaiting first votes</p>
<p slot="answer-5">Ain't nothin' but a heartache</p>
Expand Down
164 changes: 93 additions & 71 deletions docs/src/index.html
Original file line number Diff line number Diff line change
@@ -1,74 +1,96 @@
<!DOCTYPE html>
<html dir="ltr" lang="en">

<head>
<meta charset="utf-8">
<title>DeckDeckGo | Documentation</title>

<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="description" content="The Progressive Web App alternative for simple presentations">
<meta name="theme-color" content="#16161d">

<meta property="og:site_name" content="DeckDeckGo | Documentation">
<meta property="og:title" content="DeckDeckGo | Documentation">

<meta name="author" content="David Dal Busco">

<meta name="description" content="The Progressive Web App alternative for simple presentations">
<meta property="og:description" content="The Progressive Web App alternative for simple presentations">

<meta property="og:type" content="website">
<meta property="og:url" content="https://docs.deckdeckgo.com">

<meta property="og:image" content="https://docs.deckdeckgo.com/assets/img/deckdeckgo.png">
<meta property="og:image:type" content="image/png">

<link rel="canonical" href="https://docs.deckdeckgo.com"/>

<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png">
<link rel="shortcut icon" href="/assets/favicon/favicon.ico">

<!-- Splash screens-->
<link rel="apple-touch-startup-image" href="assets/splash/launch-640x1136.png" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="assets/splash/launch-750x1294.png" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="assets/splash/launch-1242x2148.png" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="assets/splash/launch-1125x2436.png" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="assets/splash/launch-1536x2048.png" media="(min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="assets/splash/launch-1668x2224.png" media="(min-device-width: 834px) and (max-device-width: 834px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="assets/splash/launch-2048x2732.png" media="(min-device-width: 1024px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)">

<meta name="msapplication-TileColor" content="#3880ff">
<meta name="msapplication-config" content="/assets/favicon/browserconfig.xml">
<meta name="theme-color" content="#3880ff">

<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">

<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="DeckDeckGo | Documentation">
<meta name="apple-mobile-web-app-status-bar-style" content="default">

<meta http-equiv="x-ua-compatible" content="IE=Edge">

<link href="/build/app.css" rel="stylesheet">

<script type="module" src="/build/app.esm.js"></script>
<script nomodule src="/build/app.js"></script>

<link rel="manifest" href="/manifest.json">
</head>

<body>

<app-root></app-root>

<noscript>
Please enable Javascript to access this documentation.
</noscript>

</body>

<head>
<meta charset="utf-8" />
<title>DeckDeckGo | Documentation</title>

<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="description" content="The Progressive Web App alternative for simple presentations" />
<meta name="theme-color" content="#16161d" />

<meta property="og:site_name" content="DeckDeckGo | Documentation" />
<meta property="og:title" content="DeckDeckGo | Documentation" />

<meta name="author" content="David Dal Busco" />

<meta name="description" content="The Progressive Web App alternative for simple presentations" />
<meta property="og:description" content="The Progressive Web App alternative for simple presentations" />

<meta property="og:type" content="website" />
<meta property="og:url" content="https://docs.deckdeckgo.com" />

<meta property="og:image" content="https://docs.deckdeckgo.com/assets/img/deckdeckgo.png" />
<meta property="og:image:type" content="image/png" />

<link rel="canonical" href="https://docs.deckdeckgo.com" />

<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png" />
<link rel="shortcut icon" href="/assets/favicon/favicon.ico" />

<!-- Splash screens-->
<link
rel="apple-touch-startup-image"
href="assets/splash/launch-640x1136.png"
media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="assets/splash/launch-750x1294.png"
media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="assets/splash/launch-1242x2148.png"
media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="assets/splash/launch-1125x2436.png"
media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="assets/splash/launch-1536x2048.png"
media="(min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="assets/splash/launch-1668x2224.png"
media="(min-device-width: 834px) and (max-device-width: 834px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="assets/splash/launch-2048x2732.png"
media="(min-device-width: 1024px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)"
/>

<meta name="msapplication-TileColor" content="#3880ff" />
<meta name="msapplication-config" content="/assets/favicon/browserconfig.xml" />
<meta name="theme-color" content="#3880ff" />

<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />

<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="DeckDeckGo | Documentation" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />

<meta http-equiv="x-ua-compatible" content="IE=Edge" />

<link href="/build/app.css" rel="stylesheet" />

<script type="module" src="/build/app.esm.js"></script>
<script nomodule src="/build/app.js"></script>

<link rel="manifest" href="/manifest.json" />
</head>

<body>
<app-root></app-root>

<noscript> Please enable Javascript to access this documentation. </noscript>
</body>
</html>

0 comments on commit 062f68c

Please sign in to comment.