Skip to content

Commit

Permalink
add docuasaurus config
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshinsight committed Oct 22, 2024
1 parent 91590e9 commit ecf00db
Show file tree
Hide file tree
Showing 26 changed files with 15,930 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
workflow_dispatch:
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

jobs:
build:
name: Build Docusaurus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build website
run: yarn build

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: build

deploy:
name: Deploy to GitHub Pages
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
132 changes: 132 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-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/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# 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 variable files
# .env
.env.development.local
.env.test.local
.env.production.local
.env.local

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

# Next.js build output
.next
out

# 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

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

build/
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Microsoft Corporation.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};
31 changes: 31 additions & 0 deletions docs/00-Welcome.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: "Welcome"
slug: /
---

# GitHub Copilot Labs

A list of publicly available GitHub Copilot workshops and hackathons you can use to upskill your team.

Insight can help you with your GitHub Copilot adoption journey. Find out more by emailing us at [[email protected]](mailto:[email protected]?Subject=GitHub%20Copilot%20Adoption%20Help).

## Visual Studio Code (or GitHub Codespaces)

- [Copilot Node Calculator](https://github.com/GitHub-Insight-ANZ-Lab/copilot-node-calculator) (Based on one of the workshops in the next link, but added 7 more challenges to cover more features).
- [GitHub Copilot Workshops](https://github.com/copilot-workshops) (Node, Python and Terraform)
- [Mastering GitHub Copilot for AI Paired Programming](https://github.com/microsoft/Mastering-GitHub-Copilot-for-Paired-Programming) (JavaScript, Python and C#)
- [GitHub Copilot Hackathon](https://github.com/GitHub-Partner-Demo-Library/MicrosoftCopilotHackathon) (Node, Java, Python, C#)
- [GitHub Copilot Lab in R](https://github.com/GitHub-Insight-ANZ-Lab/copilot-lab-r) (statistical computing using R)
- [GitHub Copilot Lab for SQL](https://github.com/GitHub-Insight-ANZ-Lab/copilot-lab-sql) (database development using Structured Query Language (SQL))
- [SPA Music Store with GitHub Copilot](https://github.com/GitHub-Insight-ANZ-Lab/copilot-lab-music-store-typescript) (Single Page App with TypeScript, Node & Next.js)
- [GitHub Copilot Workshop for Front-end developers](https://github.com/GitHub-Insight-ANZ-Lab/copilot-lab-weather-app-react) (React, Typescript, Javascript, CSS)

## Visual Studio 2022+

- [MVC Music Store with GitHub Copilot](https://github.com/GitHub-Insight-ANZ-Lab/copilot-lab-music-store-csharp) (C#)

Know any other workshops or labs we're missing, submit an Issue or PR and we'll consider adding them!

## Learner Feedback

We would love to hear your feedback on this lab. Please visit the [GitHub repository for this lab](https://github.com/GitHub-Insight-ANZ-Lab/aiapp1day/), and use the Issues tab for bugs or suggestions or create a pull-request with your suggestions.
9 changes: 9 additions & 0 deletions docs/100-Additional-Resources.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Additional Resources"
slug: /additional-resources
---

## Microsoft Learn

- [GitHub Copilot Fundamentals - Understand the AI pair programmer](https://learn.microsoft.com/en-au/training/paths/copilot/)
- [Accelerate app development by using GitHub Copilot](https://learn.microsoft.com/en-us/training/paths/accelerate-app-development-using-github-copilot/)
97 changes: 97 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config

import { themes as prismThemes } from "prism-react-renderer";

/** @type {import('@docusaurus/types').Config} */
const config = {
title: "GitHub Copilot Labs",
tagline: "GitHub Copilot Labs",
url: "https://GitHub-Insight-ANZ-Lab.io/",
baseUrl: "/copilot/",

onBrokenLinks: "ignore",
onBrokenMarkdownLinks: "ignore",
trailingSlash: true,

organizationName: "GitHub-Insight-ANZ-Lab",
projectName: "github-copilot-labs-list",
deploymentBranch: "main",
favicon: "img/favicon.ico",

i18n: {
defaultLocale: "en",
locales: ["en"],
},

presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
},
blog: false,
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
docs: {
sidebar: {
hideable: false,
autoCollapseCategories: false,
},
},

navbar: {
title: "GitHub Copilot Labs",
logo: {
alt: "Workshop: GitHub Copilot Labs",
src: "img/logo-ws3.png",
},
items: [
{
type: "localeDropdown",
position: "right",
},
],
},

footer: {
style: "dark",
links: [],
copyright: `Copyright © ${new Date().getFullYear()} Copilot Labs.`,
},

prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
}),

plugins: [
[
"@docusaurus/plugin-ideal-image",
{
quality: 96,
max: 1000, // max resized image's size.
min: 420, // min resized image's size.
steps: 4, // #images b/w min and max (inclusive)
disableInDev: false,
},
],
],
};

module.exports = config;
Loading

0 comments on commit ecf00db

Please sign in to comment.