Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnavK-09 committed Mar 3, 2024
1 parent 76a40e3 commit 5b9002d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'demo/_site'
path: "demo/_site"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
> ## Follow these link mainly:-
>
> - 🌐 **Follow Website:-
> [arnavk-09.github.io/lume_glow/](https://arnavk-09.github.io/lume_glow/)**
> [arnavk-09.github.io/lume_glow/](https://arnavk-09.github.io/lume_glow/)**
> - 🔌 **Deno Plugin:-
> [deno.land/x/lume_glow/plugin.ts](https://deno.land/x/lume_glow/plugin.ts)**
> [deno.land/x/lume_glow/plugin.ts](https://deno.land/x/lume_glow/plugin.ts)**
> - 🌟 **Github Repo:-
> [github.com/ArnavK-09/lume_glow](https://github.com/ArnavK-09/lume_glow)**
> [github.com/ArnavK-09/lume_glow](https://github.com/ArnavK-09/lume_glow)**
### 🔥 Lume:-

Expand Down
8 changes: 3 additions & 5 deletions plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ export interface Options {
const LINKS = {
default:
"https://raw.githubusercontent.com/nuejs/nue/master/packages/glow/minified/glow.css",
nano:
"https://raw.githubusercontent.com/nuejs/nue/master/packages/glow/minified/glow.nano.css",
nano: "https://raw.githubusercontent.com/nuejs/nue/master/packages/glow/minified/glow.nano.css",
};

/**
Expand Down Expand Up @@ -66,9 +65,8 @@ export default function (userOptions?: Options): Plugin {

// add glow styles to page
if (Array.from(allCodeBlocks).length !== 0) {
const stylesheet = userOptions?.size == "nano"
? LINKS.nano
: LINKS.default;
const stylesheet =
userOptions?.size == "nano" ? LINKS.nano : LINKS.default;
const src = await fetch(stylesheet);
const css = await src.text();
const tag = page.document.createElement("style");
Expand Down

0 comments on commit 5b9002d

Please sign in to comment.