Skip to content

Commit d35ca6b

Browse files
committed
add github page
1 parent d9b5b8c commit d35ca6b

3 files changed

Lines changed: 70 additions & 1 deletion

File tree

.github/workflows/pages.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: true
17+
18+
jobs:
19+
build:
20+
name: Build Pages Site
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Configure Pages
25+
uses: actions/configure-pages@v5
26+
- name: Build with Jekyll
27+
uses: actions/jekyll-build-pages@v1
28+
with:
29+
source: ./
30+
destination: ./_site
31+
- name: Upload artifact
32+
uses: actions/upload-pages-artifact@v3
33+
34+
deploy:
35+
name: Deploy to GitHub Pages
36+
needs: build
37+
runs-on: ubuntu-latest
38+
environment:
39+
name: github-pages
40+
url: ${{ steps.deployment.outputs.page_url }}
41+
steps:
42+
- name: Deploy
43+
id: deployment
44+
uses: actions/deploy-pages@v4

_config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
theme: jekyll-theme-merlot
1+
title: Algorithm Solutions in Swift
2+
description: Curated Swift solutions for LeetCode, HackerRank, AlgoExpert, GeekForGeeks, and Pramp.
3+
theme: jekyll-theme-merlot
4+
markdown: kramdown

index.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
layout: default
3+
title: Home
4+
---
5+
6+
# Algorithm Solutions in Swift
7+
8+
This site is the web entrypoint for the repository and links to the latest solution index.
9+
10+
## Quick Links
11+
12+
- [README Index](./README.md)
13+
- [LeetCode Solutions](./LeetCode/)
14+
- [HackerRank Solutions](./HackerRank/)
15+
- [AlgoExpert Solutions](./AlgoExpert/)
16+
- [GeekForGeeks Solutions](./GeekForGeeks/)
17+
- [Pramp Solutions](./Pramp/)
18+
19+
## Notes
20+
21+
- The `README.md` solution table is auto-generated from folder structure.
22+
- Metadata such as difficulty/topic can be maintained in `scripts/readme-metadata.tsv`.

0 commit comments

Comments
 (0)