Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add better example schemas and custom page docs #147

Open
8 tasks
rohit-gohri opened this issue Mar 13, 2022 · 3 comments
Open
8 tasks

Add better example schemas and custom page docs #147

rohit-gohri opened this issue Mar 13, 2022 · 3 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted PRs are encouraged and will be accepted

Comments

@rohit-gohri
Copy link
Owner

rohit-gohri commented Mar 13, 2022

Show examples with:

@rohit-gohri rohit-gohri added documentation Improvements or additions to documentation help wanted PRs are encouraged and will be accepted good first issue Good for newcomers labels Mar 13, 2022
@rohit-gohri rohit-gohri changed the title Add better example schemas Add better example schemas and custom page docs Feb 27, 2023
@Zenahr
Copy link

Zenahr commented May 8, 2023

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

@rohit-gohri
Copy link
Owner Author

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?

@Zenahr
Copy link

Zenahr commented May 8, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted PRs are encouraged and will be accepted
Projects
Status: No status
Development

No branches or pull requests

2 participants