Skip to content

Commit

Permalink
Set up the initial project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchalet committed Jul 11, 2024
0 parents commit a09e490
Show file tree
Hide file tree
Showing 7 changed files with 2,963 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: build

on:
push:
branches: [ dev, rel/* ]
tags: [ '*' ]
pull_request:
branches: [ dev, rel/* ]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Node
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 20
cache: npm

- name: Setup GitHub Pages
uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4.0.0

- name: Install dependencies
run: npm ci

- name: Build with VitePress
run: npm run docs:build

- name: Publish artifacts
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
with:
path: .vitepress/dist

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup GitHub Pages
uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4.0.0

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
id: deployment
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**/DROP/
/**/TEMP/
/**/packages/
/**/bin/
/**/obj/
node_modules
.vitepress/cache
31 changes: 31 additions & 0 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "OpenIddict",
description: "OpenIddict website",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: 'Documentation', link: 'https://documentation.openiddict.com/' },
{ text: 'Samples', link: 'https://github.com/openiddict/openiddict-samples' },
{ text: 'Changelog', link: 'https://github.com/openiddict/openiddict-core/releases' }
],

socialLinks: [
{ icon: 'github', link: 'https://github.com/openiddict/openiddict-core' }
],

externalLinkIcon: true,

editLink: {
pattern: 'https://github.com/openiddict/openiddict-website/edit/dev/:path',
text: 'Edit this page on GitHub'
},

footer: {
message: 'Proudly powered by VitePress.'
}
}
})
41 changes: 41 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
# https://vitepress.dev/reference/default-theme-home-page
layout: home

hero:
name: OpenIddict
text: Versatile OAuth 2.0/OpenID Connect stack for .NET
tagline: Free and open source ❤
image:
src: /openid.svg
alt: OpenID Connect logo
actions:
- theme: brand
text: Download from NuGet.org
link: https://www.nuget.org/profiles/openiddict

- theme: alt
text: Documentation
link: https://documentation.openiddict.com/

features:
- title: Feature complete
icon: 📜
details: |
To cover most scenarios, OpenIddict offers a server stack, a client stack
and a validation stack that you can use independently... or together.
- title: Usuable in most .NET applications
icon: 🌐
details: |
The server and validation stacks can be used in any ASP.NET Core 2.1+
or ASP.NET 4.6.1+ application while the client stack can also be used in
Windows, macOS or Linux desktop applications (and even Android or iOS apps!)
- title: Released under a permissive license
icon: 🆓
details: |
OpenIddict is released under the Apache 2.0 license, which means
it's open source and free to use, even in commercial projects.
---

52 changes: 52 additions & 0 deletions openid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a09e490

Please sign in to comment.