Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
hemarina committed Sep 10, 2024
2 parents 38b0b37 + c771195 commit e8d3cbc
Show file tree
Hide file tree
Showing 19 changed files with 7,004 additions and 4,793 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
run: |
npm ci
npm run build
- name: Test
working-directory: website
run: |
npm test
# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
Expand Down
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Jest Tests",
"program": "${workspaceFolder}/website/node_modules/jest/bin/jest.js",
"args": [
"--runInBand"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"cwd": "${workspaceFolder}/website",
}
]
}
6 changes: 5 additions & 1 deletion website/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
presets: [
require.resolve('@docusaurus/core/lib/babel/preset'),
['@babel/preset-env', {targets: {node: 'current'}}],
'@babel/preset-typescript',
],
};
3 changes: 3 additions & 0 deletions website/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
testMatch: ['<rootDir>/test/**/*.test.ts']
};
11,473 changes: 6,720 additions & 4,753 deletions website/package-lock.json

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids"
"write-heading-ids": "docusaurus write-heading-ids",
"test": "jest"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"@docusaurus/core": "^3.3.2",
"@docusaurus/module-type-aliases": "^3.3.2",
"@docusaurus/plugin-client-redirects": "^3.3.2",
Expand All @@ -23,13 +26,16 @@
"@fluentui/react-components": "^9.42.0",
"@mdx-js/react": "^3.0.0",
"@types/react-dom": "^18.2.17",
"babel-jest": "^29.7.0",
"clsx": "^2.0.0",
"jest": "^29.7.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-popper": "^2.3.0",
"ts-jest": "^29.2.5",
"typescript": "^5.3.2",
"webpack": "^5.89.0"
"webpack": "^5.94.0"
},
"browserslist": {
"production": [
Expand Down
30 changes: 24 additions & 6 deletions website/src/data/tags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export type TagType =
| "rubyonrails"
| "serverlessapi"
| "langchain"
| "build2024"
| "aicollection"
| "aistudio"
| "apicenter"
| "eventgrid"
Expand All @@ -115,8 +115,11 @@ export type TagType =
| "msal"
| "pinecone"
| "nextjs"
| "speechservice";

| "speechservice"
| "kernelmemory"
| "promptengineering"
| "rag";

// LIST OF AVAILABLE TAGS
// Each tag in lit about must have a defined object here
// One or more tags can be associated per card
Expand Down Expand Up @@ -147,9 +150,9 @@ export const Tags: { [type in TagType]: Tag } = {
label: "Popular",
description: "This tag is used for popular templates.",
},
build2024: {
label: "Build 2024 Collection",
description: "This tag is used for templates included in the Microsoft Build 2024 conference collection.",
aicollection: {
label: "AI Collection",
description: "This tag is used for templates included in the Microsoft-curated AI collection.",
},

//============ FOR REGULAR USE
Expand Down Expand Up @@ -360,6 +363,16 @@ export const Tags: { [type in TagType]: Tag } = {
description: "Template architecture uses Next.js framework",
type: "Framework",
},
kernelmemory: {
label: "Kernel Memory",
description: "Template architecture uses Kernel Memory",
type: "Framework",
},
rag: {
label: "Retrieval-Augmented Generation",
description: "Template architecture uses Retrieval-Augmented Generation",
type: "Framework",
},

// ---- Platform
kubernetes: {
Expand Down Expand Up @@ -695,4 +708,9 @@ export const Tags: { [type in TagType]: Tag } = {
description: "Template architecture involves Platform Engineering",
type: "Topic",
},
promptengineering: {
label: "Prompt Engineering",
description: "Template architecture involves Prompt Engineering",
type: "Topic",
},
};
Loading

0 comments on commit e8d3cbc

Please sign in to comment.