Skip to content

Add API reference to the models pages#139

Merged
alihamdan merged 2 commits intodevelopfrom
api-in-models
Oct 10, 2023
Merged

Add API reference to the models pages#139
alihamdan merged 2 commits intodevelopfrom
api-in-models

Conversation

@alihamdan
Copy link
Member

@alihamdan alihamdan commented Oct 9, 2023

So this improves the docs of the elements by bringing the documentation of the API of an element closer to the the definition of its model.
I left the comprehensive API alone which means each element class now have two pages describing its API. This is OK because the pages are auto-generated so they never get out of sync.

The API is now easy to access from the models index page. Click here for a preview

Screenshot from 2023-10-09 17-27-50

Here is an example showing both the model and API of the potential reference element

Screenshot from 2023-10-09 17-26-05

I removed the "See Also" links from the doscstring as they point to the same page the text is displayed in now.

@alihamdan alihamdan added the documentation Improvements or additions to documentation label Oct 9, 2023
@alihamdan alihamdan requested a review from benoit9126 October 9, 2023 15:32
@alihamdan alihamdan self-assigned this Oct 9, 2023
@alihamdan alihamdan merged commit bfb14ce into develop Oct 10, 2023
@alihamdan alihamdan deleted the api-in-models branch October 10, 2023 06:28
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants