Skip to content

Commit ba060e1

Browse files
authored
Merge pull request #130 from Asifdotexe/120-ui-add-individual-project-pages
120 UI add individual project pages
2 parents 6dfe918 + 7f8705d commit ba060e1

184 files changed

Lines changed: 21722 additions & 5015 deletions

File tree

Some content is hidden

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

.eleventy.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = function(eleventyConfig) {
2+
// Pass through files and folders
3+
eleventyConfig.addPassthroughCopy("assets");
4+
eleventyConfig.addPassthroughCopy("CNAME");
5+
eleventyConfig.addPassthroughCopy("robots.txt");
6+
eleventyConfig.addPassthroughCopy("sitemap.xml");
7+
eleventyConfig.addPassthroughCopy("llms.txt");
8+
eleventyConfig.addPassthroughCopy("llms-full.txt");
9+
10+
return {
11+
dir: {
12+
input: ".",
13+
output: "_site",
14+
includes: "_includes"
15+
}
16+
};
17+
};

.eleventyignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
README.md
2+
DESIGN.md
3+
PRODUCT.md

.github/workflows/deploy.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,45 @@ concurrency:
1818
cancel-in-progress: false
1919

2020
jobs:
21-
deploy:
22-
environment:
23-
name: github-pages
24-
url: ${{ steps.deployment.outputs.page_url }}
21+
build:
2522
runs-on: ubuntu-latest
2623
steps:
2724
- name: Checkout repository
2825
uses: actions/checkout@v4
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: '20'
31+
cache: 'npm'
2932

3033
- name: Inject Web3Forms Access Key
34+
# Note: The contact form was moved to contact.html in the new structure
3135
run: |
32-
sed -i 's/WEB3FORMS_ACCESS_KEY_PLACEHOLDER/${{ secrets.WEB3FORMS_ACCESS_KEY }}/g' index.html
36+
sed -i 's/WEB3FORMS_ACCESS_KEY_PLACEHOLDER/${{ secrets.WEB3FORMS_ACCESS_KEY }}/g' contact.html
37+
38+
- name: Install dependencies
39+
run: npm ci || npm install
40+
41+
- name: Build site
42+
run: npm run build
3343

3444
- name: Setup Pages
3545
uses: actions/configure-pages@v5
3646

3747
- name: Upload artifact
3848
uses: actions/upload-pages-artifact@v3
3949
with:
40-
path: '.'
50+
# Now uploading the built Eleventy output folder instead of the root directory
51+
path: '_site'
4152

53+
deploy:
54+
environment:
55+
name: github-pages
56+
url: ${{ steps.deployment.outputs.page_url }}
57+
runs-on: ubuntu-latest
58+
needs: build
59+
steps:
4260
- name: Deploy to GitHub Pages
4361
id: deployment
4462
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ RULES/
1212
DESIGN.md
1313
PRODUCT.md
1414
.impeccable/
15+
_site/

0 commit comments

Comments
 (0)