mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +02:00
fix(v2): allow using classic theme/preset without the docs plugin (#3382)
* deprecated nextVersionLabel option * useActivePlugin failfast option * remove deprecated option nextVersionLabel * routeBasePath: '' should be forbidden * routeBasePath: '' should be forbidden * Docs: do not show version badge if there is only 1 version: https://github.com/facebook/docusaurus/issues/3362 * allow sidebars file to not exist: fallback to empty sidebars https://githu.com/facebook/docusaurus/issues/3366 * Ability to use classic theme/preset while not using docs/pages without trouble. https://github.com/facebook/docusaurus/issues/3360 * fix netlify redirects * do not throw if useDocs do not load? * netlify deploy typo * try to fix useDocs * docs(v2): update Deploy to Vercel guide (#3344) * filter annoying useDocs conditional require warning * netlify deploy preview homepage * typo * try to trigger again CLA bot Co-authored-by: Sam Ko <sam@vercel.com>
This commit is contained in:
parent
a4769e3f30
commit
5359d61d9e
14 changed files with 223 additions and 27 deletions
4
website/netlifyDeployPreview/_redirects
Normal file
4
website/netlifyDeployPreview/_redirects
Normal file
|
@ -0,0 +1,4 @@
|
|||
/classic/* /classic/404.html 200
|
||||
/bootstrap/* /bootstrap/404.html 200
|
||||
/blog-only/* /blog-only/404.html 200
|
||||
/* /classic/
|
31
website/netlifyDeployPreview/index.html
Normal file
31
website/netlifyDeployPreview/index.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<body style="padding: 20px;">
|
||||
<img src="https://v2.docusaurus.io/img/docusaurus.png" />
|
||||
<h1 style="margin-top: 20px;">
|
||||
Docusaurus deploy previews
|
||||
</h1>
|
||||
<section style="margin-top: 40px;">
|
||||
<p>
|
||||
We deploy the Docusaurus site with various configurations. It helps us
|
||||
find potential regressions.
|
||||
</p>
|
||||
<p>When in doubt, try the <a href="/classic">classic preview</a></p>
|
||||
</section>
|
||||
<section style="margin-top: 40px;">
|
||||
<h2>Available deploy previews:</h2>
|
||||
<ul style="margin-top: 20px;">
|
||||
<li style="margin-top: 20px;">
|
||||
<a href="/classic">classic</a>: the regular site
|
||||
</li>
|
||||
<li style="margin-top: 20px;">
|
||||
<a href="/bootstrap">bootstrap</a>: the regular site with the
|
||||
bootstrap theme (WIP)
|
||||
</li>
|
||||
<li style="margin-top: 20px;">
|
||||
<a href="/blog-only">blog-only</a>: the regular site in blog-only mode
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue