Skip to content

Commit

Permalink
Add website and fix default layout
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Aug 31, 2023
1 parent ee69cc0 commit b5e9cc4
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 7 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/neocities.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy to neociteis

on:
push:
branches:
- master

env:
node-version: lts/*
FORCE_COLOR: 1

concurrency: # prevent concurrent deploys doing starnge things
group: deploy-to-neocities
cancel-in-progress: true

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{env.node-version}}
- run: npm i
- run: npm run build

- name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@v1
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: true
10 changes: 5 additions & 5 deletions lib/defaults/default.root.layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export default function defaultRootLayout ({
: null}
${defaultStyle
? html`
<link rel="stylesheet" href="https://unpkg.com/mine.css@^9/dist/mine.css" />
<link rel="stylesheet" href="https://unpkg.com/mine.css@^9/dist/layout.css" />
<link rel="stylesheet" href="https://unpkg.com/highlight.js@^11/styles/github-dark-dimmed.css" />
<script>
import { toggleTheme } from 'https://unpkg.com/bcomnes/mine.css@^7.0.0?module';
<link rel="stylesheet" href="https://unpkg.com/mine.css/dist/mine.css" />
<link rel="stylesheet" href="https://unpkg.com/mine.css/dist/layout.css" />
<link rel="stylesheet" href="https://unpkg.com/highlight.js/styles/github-dark-dimmed.css" />
<script type="module">
import { toggleTheme } from 'https://unpkg.com/mine.css?module';
window.toggleTheme = toggleTheme
</script>
`
Expand Down
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"npm-run-all2": "^6.0.0",
"snazzy": "^9.0.0",
"standard": "^17.0.0",
"tap": "^16.0.1"
"tap": "^16.0.1",
"browser-sync": "^2.26.7"
},
"homepage": "https://github.com/bcomnes/siteup-cli",
"keywords": [],
Expand All @@ -76,6 +77,12 @@
"test:tap": "c8 tap --no-coverage --color",
"test:deptree": "depcruise --validate .dependency-cruiser.json bin.js",
"build-examples": "run-p example:*",
"clean": "rm -rf public && mkdir -p public",
"build": "npm run clean && run-p build:*",
"build:siteup": "./bin.js --src . --ignore examples,test-cases,coverage",
"watch": "npm run clean && run-p watch:*",
"watch:serve": "browser-sync start --server 'public' --files 'public'",
"watch:siteup": "npm run build:siteup -- --watch",
"example:basic": "cd examples/basic && npm i && npm run build",
"example:string-layouts": "cd examples/string-layouts && npm i --production && npm run build",
"example:default-layout": "cd examples/default-layout && npm i --production && npm run build",
Expand All @@ -86,7 +93,8 @@
"version:changelog": "auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:'",
"version:git": "git add CHANGELOG.md",
"deps": "depcruise --exclude '^node_modules|^[a-zA-Z0-9\\_]+$' --output-type dot . | dot -T svg > dependencygraph.svg",
"deps3d": "depcruise --exclude '^node_modules' --output-type plugin:dependency-cruiser/sample-3d-reporter-plugin --output-to 3d-dependency-graph.html ."
"deps3d": "depcruise --exclude '^node_modules' --output-type plugin:dependency-cruiser/sample-3d-reporter-plugin --output-to 3d-dependency-graph.html .",
"start": "npm run watch"
},
"funding": {
"type": "individual",
Expand Down

0 comments on commit b5e9cc4

Please sign in to comment.