Skip to content

Commit d7b1afc

Browse files
Merge pull request #18 from Psycle/site
microsite
2 parents a6ee9f8 + a0ba3d3 commit d7b1afc

File tree

575 files changed

+80642
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

575 files changed

+80642
-0
lines changed

.github/workflows/site.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Build and Deploy Site and Docs
2+
3+
on:
4+
push:
5+
branches: ["site"]
6+
7+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
14+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: false
18+
19+
jobs:
20+
21+
# Build job
22+
build:
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
node-version: [22.x]
27+
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
32+
- name: Setup Pages
33+
uses: actions/configure-pages@v5
34+
35+
- name: Initialise Node ${{ matrix.node-version }}
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: ${{ matrix.node-version }}
39+
cache: 'npm'
40+
41+
- name: Build Site and Amalgamate Docs
42+
run: |
43+
44+
# Creds
45+
git config --global user.name "github-actions"
46+
git config --global user.email "[email protected]"
47+
git fetch
48+
49+
# Build site
50+
rm -rf site
51+
mkdir -p site
52+
npm install
53+
npm run build-production
54+
55+
# Grab main:docs
56+
rm -rf docs
57+
git checkout origin/main -- docs
58+
59+
# Move docs site into site/docs
60+
mv docs site
61+
62+
- name: Upload artifact
63+
uses: actions/upload-pages-artifact@v3
64+
with:
65+
path: site/
66+
67+
# Deployment job
68+
deploy:
69+
runs-on: ubuntu-latest
70+
environment:
71+
name: github-pages
72+
url: ${{ steps.deployment.outputs.page_url }}
73+
needs: build
74+
75+
steps:
76+
- name: Deploy to GitHub Pages
77+
id: deployment
78+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.DS_Store
3+
site/

.prettierrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
...require('gts/.prettierrc.json'),
3+
printWidth: 240,
4+
};

.stylelintrc.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"extends": [
3+
"stylelint-config-standard",
4+
"stylelint-config-recommended-scss"
5+
],
6+
"plugins": [
7+
"stylelint-scss"
8+
],
9+
"rules": {
10+
"at-rule-no-unknown": null,
11+
"scss/at-rule-no-unknown": null,
12+
"at-rule-empty-line-before": null,
13+
"block-no-empty": null,
14+
"color-named": "never",
15+
"declaration-block-no-redundant-longhand-properties": null,
16+
"declaration-block-semicolon-space-before": "never",
17+
"declaration-empty-line-before": null,
18+
"declaration-no-important": true,
19+
"max-nesting-depth": 4,
20+
"number-leading-zero": "never",
21+
"no-descending-specificity": null,
22+
"selector-class-pattern": [
23+
"^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+)*$",
24+
{
25+
"message": "Expected class selector to follow BEM methodology"
26+
}
27+
],
28+
"selector-type-no-unknown": [true, {
29+
"ignoreTypes": ["/app-[a-z0-9]/"]
30+
}],
31+
"string-quotes": "single"
32+
},
33+
"ignoreFiles": [
34+
"static/styles/glue/**/*.css"
35+
]
36+
}

_glue/README.md

Lines changed: 16 additions & 0 deletions
3.13 KB
4.96 KB
5.05 KB
4.82 KB
4.8 KB

0 commit comments

Comments
 (0)