Skip to content

Commit

Permalink
docs: move docs to vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisuhag committed Jun 30, 2023
1 parent 4a900e3 commit cb600c1
Show file tree
Hide file tree
Showing 5 changed files with 3,054 additions and 4,245 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/docs.yaml

This file was deleted.

10 changes: 5 additions & 5 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');

// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
/** @type {import('@docusaurus/types').Config} */
(module.exports = {
title: 'Guardian',
tagline: 'Universal data access control',
url: 'https://raystack.github.io/',
baseUrl: '/guardian/',
url: 'https://guardian.raystack.org/',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
Expand All @@ -16,7 +15,7 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');

presets: [
[
'@docusaurus/preset-classic',
'classic',
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
Expand All @@ -41,6 +40,7 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');

themeConfig:
({
image: 'img/banner.png',
colorMode: {
defaultMode: 'light',
respectPrefersColorScheme: true,
Expand Down
28 changes: 15 additions & 13 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "guardian",
"name": "my-website",
"version": "0.0.0",
"private": true,
"scripts": {
Expand All @@ -14,18 +14,17 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^2.0.0-beta.21",
"@docusaurus/plugin-google-gtag": "^2.0.0-beta.21",
"@docusaurus/preset-classic": "^2.0.0-beta.21",
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^5.5.0",
"classnames": "^2.3.1",
"clsx": "^1.1.1",
"file-loader": "^6.2.0",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"url-loader": "^4.1.1"
"@docusaurus/core": "2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"@mdx-js/react": "^1.6.22",
"classnames": "^2.3.2",
"clsx": "^1.2.1",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.4.1"
},
"browserslist": {
"production": [
Expand All @@ -38,5 +37,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"engines": {
"node": ">=16.14"
}
}
5 changes: 5 additions & 0 deletions docs/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"github": {
"silent": true
}
}
Loading

0 comments on commit cb600c1

Please sign in to comment.