diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..bd0090f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,57 @@ +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 website artifacts + uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 + with: + path: docs/.vitepress/dist + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + needs: build + runs-on: ubuntu-latest + name: Deploy + steps: + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 + id: deployment diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e688cbc --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +/**/DROP/ +/**/TEMP/ +/**/packages/ +/**/bin/ +/**/obj/ +node_modules +package-lock.json +.vitepress/cache \ No newline at end of file diff --git a/.vitepress/config.mts b/.vitepress/config.mts new file mode 100644 index 0000000..3a4eda7 --- /dev/null +++ b/.vitepress/config.mts @@ -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.' + } + } +}) diff --git a/index.md b/index.md new file mode 100644 index 0000000..ac693e9 --- /dev/null +++ b/index.md @@ -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. +--- + diff --git a/openid.svg b/openid.svg new file mode 100644 index 0000000..666c013 --- /dev/null +++ b/openid.svg @@ -0,0 +1,52 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..d6f36c8 --- /dev/null +++ b/package.json @@ -0,0 +1,10 @@ +{ + "devDependencies": { + "vitepress": "^1.3.0" + }, + "scripts": { + "docs:dev": "vitepress dev", + "docs:build": "vitepress build", + "docs:preview": "vitepress preview" + } +} \ No newline at end of file