From 062f68c186613d7072eb2ac888357778eebf4805 Mon Sep 17 00:00:00 2001 From: peterpeterparker Date: Sat, 16 Jan 2021 10:54:10 +0100 Subject: [PATCH] build: prettier after build docs --- docs/.prettierignore | 3 + docs/package.json | 2 +- .../app/components/app-footer/app-footer.tsx | 2 +- docs/src/app/components/app-logo/app-logo.tsx | 2 +- .../app-menu-footer/app-menu-footer.tsx | 2 +- .../app-theme-switcher/app-theme-switcher.tsx | 2 +- .../app-navigation-modal.tsx | 4 +- .../slides/app-slide-poll/app-slide-poll.tsx | 6 +- .../app-slides-concept/app-slides-concept.tsx | 4 +- docs/src/index.html | 164 ++++++++++-------- 10 files changed, 108 insertions(+), 83 deletions(-) create mode 100644 docs/.prettierignore diff --git a/docs/.prettierignore b/docs/.prettierignore new file mode 100644 index 000000000..b2321d9bd --- /dev/null +++ b/docs/.prettierignore @@ -0,0 +1,3 @@ +**/src/components.d.ts +dist/**/* +www/**/* diff --git a/docs/package.json b/docs/package.json index 48134758a..fce6b9643 100644 --- a/docs/package.json +++ b/docs/package.json @@ -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", diff --git a/docs/src/app/components/app-footer/app-footer.tsx b/docs/src/app/components/app-footer/app-footer.tsx index a28b37a74..0ef5f6deb 100644 --- a/docs/src/app/components/app-footer/app-footer.tsx +++ b/docs/src/app/components/app-footer/app-footer.tsx @@ -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; diff --git a/docs/src/app/components/app-logo/app-logo.tsx b/docs/src/app/components/app-logo/app-logo.tsx index 5ce573e6a..2de4891ca 100644 --- a/docs/src/app/components/app-logo/app-logo.tsx +++ b/docs/src/app/components/app-logo/app-logo.tsx @@ -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() { diff --git a/docs/src/app/components/app-menu-footer/app-menu-footer.tsx b/docs/src/app/components/app-menu-footer/app-menu-footer.tsx index a68e1d456..993bffe67 100644 --- a/docs/src/app/components/app-menu-footer/app-menu-footer.tsx +++ b/docs/src/app/components/app-menu-footer/app-menu-footer.tsx @@ -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() { diff --git a/docs/src/app/components/app-theme-switcher/app-theme-switcher.tsx b/docs/src/app/components/app-theme-switcher/app-theme-switcher.tsx index a1a8a0a19..5c76aa4e9 100644 --- a/docs/src/app/components/app-theme-switcher/app-theme-switcher.tsx +++ b/docs/src/app/components/app-theme-switcher/app-theme-switcher.tsx @@ -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() diff --git a/docs/src/app/modals/app-navigation-modal/app-navigation-modal.tsx b/docs/src/app/modals/app-navigation-modal/app-navigation-modal.tsx index 03e91779d..1b9fce1d2 100644 --- a/docs/src/app/modals/app-navigation-modal/app-navigation-modal.tsx +++ b/docs/src/app/modals/app-navigation-modal/app-navigation-modal.tsx @@ -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; @@ -45,7 +45,7 @@ export class AppNavigationModal { - + , ]; } } diff --git a/docs/src/app/pages/docs/slides/app-slide-poll/app-slide-poll.tsx b/docs/src/app/pages/docs/slides/app-slide-poll/app-slide-poll.tsx index 999c11687..03827f5df 100644 --- a/docs/src/app/pages/docs/slides/app-slide-poll/app-slide-poll.tsx +++ b/docs/src/app/pages/docs/slides/app-slide-poll/app-slide-poll.tsx @@ -89,14 +89,14 @@ export class AppSlidePoll {

Layout

- +

Do you like my presentation so far?

It is super

Meh

I could'nt care less

Tell me why

- Go to app.deckdeckgo.com/poll and use the code {0} + Go to deckdeckgo.com/poll and use the code {0}

Awaiting first votes

Ain't nothin' but a heartache

@@ -226,7 +226,7 @@ export class AppSlidePoll { pollLink string - https://app.deckdeckgo.com/poll + https://deckdeckgo.com/poll The url which leads to the voting application respectively where your audience will be available to make their voice heard aka where they will diff --git a/docs/src/app/pages/docs/slides/app-slides-concept/app-slides-concept.tsx b/docs/src/app/pages/docs/slides/app-slides-concept/app-slides-concept.tsx index d1c1f58eb..1b920c96f 100644 --- a/docs/src/app/pages/docs/slides/app-slides-concept/app-slides-concept.tsx +++ b/docs/src/app/pages/docs/slides/app-slides-concept/app-slides-concept.tsx @@ -290,14 +290,14 @@ export class AppSlidesConcept {
- +

Do you like my presentation so far?

It is super

Meh

I could'nt care less

Tell me why

- Go to app.deckdeckgo.com/poll and use the code {0} + Go to deckdeckgo.com/poll and use the code {0}

Awaiting first votes

Ain't nothin' but a heartache

diff --git a/docs/src/index.html b/docs/src/index.html index 879a23571..c3fe37c1e 100644 --- a/docs/src/index.html +++ b/docs/src/index.html @@ -1,74 +1,96 @@ - - - - DeckDeckGo | Documentation - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + DeckDeckGo | Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +