docs: Flesh out Netlify.
This commit is contained in:
1
docs/.gitignore
vendored
1
docs/.gitignore
vendored
@ -11,6 +11,7 @@
|
|||||||
# Generated files
|
# Generated files
|
||||||
.docusaurus
|
.docusaurus
|
||||||
.cache-loader
|
.cache-loader
|
||||||
|
cache-output.json
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
30
docs/api/netlify.toml
Normal file
30
docs/api/netlify.toml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
[[plugins]]
|
||||||
|
package = "netlify-plugin-cache"
|
||||||
|
|
||||||
|
[plugins.inputs]
|
||||||
|
paths = [".docusaurus", ".cache", 'node_modules/.cache']
|
||||||
|
|
||||||
|
[[plugins]]
|
||||||
|
package = "netlify-plugin-debug-cache"
|
||||||
|
|
||||||
|
[build]
|
||||||
|
base = "docs"
|
||||||
|
package = "api"
|
||||||
|
command = "npm run build -w api"
|
||||||
|
publish = "api/build"
|
||||||
|
|
||||||
|
[dev]
|
||||||
|
command = "npm start"
|
||||||
|
targetPort = 3000
|
||||||
|
publish = "api/build"
|
||||||
|
|
||||||
|
[context.production.environment]
|
||||||
|
NODE_ENV = "production"
|
||||||
|
|
||||||
|
[context.dev.environment]
|
||||||
|
NODE_ENV = "development"
|
||||||
|
|
||||||
|
[[headers]]
|
||||||
|
for = "/*"
|
||||||
|
[headers.values]
|
||||||
|
X-Frame-Options = "DENY"
|
30
docs/integrations/netlify.toml
Normal file
30
docs/integrations/netlify.toml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
[[plugins]]
|
||||||
|
package = "netlify-plugin-cache"
|
||||||
|
|
||||||
|
[plugins.inputs]
|
||||||
|
paths = [".docusaurus", ".cache", 'node_modules/.cache']
|
||||||
|
|
||||||
|
[[plugins]]
|
||||||
|
package = "netlify-plugin-debug-cache"
|
||||||
|
|
||||||
|
[build]
|
||||||
|
base = "docs"
|
||||||
|
package = "integrations"
|
||||||
|
command = "npm run build -w integrations"
|
||||||
|
publish = "integrations/build"
|
||||||
|
|
||||||
|
[dev]
|
||||||
|
command = "npm start"
|
||||||
|
targetPort = 3000
|
||||||
|
publish = "integrations/build"
|
||||||
|
|
||||||
|
[context.production.environment]
|
||||||
|
NODE_ENV = "production"
|
||||||
|
|
||||||
|
[context.dev.environment]
|
||||||
|
NODE_ENV = "development"
|
||||||
|
|
||||||
|
[[headers]]
|
||||||
|
for = "/*"
|
||||||
|
[headers.values]
|
||||||
|
X-Frame-Options = "DENY"
|
1138
docs/netlify.toml
1138
docs/netlify.toml
File diff suppressed because it is too large
Load Diff
13520
docs/package-lock.json
generated
13520
docs/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -51,6 +51,7 @@
|
|||||||
"docusaurus-theme-openapi-docs": "^4.4.0",
|
"docusaurus-theme-openapi-docs": "^4.4.0",
|
||||||
"eslint": "^9.29.0",
|
"eslint": "^9.29.0",
|
||||||
"fast-glob": "^3.3.3",
|
"fast-glob": "^3.3.3",
|
||||||
|
"netlify-cli": "^22.2.1",
|
||||||
"netlify-plugin-cache": "^1.0.3",
|
"netlify-plugin-cache": "^1.0.3",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"pako": "^2.1.0",
|
"pako": "^2.1.0",
|
||||||
|
46
docs/topics/netlify.toml
Normal file
46
docs/topics/netlify.toml
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
[[plugins]]
|
||||||
|
package = "netlify-plugin-cache"
|
||||||
|
|
||||||
|
[plugins.inputs]
|
||||||
|
paths = [".docusaurus", ".cache", 'node_modules/.cache']
|
||||||
|
|
||||||
|
[[plugins]]
|
||||||
|
package = "netlify-plugin-debug-cache"
|
||||||
|
|
||||||
|
[build]
|
||||||
|
base = "docs"
|
||||||
|
package = "topics"
|
||||||
|
command = "npm run build -w topics"
|
||||||
|
publish = "topics/build"
|
||||||
|
|
||||||
|
[dev]
|
||||||
|
command = "npm start"
|
||||||
|
targetPort = 3000
|
||||||
|
publish = "topics/build"
|
||||||
|
|
||||||
|
[context.production.environment]
|
||||||
|
NODE_ENV = "production"
|
||||||
|
|
||||||
|
[context.dev.environment]
|
||||||
|
NODE_ENV = "development"
|
||||||
|
|
||||||
|
# Migration from docs to separate directory
|
||||||
|
[[redirects]]
|
||||||
|
from = "/docs/integrations/*"
|
||||||
|
to = "https://integrations.goauthentik.io/:splat"
|
||||||
|
status = 302
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/integrations/*"
|
||||||
|
to = "https://integrations.goauthentik.io/:splat"
|
||||||
|
status = 302
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/docs/*"
|
||||||
|
to = "/:splat"
|
||||||
|
status = 302
|
||||||
|
|
||||||
|
[[headers]]
|
||||||
|
for = "/*"
|
||||||
|
[headers.values]
|
||||||
|
X-Frame-Options = "DENY"
|
46
website/netlify.toml
Normal file
46
website/netlify.toml
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
[[plugins]]
|
||||||
|
package = "netlify-plugin-cache"
|
||||||
|
|
||||||
|
[plugins.inputs]
|
||||||
|
paths = [".docusaurus", ".cache", 'node_modules/.cache']
|
||||||
|
|
||||||
|
[[plugins]]
|
||||||
|
package = "netlify-plugin-debug-cache"
|
||||||
|
|
||||||
|
[build]
|
||||||
|
base = "docs"
|
||||||
|
package = "topics"
|
||||||
|
command = "npm run build -w topics"
|
||||||
|
publish = "topics/build"
|
||||||
|
|
||||||
|
[dev]
|
||||||
|
command = "npm start"
|
||||||
|
targetPort = 3000
|
||||||
|
publish = "topics/build"
|
||||||
|
|
||||||
|
[context.production.environment]
|
||||||
|
NODE_ENV = "production"
|
||||||
|
|
||||||
|
[context.dev.environment]
|
||||||
|
NODE_ENV = "development"
|
||||||
|
|
||||||
|
# Migration from docs to separate directory
|
||||||
|
[[redirects]]
|
||||||
|
from = "/docs/integrations/*"
|
||||||
|
to = "https://integrations.goauthentik.io/:splat"
|
||||||
|
status = 302
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/integrations/*"
|
||||||
|
to = "https://integrations.goauthentik.io/:splat"
|
||||||
|
status = 302
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/docs/*"
|
||||||
|
to = "/:splat"
|
||||||
|
status = 302
|
||||||
|
|
||||||
|
[[headers]]
|
||||||
|
for = "/*"
|
||||||
|
[headers.values]
|
||||||
|
X-Frame-Options = "DENY"
|
Reference in New Issue
Block a user