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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

How to see source code locations of docusaurus warnings?

When I run npm run build to build website using docusaurus 3.0.1, I get some warnings without any reference to problematic source files and line numbers, like shown on the image below. How can I ...
Apogentus's user avatar
  • 6,453
-1 votes
0 answers
22 views

NPM Warning: EBADENGINE Unsupported engine [closed]

I am getting this error in my terminal: [WARNING]: EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@docusaurus/[email protected]', ...
mzbu's user avatar
  • 1
0 votes
0 answers
14 views

Is there a way to use variable as URL in a MDX markdown link tag?

I am trying to use variables to manage links inside my documentation. I have declared an object that contains all my links like that: export const Links = { "foo": "bar", "...
stammfrei's user avatar
0 votes
0 answers
27 views

How to interpret this Docusaurus error message?

Not sure what this is... there is no "/test" in the codebase ... Error: Docusaurus server-side rendering could not render static page with path /test because of error: Element type is ...
Juno's user avatar
  • 241
-1 votes
0 answers
16 views

how to write component demo using docusaurus [closed]

I'm using docusaurus V3 to write a React component libarary. I did not know how to write demo like this: is there any plugins can help to implement?
Zhang Kai's user avatar
-1 votes
0 answers
21 views

Docusaurus won't translate category name

My docusaurus project is structured like this: docs |--mycategory |--_category_.json i18n/de/mypage/current |--mycategory |--_category_.json When I run the page with npm run start -- --locale de ...
Sven's user avatar
  • 1,026
0 votes
0 answers
15 views

Custom PrismJS Grammar Not Working in Docusaurus 3

I am not a react dev so maybe I'm missing something. Any help is much appreciated. I have a Docusaurus 2.2 site in which I've implemented a Prism grammar for a DSL we use. In Docusaurus 2.2, ...
Matthew's user avatar
1 vote
0 answers
23 views

Sidebar won't autogenerate with docs multi-instances on Docusaurus

I'm sure I'm making some stupid basic error here, but I cannot get the sidebar to autogenerate for my second docs instance. I've followed the guide here: https://docusaurus.io/docs/docs-multi-instance#...
Christopher Marshall's user avatar
0 votes
0 answers
11 views

NodeJS pkg: can you package docusaurus into executable?

Hi I wanted to package docusaurus project o an executable, but I don't known where to start and is it even possible. Did someone try to do this and found out how to prepare configuration for it? I ...
wazzupek01's user avatar
1 vote
1 answer
35 views

How to add Share button to every blog post in Docusaurus?

Is there a way to add Share button to every blog post in Docusaurus using the docusaurus.config.js?
yungdenzel's user avatar
0 votes
1 answer
23 views

How to render math formulas in docusaurus v2 for a separate page (not in "docs" folder)?

I can successfully render math formulas in docusaurus v2 in all documents (contained in docs folder), but I would like to create a separate document (referenced from top site bar) with some ...
Apogentus's user avatar
  • 6,453
0 votes
1 answer
35 views

Specific title and keywords for non-english versions of a docusaurus website

I have a website made by docusaurus 2.0.0-beta.18. Initially it was in English, then I added Chinese version for many pages with i18. So a page like https://www.mywebsite.com/zh-CN/docs/a-page ...
SoftTimur's user avatar
  • 5,396
0 votes
0 answers
24 views

Unsupported specification error with Redocusaurus plugin

I am creating .yml files from an ASP Net Core API using docFx version 2.73.2. When I try to create a Docusaurus site using the Redocusaurus plugin I receive an Unsupported Specification error. docfx ...
Shipswake's user avatar
0 votes
0 answers
17 views

How to make Docusaurus work with ESM only package?

I am authoring a TS library that compiles to ESM-only package and has "type": "module" set in its package.json file. For the same package, I am trying to generate documentation ...
Harshal Patil's user avatar
0 votes
0 answers
28 views

Canonical and alternate URLs of a docusaurus website with 2 locales

I have a website made with Docusaurus. Initially it was in English, then I added Chinese version for many pages with i18. So a page like https://www.mywebsite.com/docs/a-page displays in English and ...
SoftTimur's user avatar
  • 5,396
0 votes
1 answer
52 views

Invalid URL in field "id" (in "itemListElement.item") for a Docusaurus website

We have a website made with Docusaurus "2.0.0-beta.18". I'm improving its SEO by inspecting its pages in Google Search Console. For most of its page, I realize that there are 2 non-critical ...
SoftTimur's user avatar
  • 5,396
0 votes
0 answers
27 views

"ProtocolError: Runtime.callFunctionOn timed out" while creating PDF for Docusaurus site using Puppeteer docs-to-pdf

I am trying to generate a PDF from a Docusaurus site using the docs-to-pdf tool. I successfully did that for a smaller site but I get this error on a medium-sized website. I can't find a way to ...
Nida Z's user avatar
  • 1
0 votes
0 answers
23 views

Not all locales are generated in sitemap.xml of a docusaurus website

I have a website made by docusaurus 2.0.0-beta.18. Initially it was in English, then I added Chinese version for many pages with i18. So a page like https://www.mywebsite.com/zh-CN/docs/a-page ...
SoftTimur's user avatar
  • 5,396
0 votes
1 answer
33 views

How to create a component that imports static content?

I would essentially like to do this: import React from 'react'; import CodeBlock from '@theme/CodeBlock'; export function MyCode({fileName}) { const rawText = import('!!raw-loader!@site/static/' + ...
Cigarette Smoking Man's user avatar
0 votes
0 answers
14 views

docusaurus won't pick up my translated markdown files

My docusaurus project structure: website |--docs |----homepage.md |--i18n/de/docusaurus-plugin-content-docs/current |----homepage.md When I use the language switch I get directed to http://localhost:...
Sven's user avatar
  • 1,026
0 votes
1 answer
30 views

Docusaurus with DropInBlog render issues

I'm trying to use DropInBlog with Docusaurus instead of using its own inbuilt blog functionality. According to DropInBlog implementation should be straight forward. Add a script tag to the page body ...
Mark Comerford's user avatar
0 votes
0 answers
56 views

Vercel gives me a error while deploying a Vercel site

Vercel gives me a error while deploying a Vercel site. Here is the repo: https://github.com/Mrdev88/useimg Here's the error: [20:14:55.571] Running build in Washington, D.C., USA (East) – iad1 (Hive) [...
Mrdev88's user avatar
0 votes
0 answers
20 views

Gitlab Pages Tab doesn't appear

I'm trying to deploy a static docusaurus website with gitlab pages but the "Pages" tab (which should be in "Deploy" tab) doesn't appear. Here's my CI file : image: $...
ArrowRise's user avatar
  • 616
0 votes
0 answers
36 views

How to parse a local CSV file with react and docusaurus?

I have been trying to implement a graph on a website I am working on and I need to display sensor data. Currently I am using the react-chartjs-2 and a JSON file to display the data. However I was ...
Cage Wellman's user avatar
0 votes
0 answers
23 views

Docusaurus multi-instances and multi-searchs

I'm trying to integrate 3 documentation individually into a single docusaurus app. in case of creating multiple instances of the same app, I managed to solve it. The biggest problem is thinking about ...
Gabriel Malafaia's user avatar
1 vote
1 answer
49 views

Docusaurus adding tracking google analytics

I have seen some posts about the plugin to add in docusaurs documentation, to track with google analytics. But I tried several methods, and I don't see the track in the google dashboard. I tried in ...
Sofia's user avatar
  • 379
1 vote
1 answer
62 views

How to center all markdown tables in docusaurus?

I specify tables in docusaurus documents with markdown (this way my markdown editor inserts tables), as shown below: text text text text text text text text text text text text text text text text ...
Apogentus's user avatar
  • 6,453
0 votes
0 answers
21 views

Docusaurus. Sidebar is unique per page, bug or feature?

In docusaurus, if we declare the same doc in 2 sidebars, the sidebar is not respected and the doc always will show the last sidebar declaration, not matter from where the doc is accessed. sidebar1: [...
pellyadolfo's user avatar
0 votes
0 answers
29 views

How to set up redirect in docusarus via plugin @docusaurus/plugin-client-redirects

In my docusarus page I'd like to set up a redirect: from example.com/docs and example.com/changelog to example.com/docs/intro/ and example.com/docs/changelog/ respectively I installed the plugin @...
Olek's user avatar
  • 21
0 votes
0 answers
49 views

Docusaurus v2 change Navbar collapse breakpoint

With Docusaurus v2, I'd appreciate if anyone could point me in the right direction for figuring out how to change the breakpoint when the navbar collapses into mobile navbar (hamburger menu). Or just ...
Ash's user avatar
  • 13
0 votes
0 answers
18 views

Make a strong link to a category (verified by the compiler)

To make a link to another page I can use the file path like presentation/thomas.mdx, like that if the file does not exist the compiler errors. But I also want to use categories in the sidebars.js (...
Thomas Ramé's user avatar
0 votes
0 answers
29 views

Docusaurus Expected corresponding JSX closing tag for for large volume load

I am working on using Docusaurus to create a central location for markdowns coming from many sources, I have written a GitLab plugin to load data from GitLab by querying the GitLab API using Axios and ...
user3116783's user avatar
0 votes
0 answers
43 views

Running create-docusaurus from an electron app works in dev, but not in built app

I am using the electron-react-boilerplate to package my app and I am trying to execute a command to create a docusaurus project in my packaged app. It works all good when runnning it in dev mode, but ...
GBator's user avatar
  • 28
0 votes
1 answer
62 views

How to exclude a folder from build on Docusaurus?

I am using Docusasurus for documenting the APIs. There is a subfolder created to store the development-related files that should not be part of Docusasurus build. I disabled it from the sidebar but I ...
jolly's user avatar
  • 75
0 votes
1 answer
69 views

Typesense docsearch un docusaurus

The main problem is that there is not much information on how to implement typesense docsearch on a website made with ducusaurus. Is it very similar to doing it with algolia, maybe the .env and ...
Wolf's user avatar
  • 11
1 vote
1 answer
93 views

Add section above the copyright in the docusaurus.config.js file

I'm currently working on customizing the footer of my Docusaurus documentation site, and I'd like to include "Links" section with icons and links right above the copyright information. The ...
bxxb's user avatar
  • 784
0 votes
1 answer
97 views

remove baseUrl from Docusaurus site deployed on Github Pages

Hello I have a Docusaurus site in github deployed in Github Pages. "@docusaurus/core": "2.4.1", "@docusaurus/plugin-content-docs": "^2.4.1", "@docusaurus/...
pellyadolfo's user avatar
0 votes
2 answers
262 views

Adding Custom Component to Docusaurus

I have a quite large angular component exported as custom component, which I want to load as a demo into my docusaurus documentations It consists of several bundles and other resources all saved in ...
DeusProx's user avatar
  • 188
0 votes
1 answer
44 views

Can I disable or prevent turning into mobile screen in Docusaurus?

I am making a document site for only PC users. So, I would like to make document site not to be changed to mobile version when adjust screen width under 996px. Is there any way to prevent navbar ...
Jeongil Kang's user avatar
1 vote
1 answer
96 views

How to create a custom admonition

Anyone else follow the directions here to make a custom admonition? Error I get: [ERROR] ValidationError: "admonitions.extendDefaults" is not allowed And if I remove it, it thinks md is code ...
Jeremy Tellier's user avatar
0 votes
1 answer
211 views

Show a 'new' badge on a docusaurus sidebar item

I'm using docusaurus for our product documentation. Regarding the sidebar, I would like to add a 'new' badge after some sidebar items to indicate that the item documentation is new. Something like ...
Glop's user avatar
  • 3
0 votes
1 answer
58 views

How can I add a script to documentation pages in a Docusaurus theme?

On a Docusaurus 2.x documentation site, I want to add a JavaScript as a .... Is there a plugin I can use, or what solution is there? Even though I did not try anything yet, I am thinking about ...
Ion Gireada's user avatar
1 vote
1 answer
92 views

Can't render math with Docusaurus

I can't get math equations getting rendered by using KaTex in my markdown files and don't know why. Can anyone help me, please? I tried to reproduce it by creating a new clean Docusaurus project and ...
A.Struve's user avatar
1 vote
1 answer
59 views

Redirection for localization does not work

I have a website by Facebook docusaurus and docker. Here is docker-compose.yml: version: "3" services: docusaurus: restart: unless-stopped image: staticfloat/nginx-certbot ...
SoftTimur's user avatar
  • 5,396
0 votes
1 answer
169 views

Docusaurus: how to add custom css

I am trying to use academicons (see 1) with docusaurus. These are icons that would be relevant for academic pages, such as google scholar, and overleaf icons. The academicons instructions say I should ...
hyperio's user avatar
  • 421
0 votes
0 answers
45 views

Set custom meta title for subsections

I have a Docusaurus site with a blog and two subsections (Knowledge Base, Topics): https://uplink.tech/blog/ All of them use the title defined in docusaurus.config.js (module.exports = { title: '...
Manuel Meurer's user avatar
1 vote
0 answers
40 views

How to get Docusarus sitemap in local build?

I've had one sitemap question before (Where do I control sitemap for Docusarus?), so this is kind of an extension to that question. On the documenataion page (https://docusaurus.io/docs/api/plugins/@...
KWriter's user avatar
  • 1,056
0 votes
1 answer
82 views

How do I add a react page to the sidebar?

I'm creating documentation for a project using docusaurus and markdown files are great for most of the documentation. However, I have created some react pages that I would like to add to the site, but ...
Devon McGrath's user avatar
4 votes
1 answer
370 views

Docusaurus implementation in existing react project

I am having one exiting react app and I want to embed Docusaurus into it to have documentation site. Till now I have build the Docusuarus and put all the files/folder inside /build folder of ...
Amit Pande's user avatar
0 votes
1 answer
113 views

How to add buttons in Table Of Content (TOC) or below TOC in Docusaurus?

I want to add custom buttons below auto generated Table of Content. Ideally , I want to use the space below TOC to add my custom buttons. Or maybe i could create a plugin that would generate TOC ...
rohanmrzan's user avatar

1
2 3 4 5
11