Skip to content

Commit

Permalink
New site - built with Astro
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdavenport committed Aug 10, 2023
1 parent 6e7b0a7 commit 6f4080b
Show file tree
Hide file tree
Showing 492 changed files with 14,956 additions and 22,666 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch's name
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3
- name: Install, build, and upload your site
uses: withastro/action@v0

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
26 changes: 24 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
.idea/*
# editor
.idea
.vscode

# build output
dist/

# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# environment variables
.env
.env.production

# macOS-specific files
.DS_Store
node_modules
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers=true
5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

2 changes: 0 additions & 2 deletions .prettierrc.yaml

This file was deleted.

Binary file removed assets/Unitary_Fund_2020_Report.pdf
Binary file not shown.
Binary file removed assets/Unitary_Fund_2021_Report.pdf
Binary file not shown.
Binary file removed assets/Unitary_Fund_2022_Report.pdf
Binary file not shown.
45 changes: 45 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import react from '@astrojs/react';
import mdx from '@astrojs/mdx';
import tailwind from '@astrojs/tailwind';
import dotHtmlRedirects from './src/integration/dot-html-redirects';
import { defineConfig } from 'astro/config';
import remarkDirective from 'remark-directive';
import remarkGfm from 'remark-gfm';
import remarkOembed from 'remark-oembed';
import {
imageDirective,
gistDirective,
socialDirective,
} from './src/remark/directives';
import remarkOnlyStrong from './src/remark/only-strong';
import svgr from 'vite-plugin-svgr';

// https://astro.build/config
export default defineConfig({
site: 'https://unitaryfund.tghp.co.uk',
integrations: [
tailwind({ config: { applyBaseStyles: false } }),
mdx(),
react(),
dotHtmlRedirects(),
],
markdown: {
remarkPlugins: [
remarkOnlyStrong,
remarkGfm,
[
remarkOembed,
{
syncWidget: true,
},
],
remarkDirective,
imageDirective,
gistDirective,
socialDirective,
],
},
vite: {
plugins: [svgr()],
},
});
Loading

0 comments on commit 6f4080b

Please sign in to comment.