Comments (6)
Found the solution. my mistake was following config:
projectRoot: path.join(__dirname, '..'),
packages: [
{
path: '/',
entry: {
index: 'src/index.tsx',
}
}
],
correct one is:
projectRoot: path.join(__dirname, '..'),
packages: [
{
path: '.',
entry: {
index: 'src/index.tsx',
}
}
],
so instead of /
in path use .
.... solved the problem.
from docusaurus-plugin-typedoc-api.
Looks like youre not using workspaces, so you'll need to add typescript
to the website itself: https://github.com/SahilAujla/alchemy-sdk/blob/main/website/package.json
from docusaurus-plugin-typedoc-api.
Thank you so much for your response @milesj
I installed typescript
in the website
and this time it worked and the site started on http://localhost:3000/
but it was just the default site that we get with docusaurs i.e. the docusaurus-plugin-typedoc-api did not auto-generate the docs for SDK.
I've used docusaurus-plugin-typedoc in the past and it automatically generated the docs for the SDK whenever I did yarn start
in the website
.
Is there anything else I need to do in order to generate the docs with the plugin?
from docusaurus-plugin-typedoc-api.
@SahilAujla Have you configured the /api route? What happens when you go to it?
from docusaurus-plugin-typedoc-api.
@milesj sorry for the late response.
Not sure what you mean by /api
route. But I tried creating an api
folder inside the website
folder, in the hopes that the docs will get auto-generated inside that folder when I run npm run start
, but nothing happened.
You can see it here in my Github repo for the project:
https://github.com/SahilAujla/alchemy-sdk/tree/main/website/api
from docusaurus-plugin-typedoc-api.
I also have problem getting this to work. when visiting /api
is says "page not found".
the configration in docusaurus.config.js for themeConfig.navbar.items
is set to this:
[
{
to: 'api',
label: 'API',
position: 'left'
}
]
Any ideas, what could be wrong?
from docusaurus-plugin-typedoc-api.
Related Issues (20)
- No files are generated HOT 21
- Update Typedoc or make it a peer dependency? HOT 9
- Monorepo with a single package is broken after update to v3.0.1 HOT 4
- Next version of the docs is not rendered with v3.0.1 HOT 3
- Symbols are not rendered as links in versioned API docs in v3.0.1 HOT 1
- Support for Docusaurus v3 HOT 2
- Docusaurus build (production) fails because of ParseError HOT 3
- Weird issue with rendering categories (using `@category` tag) HOT 3
- `VersionBanner` "cannot read properties of undefined"
- Integration into Docusaurus Search HOT 1
- Integrate the sidebar into an existing sidebar HOT 3
- Rendering readmes breaks with Docusaurus 2.2.0 HOT 7
- Polyrepo mode fails when `readmes` or `changelogs` are enabled
- setup for `monorepo` but only one package API HOT 1
- Integration with `typedoc-plugin-missing-exports` HOT 1
- External symbols, `@inheritDoc` and class extension HOT 2
- [WARNING] {"moduleIdentifier":.....} imported as mdx was not found in @mdx-js/react HOT 1
- Latest versions of the plugin report several `Entry point already defined` errors
- Support for TypeScript 5 HOT 2
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 docusaurus-plugin-typedoc-api.