redocusaurus icon indicating copy to clipboard operation
redocusaurus copied to clipboard

Add better example schemas and custom page docs

Open rohit-gohri opened this issue 3 years ago • 3 comments

Show examples with:

  • [ ] Multiple APIs
    • [ ] Different Services
    • [ ] Different Versions
  • [ ] Multi File examples #23
  • [ ] Different schames rather all being petstore yaml
  • [ ] Document custom pages
    • [ ] Document hooks separately - https://github.com/rohit-gohri/redocusaurus/issues/273
    • [ ] Document components separately

rohit-gohri avatar Mar 13 '22 10:03 rohit-gohri

@rohit-gohri not sure if "custom page docs" is what I'm trying to do but here's my topic:

There doesn't seem to be any docs to embed regular markdown docs into the generated api docs, e.g., to show an "introduction" page before showing the specfile contents. Is this even possible?

Zenahr avatar May 08 '23 11:05 Zenahr

There doesn't seem to be any docs to embed regular markdown docs into the generated api docs, e.g., to show an "introduction" page before showing the specfile contents. Is this even possible?

Do you mean importing a markdown file in the info.description section of the openapi yaml?

rohit-gohri avatar May 08 '23 12:05 rohit-gohri

There doesn't seem to be any docs to embed regular markdown docs into the generated api docs, e.g., to show an "introduction" page before showing the specfile contents. Is this even possible?

Do you mean importing a markdown file in the info.description section of the openapi yaml?

I mean adding a page that is is own element in the generated sidebar.

EDIT: nevermind, wasn't sure on how you were meant to integrate the api docs to the existing documentation. But doing this under the sidebars.js file

            {
              type: 'link',
              label: 'REST API Reference',
              href: '/rest-api-reference/',
            },

works fine, which answers my question too as I can just add articles around this.

Zenahr avatar May 08 '23 12:05 Zenahr