Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to astro #72

Merged
merged 3 commits into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .astro/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"_variables": {
"lastUpdateCheck": 1715400412460
}
}
21 changes: 11 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,22 @@ jobs:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
- uses: actions/checkout@v4
- name: Install Dependencies
run: npm install
- name: Build the site
run: npm run build
- name: Deploy the site
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
update-resume-gist:
needs: build-and-deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Update Resume Gist
uses: exuanbo/actions-deploy-gist@v1
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ cypress/screenshots

# jupyter notebook
resume/.ipynb_checkpoints/

# testing
mochawesome-report/
11 changes: 0 additions & 11 deletions Pipfile

This file was deleted.

22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Getting Started

This is a simple one page bio site that uses [Next.js](https://nextjs.org/) with some basic CI/CD using [github actions](./.github/workflows/ci.yml). The site & resume are built from a single [resume.clintp.json](./resume/resume.clintp.json) that conforms to [JSON Resume](https://jsonresume.org/)
This is a simple one page bio site that uses [astro](https://astro.build/) with some basic CI/CD using [github actions](./.github/workflows/ci.yml). The site & resume are built from a single [resume.clintp.json](./resume/resume.clintp.json) that conforms to [JSON Resume](https://jsonresume.org/)


To further explore the resume data you can use [jsoncrack.com](https://jsoncrack.com/editor?json=https://raw.githubusercontent.com/yuhonas/clintp.xyz/main/resume/resume.clintp.json) or [lite.datasette.io](https://lite.datasette.io/?json=https://raw.githubusercontent.com/yuhonas/clintp.xyz/main/resume/resume.clintp.json#/data/resume?_sort=rowid&_facet=name&_facet=location)
Expand Down Expand Up @@ -42,14 +42,22 @@ From the `resume` directory run
pipenv run python resume-transform.py
```

This will produce a number of build artifacts in the `build` directory
This will produce a number of build artifacts in the `resume/build` directory

## Deployment


This site is automatically built and deployed by [github actions](https://github.com/actions) to [Github Pages](https://pages.github.com/)


## Building for deployment

To build a static version of the site run

```
npm run build
```

## Building the resume

My resume is built using [docxtemplater](https://docxtemplater.com/) it's optimized for [Applicant Tracking Systems (ATS)](https://en.wikipedia.org/wiki/Applicant_tracking_system)
Expand All @@ -59,11 +67,6 @@ npm run build:resume:
```


## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

## Top repos
```bash
Expand All @@ -74,10 +77,7 @@ curl -L \
```

## TODO
- [x] Add timeline - https://matplotlib.org/stable/gallery/lines_bars_and_markers/timeline.html
- [x] Add vCard/QRCode or https://en.wikipedia.org/wiki/MeCard_(QR_code)
- [x] Add ETL Pipeline/Workflow Orchestaration
- [ ] Add PDF
- [ ] Dynamically generate PDF
- [ ] Implement JSON Source View - https://mac-s-g.github.io/react-json-view/demo/dist/

## Links
Expand Down
9 changes: 9 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";

import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), mdx()],
});
13 changes: 9 additions & 4 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
const { defineConfig } = require('cypress')
import { defineConfig } from "cypress";

module.exports = defineConfig({
export default defineConfig({
reporter: "mochawesome",
reporterOptions: {
toConsole: true,
},
e2e: {
baseUrl: 'http://localhost:8080',
baseUrl: "http://localhost:8080",
supportFile: false,
},
})
});
Binary file added dist/Resume_ClintPlummer_ENMR.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions dist/_astro/index.DFxFDwsd.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading