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 API Documentations to the Website #494

Open
gemanor opened this issue Jan 26, 2025 · 2 comments
Open

Add API Documentations to the Website #494

gemanor opened this issue Jan 26, 2025 · 2 comments

Comments

@gemanor
Copy link
Collaborator

gemanor commented Jan 26, 2025

Important! This issue depends on the completion of #491

We want to add another tab to the docs website - API - which will have auto-generated pages based on our OpenAPI docs. The issue also includes some modifications/updates to the top Navbar on the website.

Requirements

  • The API references should be embedded in the documentation website with the following plugin: https://github.com/PaloAltoNetworks/docusaurus-openapi-docs
  • There are two sets of APIs to add to the docs
  • Each of these API spec docs should have its own sidebar with all the available APIs
  • In terms of menus, the existing sidebar should kept under a new navbar menu item, Docs, and each of the specs should be under new tabs in the new navbar
  • Each API endpoint has a different page URL
  • Every API page is SEO oriented with proper titles and descriptions for SEO purposes (the text should be taken from the OpenAPI)
  • UI modifications of the navbar:
    • Move the search box to the middle
    • Remove the border between the Permit.io/Docs and the search box
    • Add a left menu with three items (docs, API Reference, PDP API) - the style should fit with our docs, and the layout should be similar to the attached Stripe navbar layout
    • Add a right menu with two items (homepage and help)
    • Replace the Twitter icon/link at the top with LinkedIn icon/link https://www.linkedin.com/company/permitio
    • The navbar on the desktop should look as the attached layout reference screenshot
    • The UI changes need to be carefully tested on desktop and mobile

Bounty Assignment

  1. Before participating in this bounty, comment here with your detailed plan and timeline. We will not assign this issue if this information is missing. Please, DO NOT attempt the bounty before your proposal got accepted.
  2. This task is on a first-come, first-served basis, but we will give it to the most promising/detailed proposal. There is an ask to avoid any GPT-generated proposals.

Navbar Layout Reference

Image

@khabdrick
Copy link

Hello @gemanor
I am interested in working on this.

Phase 1: Starting with the low-hanging fruits (7th-12th Feb)

Phase 2: Embedding API docs (14-21st feb)

  • Attach pages to the new navbar items
    • Documentation homepage under "Documentation"?
    • Permit.io SaaS API under /docs/api/permit-saas/
    • PDP API under /docs/api/permit-pdp/
  • Embed the API references into your documentation website using the docusaurus-openapi-docs plugin
  • Check meta tags (title, description) for API pages. Extract titles/descriptions from OpenAPI specs and set in each API’s .mdx files.
  • Ensure OpenAPI description fields are rendered as page content.
  • Final UI testing (desktop & mobile), make correction where needed

@khabdrick
Copy link

Hello @gemanor , any update here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants