Code Monkey home page Code Monkey logo

Comments (6)

devtim123 avatar devtim123 commented on June 1, 2024 1

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.

milesj avatar milesj commented on June 1, 2024

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.

SahilAujla avatar SahilAujla commented on June 1, 2024

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.

milesj avatar milesj commented on June 1, 2024

@SahilAujla Have you configured the /api route? What happens when you go to it?

from docusaurus-plugin-typedoc-api.

SahilAujla avatar SahilAujla commented on June 1, 2024

@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.

devtim123 avatar devtim123 commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.