Skip to content

Commit 846a843

Browse files
authored
Merge pull request #1 from ruivieira/main
feat: Add initial project structure
2 parents 93f764f + 6399ddb commit 846a843

Some content is hidden

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

43 files changed

+9392
-129
lines changed

.github/workflows/deploy.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Deploy Site
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: "pages"
14+
cancel-in-progress: false
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: '18'
27+
cache: 'npm'
28+
29+
- name: Install dependencies
30+
run: npm ci
31+
32+
- name: Build site
33+
run: npm run build
34+
35+
- name: Upload build artifacts
36+
uses: actions/upload-pages-artifact@v3
37+
with:
38+
path: './dist'
39+
40+
deploy-production:
41+
needs: build
42+
runs-on: ubuntu-latest
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
steps:
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 17 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -1,136 +1,25 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
lerna-debug.log*
8-
.pnpm-debug.log*
9-
10-
# Diagnostic reports (https://nodejs.org/api/report.html)
11-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12-
13-
# Runtime data
14-
pids
15-
*.pid
16-
*.seed
17-
*.pid.lock
18-
19-
# Directory for instrumented libs generated by jscoverage/JSCover
20-
lib-cov
21-
22-
# Coverage directory used by tools like istanbul
23-
coverage
24-
*.lcov
25-
26-
# nyc test coverage
27-
.nyc_output
28-
29-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30-
.grunt
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
315

32-
# Bower dependency directory (https://bower.io/)
33-
bower_components
34-
35-
# node-waf configuration
36-
.lock-wscript
37-
38-
# Compiled binary addons (https://nodejs.org/api/addons.html)
39-
build/Release
40-
41-
# Dependency directories
6+
# dependencies
427
node_modules/
43-
jspm_packages/
44-
45-
# Snowpack dependency directory (https://snowpack.dev/)
46-
web_modules/
47-
48-
# TypeScript cache
49-
*.tsbuildinfo
50-
51-
# Optional npm cache directory
52-
.npm
53-
54-
# Optional eslint cache
55-
.eslintcache
56-
57-
# Optional stylelint cache
58-
.stylelintcache
59-
60-
# Microbundle cache
61-
.rpt2_cache/
62-
.rts2_cache_cjs/
63-
.rts2_cache_es/
64-
.rts2_cache_umd/
658

66-
# Optional REPL history
67-
.node_repl_history
68-
69-
# Output of 'npm pack'
70-
*.tgz
9+
# logs
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
7114

72-
# Yarn Integrity file
73-
.yarn-integrity
7415

75-
# dotenv environment variable files
16+
# environment variables
7617
.env
77-
.env.development.local
78-
.env.test.local
79-
.env.production.local
80-
.env.local
81-
82-
# parcel-bundler cache (https://parceljs.org/)
83-
.cache
84-
.parcel-cache
85-
86-
# Next.js build output
87-
.next
88-
out
89-
90-
# Nuxt.js build / generate output
91-
.nuxt
92-
dist
93-
94-
# Gatsby files
95-
.cache/
96-
# Comment in the public line in if your project uses Gatsby and not Next.js
97-
# https://nextjs.org/blog/next-9-1#public-directory-support
98-
# public
99-
100-
# vuepress build output
101-
.vuepress/dist
102-
103-
# vuepress v2.x temp and cache directory
104-
.temp
105-
.cache
106-
107-
# vitepress build output
108-
**/.vitepress/dist
109-
110-
# vitepress cache directory
111-
**/.vitepress/cache
112-
113-
# Docusaurus cache and generated files
114-
.docusaurus
115-
116-
# Serverless directories
117-
.serverless/
118-
119-
# FuseBox cache
120-
.fusebox/
121-
122-
# DynamoDB Local files
123-
.dynamodb/
124-
125-
# TernJS port file
126-
.tern-port
18+
.env.production
12719

128-
# Stores VSCode versions used for testing VSCode extensions
129-
.vscode-test
20+
# macOS-specific files
21+
.DS_Store
13022

131-
# yarn v2
132-
.yarn/cache
133-
.yarn/unplugged
134-
.yarn/build-state.yml
135-
.yarn/install-state.gz
136-
.pnp.*
23+
# jetbrains setting folder
24+
.idea/
25+
.vscode/

README.md

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,49 @@
1-
# trustyai-blog
1+
# TrustyAI Blog
2+
3+
A blog for TrustyAI covering research insights and engineering best practices for trustworthy AI systems.
4+
5+
## Development
6+
7+
Install dependencies:
8+
```sh
9+
npm install
10+
```
11+
12+
Start the development server:
13+
```sh
14+
npm run dev
15+
```
16+
17+
The site will be available at `http://localhost:4321`
18+
19+
## Build & Preview
20+
21+
Build the site:
22+
```sh
23+
npm run build
24+
```
25+
26+
Preview the built site locally:
27+
```sh
28+
npm run preview
29+
```
30+
31+
## Deployment
32+
33+
The site automatically deploys to GitHub Pages when you push to the `main` branch.
34+
35+
**Live site**: https://trustyai-explainability.github.io/trustyai-blog/
36+
37+
## Adding Posts
38+
39+
Create new `.md` files in `src/content/blog/` with frontmatter:
40+
41+
```yaml
42+
---
43+
title: 'Post Title'
44+
description: 'Post description'
45+
pubDate: 'Dec 01 2024'
46+
heroImage: '/blog-placeholder-1.jpg'
47+
track: 'research' # or 'engineering'
48+
---
49+
```

astro.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// @ts-check
2+
import { defineConfig } from 'astro/config';
3+
import mdx from '@astrojs/mdx';
4+
import sitemap from '@astrojs/sitemap';
5+
6+
// https://astro.build/config
7+
export default defineConfig({
8+
site: 'https://trustyai-explainability.github.io',
9+
base: '/trustyai-blog',
10+
integrations: [mdx(), sitemap()],
11+
});

0 commit comments

Comments
 (0)