Skip to content

Commit

Permalink
✒️ Add portfolio repo
Browse files Browse the repository at this point in the history
  • Loading branch information
sahillangoo committed Dec 23, 2023
1 parent 9926c83 commit bb8bf0b
Show file tree
Hide file tree
Showing 50 changed files with 9,657 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy to GitHub Pages
description: Build and deploy portfolio 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@v1
# with:
# path: . # The root location of your Astro project inside the repository. (optional)
node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 18. (optional)
package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)

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
111 changes: 111 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

.cosine
.vscode

.cosine
.astro/*
.idea/*
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# sahillangoo.github.io
Portfolio Website Made with astro.build

This is my portfolio repo
37 changes: 37 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { defineConfig } from 'astro/config'
import { remarkReadingTime } from './remark-reading-time.mjs';
import mdx from '@astrojs/mdx'
import rehypeExternalLinks from 'rehype-external-links'
import tailwind from '@astrojs/tailwind'
import sitemap from '@astrojs/sitemap'
import compress from 'astro-compress'
import lighthouse from 'astro-lighthouse'

export default defineConfig({
base: 'https://github.com/sahillangoo/sahillangoo.github.io',
site: 'https://sahillangoo.com',
author: 'Sahil Langoo',
prefetch: {
prefetchAll: true,
},
integrations: [
mdx({
optimize: true,
}),
tailwind({}),
sitemap(),
compress(),
lighthouse(),
],
markdown: {
remarkPlugins: [remarkReadingTime],
rehypePlugins: [
[
rehypeExternalLinks,
{
content: { type: 'text', value: ' 🔗' }
}
],
]
},
})
45 changes: 45 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "sahil-portfolio",
"type": "module",
"version": "1.0.0",
"private": true,
"description": "My personal portfolio website built with Astro",
"author": "Sahil Langoo",
"license": "MIT",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.3.4",
"@astrojs/mdx": "^2.0.2",
"@astrojs/rss": "^4.0.1",
"@astrojs/sitemap": "^3.0.3",
"@astrojs/tailwind": "^5.0.4",
"astro": "^4.0.7",
"astro-compress": "^2.2.5",
"astro-font": "^0.0.28",
"astro-imagetools": "^0.9.0",
"astro-lighthouse": "^0.1.3",
"autoprefixer": "^10.4.16",
"daisyui": "^4.4.23",
"mdast-util-to-string": "^4.0.0",
"postcss": "^8.4.32",
"reading-time": "^1.5.0",
"rehype-external-links": "^3.0.0",
"tailwindcss": "^3.4.0",
"theme-change": "^2.5.0",
"typescript": "^5.3.3"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.10",
"eslint": "^8.56.0",
"eslint-plugin-astro": "^0.30.0",
"prettier": "^3.1.1",
"prettier-plugin-astro": "^0.12.2"
}
}
Loading

0 comments on commit bb8bf0b

Please sign in to comment.