From 399c593df4f6b5d6737227c0c735995dd75a93fb Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Wed, 3 Apr 2024 17:16:49 +0200 Subject: [PATCH] Lint Signed-off-by: Sam Therapy --- .github/workflows/build.yaml | 3 +- renovate.json | 11 +- src/hooks.server.ts | 2 +- src/lib/instructions.svelte | 280 +++++++++++++++++------------------ src/routes/+error.svelte | 2 +- vite.config.ts | 4 +- 6 files changed, 147 insertions(+), 155 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6474377..1ea89cf 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -3,7 +3,6 @@ on: push: pull_request: - jobs: build: runs-on: ubuntu-latest @@ -32,4 +31,4 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./build force_orphan: true - publish_branch: pages \ No newline at end of file + publish_branch: pages diff --git a/renovate.json b/renovate.json index 348fc86..7d0d44f 100644 --- a/renovate.json +++ b/renovate.json @@ -1,10 +1,5 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:recommended", - ":pinSkipCi", - ":enableVulnerabilityAlerts", - ":semanticCommits" - ], - "automerge": true + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:recommended", ":pinSkipCi", ":enableVulnerabilityAlerts", ":semanticCommits"], + "automerge": true } diff --git a/src/hooks.server.ts b/src/hooks.server.ts index 7c93779..2784857 100644 --- a/src/hooks.server.ts +++ b/src/hooks.server.ts @@ -32,4 +32,4 @@ export async function handle({ event, resolve }) { } } }); -} \ No newline at end of file +} diff --git a/src/lib/instructions.svelte b/src/lib/instructions.svelte index 17b3725..f72e3c0 100644 --- a/src/lib/instructions.svelte +++ b/src/lib/instructions.svelte @@ -1,150 +1,148 @@ - - - Create a repository! - - 1 - Make a repository -
-

- Create a public repository named pages to make the site available - on the main subdomain. -

-
-
-

Or, create a branch named pages in any public repository.

-

- git switch --orphan pages
git rm --cached -r . -

- + + + Create a repository! + + 1 - Make a repository +
+

+ Create a public repository named pages to make the site available on + the main subdomain. +

+
+
+

Or, create a branch named pages in any public repository.

+

+ git switch --orphan pages
git rm --cached -r . +

+ -
- - 2 - Add your files -

Push your static content. HTML, CSS, fonts, images or anything else.

-
- - 3 - You're Done! -
-

Access your new website with this link:

- https://USERNAME.{pagesDomain}[/REPOSITORY][/@BRANCH] -

or, use this handy form that can navigate for you!

-
-
- -
.{pagesDomain}/
- - -
- Take me there! -
-
-
-

What about custom domains?

-

- To use custom domains, create a .domains in the root of your - repository with the domain name you would like to use. -

-
-

Then, add a DNS record for that domain:

- (note): use the above form to auto-generate your DNS records! - - - CNAME (Prefered) - - CNAME [[branch.]repo.]user.{pagesDomain}. - - - - - ALIAS (If available) - -

For apex domains where CNAME does not work.

-

- ALIAS {pagesDomain}.
TXT $[[branch.]repo.]user.{pagesDomain} -

- + + + 2 - Add your files +

Push your static content. HTML, CSS, fonts, images or anything else.

+
+ + 3 - You're Done! +
+

Access your new website with this link:

+ https://USERNAME.{pagesDomain}[/REPOSITORY][/@BRANCH] +

or, use this handy form that can navigate for you!

+
+
+ +
.{pagesDomain}/
+ + +
+ Take me there! +
+
+
+

What about custom domains?

+

+ To use custom domains, create a .domains in the root of your repository + with the domain name you would like to use. +

+
+

Then, add a DNS record for that domain:

+ (note): use the above form to auto-generate your DNS records! + + + CNAME (Prefered) + + CNAME [[branch.]repo.]user.{pagesDomain}. + + + + + ALIAS (If available) + +

For apex domains where CNAME does not work.

+

+ ALIAS {pagesDomain}.
TXT $[[branch.]repo.]user.{pagesDomain} +

+ -
-
- - A/AAAA (Old reliable) - -

If CNAME will not work and ALIAS is not available

-

- A {ipv4}
AAAA {ipv6}
TXT $[[branch.]repo.]user.{pagesDomain} -

- +
+
+ + A/AAAA (Old reliable) + +

If CNAME will not work and ALIAS is not available

+

+ A {ipv4}
AAAA {ipv6}
TXT $[[branch.]repo.]user.{pagesDomain} +

+ -
-
-
-
-
-
- \ No newline at end of file + > +
+
+
+
+
+
+
diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte index 57fe263..7c88b91 100644 --- a/src/routes/+error.svelte +++ b/src/routes/+error.svelte @@ -11,4 +11,4 @@ An unexpected error occurred. {/if}

- \ No newline at end of file + diff --git a/vite.config.ts b/vite.config.ts index e8c9e0e..d0a7d37 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,10 +4,10 @@ import { defineConfig } from 'vite'; export default defineConfig({ build: { - sourcemap: true, + sourcemap: true }, css: { - devSourcemap: true, + devSourcemap: true }, plugins: [sveltekit(), purgeCss()] });