-
Notifications
You must be signed in to change notification settings - Fork 8
Fix API Reference page not rendering properly #112
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congrats on your first pull request to optics-framework
Welcome aboard—as a first-time contributor, we'd love to help you get set up.
Feel free to ask questions if any part of the contribution process is unclear.
Co-authored-by: malto101 <[email protected]>
|
|
|
||
| #### Methods | ||
|
|
||
| - **`condition(*args)`** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ideally I would like to all API reference to also have a sample usage
|
|
||
| ## Usage Examples | ||
|
|
||
| ### Basic Element Interaction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is no way to use
ideal usage is through optics.py
As this is supposed to be a pip package
the user is supposed to
from optics_framework import Optics
optics = Optics()
optics.setup(add the config)
optics.press_element(parameter)



Problem
The API Reference page was not rendering properly due to a missing
docs/api_reference.mdfile. When users visited the documentation site and clicked on the "API Reference" link, they encountered a broken link instead of proper documentation with CSS styling.Root Cause
The
docs/index.mdfile referencedapi_reference.mdbut this file didn't exist in the repository, causing:Solution
Created a comprehensive
docs/api_reference.mdfile that documents the complete Optics Framework API, including:Core API Modules
REST API Endpoints
POST /v1/sessions/start,DELETE /v1/sessions/{id}/stop)POST /v1/sessions/{id}/action)Documentation Features
Testing
Screenshot
The API Reference page now displays comprehensive documentation for all framework APIs with proper styling, navigation, and formatting.
Fixes #95.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.