Questions tagged [docusaurus]

Docusaurus is a modern static site generator focused on documentation. It helps you to focus on your content and build optimized websites quickly.

Docusaurus is a performant static site generator by Facebook and can be used to create common content-driven websites (e.g. Documentation, Blogs, Product Landing and Marketing Pages, etc) extremely quickly. Its features:

  • Write using Markdown - Save time and focus on your project's documentation. Simply write docs and blog posts with Markdown and Docusaurus will publish a set of static html files ready to serve.
  • Built using React - Extend or customize your project's layout by reusing React. Docusaurus can be extended while reusing the same header and footer.
  • Translations - Localization comes pre-configured. Use Crowdin to translate your docs into over 70 languages.
  • Versioning - Support users on all versions of your project. Document versioning helps you keep documentation in sync with project releases.
  • Search - Make it easy for your community to find what they need in your documentation. We proudly support Algolia documentation search.

Useful Links

477 questions
0
votes
1 answer

Order doc markdown files

We are using docusauros as the new tool to write down our documentation. Is there a way to order markdown files under the docs repository? At the moment when creating markdown files under docs repository, it orders them alphabetically. Thank you
0
votes
1 answer

Custom Theme Per Doc Page with Docusaurus 2

I have been playing around with custom themes on Docusaurus 2, and I have successfully extended components like DocItem by "wrapping theme components". I am wondering if Docusaurus 2 supports different doc themes per page. For example, I would like…
Shawn Tabrizi
  • 12,206
  • 1
  • 38
  • 69
0
votes
1 answer

Deployment error with docusaurus when trying to deploy via now to Vercel(Zeit)

I am facing a big problem while deploying to vercel via now. I am able to successfully execute yarn run build and yarn run start, but when I am trying to deploy it via now. I get this error Error: You have 'doc' in your headerLinks, but no 'docs'…
theNishant
  • 663
  • 5
  • 15
0
votes
2 answers

Embeding GitHub gist into Docusaurus v2 docs

I'm new to Docusaurus and wonder is there a way to embed GitHub gists into docusaurus docs? I found this module: https://github.com/winoteam/docusaurus-gist-embed but I don't seem to get it to work.
NBayaman
  • 103
  • 8
0
votes
2 answers

Sidebar Docusaurus CSS V2

I have 2 question. Is it possible to change a sidebar backgorund colour based on it's id? For example, in sidebar.js, I have sidebar1 and sidebar2. I want sidebar 1 to have a different colour than sidebar 2. How do I input the default sidebar on a…
trycatch
  • 11
  • 2
0
votes
1 answer

Adding Bootstrap JavaScript to Docusaurus but having issues

Got the JavaScript in the head of the document. Great. BUT the bootstrap components I'm rendering in Docusaurus, whilst styled correctly, aren't affected by the Bootstrap minified file I'm importing into the project. It needs to be put in the footer…
0
votes
1 answer

How to set "Docs" as the main page

I am using the theme template and I am trying to change the main page of my website. That is, how do I remove the index page and replace it with the "Docs" page as the main page on my website?
dedede
  • 197
  • 11
0
votes
2 answers

Docusaurus V2 - Activating Google Analytics hides navbar and footer

We want to implement Google Analytics into our online website, however when we add the code our menu and footer disappears. According to documentation on the official website…
Daniel Vila Boa
  • 670
  • 5
  • 13
0
votes
1 answer

Subdomain instead of path for blog in Docusaurus v2

Is there a way to configure docusaurus v2 so the blog not is not configured as path but as subdomain? Would like to achieve blog.page.tld instead of page.tld/blog. Could not find a way to do that from the documentation on how to integrate a blog…
dakami
  • 319
  • 2
  • 10
0
votes
1 answer

Adding embedded mode in docusaurus

I am using docusaurus 1.14.4 I need to create embedded mode for each document which remove header, footer and left navigation. Page url look like this http://localhost:3000/...../?mode=emb I figure out a way by adding this piece of script to each md…
Xuan Tien
  • 3
  • 1
0
votes
1 answer

does docusaurus have an official docker container?

https://docusaurus.io/docs/en/docker kinda gives the impression that Docusaurus has a Dockerfile in it's main repo but I'm not seeing it in the github repo: https://github.com/facebook/docusaurus/tree/master I see third party Docusaurus Docker…
neubert
  • 15,947
  • 24
  • 120
  • 212
0
votes
1 answer

'import' and 'export' may appear only with 'sourceType: "module"' (16:0)

Background I am using docusaurus ^1.14.0. I am using React only. In my pages, I try to separate the components by importing a component from another file using a basic import statement. However when I try yarn start I get the following error:…
Aquib
  • 145
  • 1
  • 11
0
votes
2 answers

How to employ the useState() hook with config props in a Docusaurus project?

I'm working with Docusaurus, which provides a siteConfig.js as a config props. As such, I have to use this props to build my site components. Working code is formatted like this: const React = require("react"); class SamplePage extends…
Lichtung
  • 133
  • 2
  • 12
0
votes
1 answer

How to use the useState() hook to open / close all detail tags In ReactJS?

I have a useState() hook to assert or deny the open (isOpen) attribute of 3 detail tags and also 2 button(s) to control the hook, all wrapped in a div: const {useState} = React; const SamplePage = () => { const [isOpen, setIsOpen] =…
Lichtung
  • 133
  • 2
  • 12
0
votes
0 answers

Spaces are missing in the layout

I coded the following code in .md: ```bash =AND(a,AND(b,c,d),e) => =AND(a,b,c,d,e) ``` However, the spaces before =AND(a,AND(b,c,d),e) are missing: Does anyone know how to amend this?
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
1 2 3
31
32