mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
* fix(v2): doc sidebar * chore(v2): prettier * fix(v2): docs navbar path * fix(v2): fix error about activepath * chore(v2): prettier * feat(v2): change active color * feat(v2): Add bootstrap doc * docs(v2): Update preset * doc(v2): finish bootstrap documentation * chore(v2): run lint * doc(v2): update hook * fix theme bootstrap layout (far from perfect) * Try to fix bootstrap theme and deploy it! * fix netlify error Co-authored-by: slorber <lorber.sebastien@gmail.com>
31 lines
945 B
TOML
31 lines
945 B
TOML
|
|
# Note: this file's config override the Netlify UI admin config
|
|
|
|
# default/production build
|
|
[build]
|
|
base = "/"
|
|
command = "yarn workspace docusaurus-2-website netlify:build:production"
|
|
publish = "website/build"
|
|
|
|
# we build deploy previews with a /build/ baseUrl on purpose
|
|
# permits to test that baseUrl works fine (this often breaks!)
|
|
[context.deploy-preview]
|
|
command = "yarn workspace docusaurus-2-website netlify:build:deployPreview"
|
|
publish = "website/netlifyDeploy"
|
|
|
|
# TODO this does not seem to work
|
|
# workaroud: a _redirect file is created in website/netlifyDeploy
|
|
# can't we have context-based redirects with Netlify? :'(
|
|
[[context.deploy-preview.redirects]]
|
|
from = "/classic/*"
|
|
to = "/classic/404.html"
|
|
status = 200
|
|
[[context.deploy-preview.redirects]]
|
|
from = "/bootstrap/*"
|
|
to = "/bootstrap/404.html"
|
|
status = 200
|
|
[[context.deploy-preview.redirects]]
|
|
from = "/*"
|
|
to = "/classic/"
|
|
|