531
questions
0
votes
0
answers
9
views
docs as baseUrl for docusaurus fails on build
I can't seem to give /docs/ as the baseUrl.
baseUrl: '/docs/',
Any name other than docs works.
So its docs restricted somewhere in the code ? Because build fails when giving docs.
Using docusaurus 3....
0
votes
0
answers
8
views
Is there a way in Docusaurus to change the default extension in editURL from `.md` to `.mdx`
I guess that one way would be to create an editUrlFn to apply to every URL, but is there some easier way to just change the extension added by default?
-1
votes
0
answers
38
views
I am writing a .sh script to automate the creating the docusaurus and hosting to github
here when I execute the creation of docusaurus command it halts and never comes out of loop post executing
here is the command: when I try to execute in git bash
npx create-docusaurus@latest my-...
0
votes
0
answers
31
views
Disqus Integration Not Working in Docusaurus Blog Post After Swizzling
I followed this guide to integrate Disqus comments into my Docusaurus blog. After swizzling, my BlogPostItem component looks like this:
import React from 'react'
import { DiscussionEmbed } from '...
-1
votes
1
answer
68
views
Docusaurus build failed due to docusaurus-search-local plugin
The docusaurus build fails because of error with docusaurus-search-local plugin:
Unable to build website for locale en.
[ERROR] TypeError: Cannot read properties of undefined (reading 'load')
at ...
0
votes
1
answer
44
views
Docusaurus: Is it possible to exclude (hide) a file when using mdx DocCardList, while displaying the rest?
[some edits to clarify]
I'm using
import DocCardList from '@theme/DocCardList';
<DocCardList />
This is to get the "boxes" that go to other pages on the "main" page. I'd ...
0
votes
0
answers
44
views
Errors with regards to a <details> component in Docusaurus site after installing MUI
I'm working on a Docusaurus site, and I wanted to use a card component from MUI. However after I installed it, there are other pages where the <details> components have stopped working with the ...
0
votes
0
answers
45
views
How to make Docusaurus navbar dropdown label dynamic (like it is for the versions and locale dropdowns)?
Docusaurus supports navbar dropdowns, but for these you have to set a static label. For example, you can create a dropdown labeled "Options" with item values "One" and "Two&...
1
vote
2
answers
69
views
Docusaurus: How can I display a Markdown file inline inside a Markdown page?
In my Docusaurus website, I want to have a Markdown file stored in one place and displayed in six places. How do I do this (a) in Docusaurus, (b) in HTML (c) a better way?
My attempt:
In src\...
0
votes
0
answers
36
views
Docusaurus static web hosting
I currently have a very basic Docusaurus application. I can see this is running as a 'single page application' - however, each route is rendering an index.html file under it. For example / default ...
0
votes
1
answer
118
views
Customize sidebar items with docusaurus-plugin-openapi
I have been trying the Docusaurus OpenAPI plugin for my API documentation. But it is very hard for me to customize it the way I want. For example, how do I change what appears in the sidebar items? ...
2
votes
1
answer
65
views
index.html file ignoring footer in docusaurus.config.js file
My understanding is that the docusuarus.config.js file essentially translates the defined info into HTML that builds your website. The file the translated info goes to is the 'index.html' file.
...
0
votes
0
answers
38
views
Docusaurus build fails in cloudflare when I indude the ideal-image-plugin in its configuration file
this is log from cloudflare
Executing user command: npm run build
13:06:53.479
13:06:53.479 > [email protected] build
13:06:53.480 > docusaurus build
13:06:53.480
...
0
votes
1
answer
38
views
The image field in the blog front matter, how to use the image in the assets folder in the same directory
I try to set the front matter like this
draft: true
slug: otOARU_mJTlg
title: XXX
image: assets/images/otOARU_mJTlg-cover.webp
But the picture can't be found.
I want to use pictures with relative ...
0
votes
1
answer
59
views
Is there a way to get Docusaurus to tell me about all missing images / test for missing images?
When our CI/CD scripts build Docusaurus, we occassionally run into cases where someone forgot to git add an image:
98.49 Error: Image docs/add-ons/adjustment-period-ex.png used in docs/add-ons/custom-...
1
vote
0
answers
50
views
How can I implement this markdown syntax into my docusaurus project?
I'm currently doing a project on Docusaurus, I have pre-written md files with this type of syntax:
h1. Title
{{toc}}
h3. Subtitle
# ...
# ...
Paragraph
<pre>
<code class="java"&...
0
votes
0
answers
59
views
How to create a new menu in Docusaurus and different sidebar content
in my project, I haven't been able to setup a new menu with different sidebar content
In this case I already have a menu with content in the sidebar, but I want to add a new menu, with different ...
0
votes
0
answers
25
views
Proxy in Docusaurus
I have a website www.frontend.com. It uses facebook Docusaurus as frontend, and calls an external backend www.backend.com in nodejs and mongodb.
Now, I would like to enable links like https://www....
1
vote
3
answers
164
views
How to deploy Docusaurus site from subfolder (not root) of repository
I want to place all of my Docusaurus site files into a subfolder called website inside my project repo and have my site deploy properly.
I have noticed Docusaurus sites that have done this (for ...
0
votes
0
answers
80
views
Receiving not a function error while compiling localhost
I recently inherited a Docusaurus project that hasn't been updated in multiple months. I attempted to compile the project in my localhost and got the following error:
ERROR
(0 , ...
0
votes
0
answers
96
views
How do I show a list of "related" pages within a Docusaurus page?
I'm porting my documentation from Jekyll to Docusaurus and am in the process of "refactoring" various Liquid code to Docusaurus/React code. I have a list of pages where some pages are ...
0
votes
0
answers
32
views
Docusaurus: Filter /docs with "slug" on query parameters
I have three different documents in the /docs folder, and I would like to see only this document, whose folder is the name, displayed in the sidebar when accessing them via URL, for example: localhost:...
0
votes
0
answers
28
views
docusaurus with @sillsdev/docu-notion
I working docusaurus with @sillsdev/docu-notion for pull data from notion. It working fine with locally. but in site production alert error when click any page in sitebar
ERROR
Maximum call stack size ...
1
vote
1
answer
39
views
Sidebar shorthand for complex category types in Docusaurus
I'm trying to simplify the sidebar.js file on my Docusaurus project by using config shorthand. I've however reached a blocker as it seems that Docusaurus does not support shorthand for category types ...
0
votes
1
answer
210
views
How can I add a new component to footer in docusaurus?
I want to remove the default footer from docusaurus.config:
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
...
2
votes
1
answer
103
views
How to Correct a Docusaurus-Generated Canonical URL That Points to a Redirect?
I'm managing a website built with Docusaurus, and I've encountered an SEO issue where the automatically generated canonical URL points to a redirect. I need advice on how to resolve this problem ...
0
votes
0
answers
22
views
Docusaurus with a graphql-inspector implementation fails to load
I have a Docusaurus implementation in which I am trying to compare graphql schemas using graphql-inspector and display the result.
After diagnosing and resolving all of the Webpack 5 issues none of ...
0
votes
0
answers
60
views
How do I fix the Error BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default
I am trying to implement a schema compare using "@graphql-markdown/diff" or @graphql-inspector
I get the following error:
Module not found: Error: Can't resolve 'process' in 'C:\Code\...
0
votes
0
answers
63
views
How can I create an interactive image carousel where clicking a button on an image displays the next image in the carousel?
I have created one react.js component to create carousel. And second component that show button (Hotspot) on image.
But I did not manage to combine both.
I created first component called ImageCarousel....
0
votes
1
answer
47
views
Renaming /docs sub folders not changing the nav
I renamed the /docs sub folders and files but doesn't reflect on the browser for some weird reason. Note that the link changed but not the visible texts
I was expecting since I've components that it ...
0
votes
0
answers
103
views
How to change this default green color to custom hero image in Docusaurus?
I'm trying to change the default green color in homepage with my custom hero image but its showing only the half of image
This is homepage image
here's the important code snippet
import clsx from '...
0
votes
0
answers
66
views
How to include additional metadata (author, description) in JSON for blog posts in Docusaurus 3.1.1?
I'm currently working with Docusaurus for a blog, where each markdown file header includes metadata such as title and permalink. These are automatically synchronized and displayed on another page in ...
0
votes
1
answer
236
views
Increase width of content column in Docusaurus
I'm using Dousaurus V3.
I want to increase the width of the center column where the markdown content i rendered.
The screenshow is from the Docusaurus docs site, which has a width of 990px. My own ...
0
votes
0
answers
41
views
Trouble Implementing Algolia Search in Docusaurus v2: Incomplete HTML Crawling and Limited Content Retrieval
I'm integrating Algolia search into a Docusaurus v2 project and encountering issues with the indexing process. The crawler seems to run successfully, but it fails to index the site properly.
Issues ...
0
votes
0
answers
49
views
How to hide directories in Docusaurus path?
I'm trying to build a doc just like the one in this question.
Basically, each document page would have an id (determined by its filename), and it would be accessible from https://example.com/id, ...
0
votes
0
answers
39
views
Documentation-only sites do not work if baseUrl is not
A docusaurus site (v2) without a landing page and documentation as the index page does not work if baseUrl is other than /.
It seems like @docusarus-utils.normalizeUrl is generating double forward ...
0
votes
0
answers
33
views
Packaging custom admonitions and components
I am trying to create a small library of reusable components that build upon existing Docusaurus components such as Details and CodeBlock. Reason being that I have multiple Docusaurus sites that ...
1
vote
0
answers
51
views
How can I remove the OPTIONAL value from a schema in Docusaurus using an OpenApi file?
I'm try to remove the OPTIONAL value from the schema in Docusaurus using an OpenApi file
This is the package.json that I use it.
{
"name": "my-websiteopenapi-2",
"version&...
1
vote
1
answer
42
views
Does Docusaurus have any sort of sitewide register?
I've been tasked with migrating my team's docs from Jekyll to Docusaurus. In Jekyll, I wrote a bunch of plugins that rely heavily on its register API (site.data, context.registers, and other hashes) ...
4
votes
2
answers
212
views
Docusaurus Admonitions not working since upgrade from V2 to V3
It was working on version 2, but from version 3, the admonitions are rendered in simple text, without the special design.
This is the package.json file:
{
"name": "my-website",
...
1
vote
0
answers
136
views
Take docs files from multiple folders to build Docusaurus
I have a quite big solution that I would like to generate documentation for.
I decided to use Docusaurus, because it is open-source and seems very easy to use.
How ever I came to a problem where I don'...
0
votes
0
answers
26
views
how can I route static inside react component on Docusaurus?
I have link like /abc under static folder, how can I use react to Link it?
I have tried Link component, but was failed.
import Link from "@docusaurus/Link";
Should be something related ...
0
votes
1
answer
123
views
How do I disable/remove the date from the Docusaurus blog posts?
I don't want the date to display under each blog post, because we are using the blog component differently, therefore it is not relevant to show the date.
If I leave the date field empty (date: ''), ...
2
votes
0
answers
303
views
Image files do not display when using reference style links in Docusaurus
We are considering a transition from mkdocs to docusaurus and are running into a small but annoying hurdle. In our mkdocs site we have adopted the convention of creating reference links at the bottom ...
0
votes
0
answers
148
views
Docusaurus and edit - URL - how to modify relativeDocPath?
I'm very glad that we are using our docusaurus installation. But I have some problems to find out how to change the edit-URL in the docusaurus.config.js.
My setup is: I installed docusaurus under /opt/...
0
votes
1
answer
195
views
Please set the GIT_USER environment variable or explicitly specify USE_SSH
I'm encountering an issue while trying to deploy my Docusaurus site using the npm run deploy command. Here's the error message I'm getting:
OR
Error: Please set the GIT_USER environment variable, or ...
0
votes
1
answer
316
views
Problems with locale url using Docusaurus
I followed the documentation on the docusaurus website to add an i18n locale dropdown. By default my website is in spanish and I'm trying to implement an English translation. On my computer it works ...
1
vote
1
answer
581
views
How can I disable the 'My Site' landing page in Docusaurus
I created a "How to Use" document in which I want to directly show the Tutorial page. How can I Disable the 'My Site' Landing page?
I try to change the parameters on docusaurus.config.js, ...
2
votes
1
answer
147
views
Docusaurus (mdx-based) tabs: How do I create a link in one tab that takes me to something in a different tab?
Use the docusaurus docs as a starting point: https://docusaurus.io/docs/markdown-features/tabs
Let's say I want to write some text in apple, and then say "if you want to go to oranges, click here&...
1
vote
0
answers
51
views
Want to show Top level/Parent Lables on Header menu - docusaurus
it is possible to show 1st level sidebar categories in Header menu? like "Introduction, Category 1, Category 2" want to show this three labels or it may be more .. in above header menu?