Comments (6)
@rohit-gohri here you have an example config and page https://github.com/jrub/redocusaurus_test
from redocusaurus.
Figured it out. The id in useSpecData
is supposed to be the same id you specify in the docusaurus config (here https://github.com/jrub/redocusaurus_test/blob/63a8e30710d18c586e835ff3d41047f450091a2b/docusaurus.config.js#L66). Let me know if this is not the fix.
I guess it's not very clear in the docs. Added it as a TODO to the existing docs ticket (#147).
from redocusaurus.
Cool! That worked, thank you
from redocusaurus.
PS: when using yarn build
, it fails with [ERROR] Docusaurus server-side rendering could not render static page with path /.
from redocusaurus.
Are using both the route
option and also creating a custom page using index.jsx/tsx file in the pages
directory? Then these options might conflict, you can remove one of them and I think it should work.
If you have a link to the repo that would be great to debug this
from redocusaurus.
With route
completely removed from the config, and using https://github.com/rohit-gohri/redocusaurus/blob/main/website/src/pages/examples/custom-layout/index.jsx as my only src/pages/index , it's stuck on Loading.
However, now I tried to remove all the /src and using route: '/'
on config and it loads fine.
Could it be that import useSpecData from '@theme/useSpecData';
does not load at all?
from redocusaurus.
Related Issues (20)
- Search doesn't work in Docusaurus HOT 3
- Route not allowed in Canary Build HOT 1
- Dark mode - authentication section unreadable HOT 1
- Build Failed after Upgrading Docusaurus from 2.1.0 to 2.2.0 HOT 4
- Theme options doesnt works with docusaurus 2.2.0 HOT 1
- Cannot mix different versions of joi schemas HOT 4
- Can't retrieve spec from a private Nexus repository HOT 7
- Generated link allowing to download OpenAPI specification uses 'plugin-redoc-0.yaml' as name of the file instead of the original name HOT 1
- Remove the Response Schema without removing the Response sample on the right side HOT 1
- How to specify spec file by relative url HOT 5
- Footer UI defects on Redoc sidebar HOT 9
- "Page not found" shows when loading operationId URL HOT 5
- Support for i18n HOT 6
- Hiding footer not working HOT 1
- v1.6.1 Compresses Mobile View HOT 3
- docusaurus and redocusaurus version compatibility HOT 2
- Use in docker HOT 1
- Rendering Definitions in Redoc using swagger docs HOT 1
- Render mermaid embedded within swagger/openapi
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redocusaurus.