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
Remove apidocs completely #1808
Conversation
For the record, rewrite rules PR is here: theforeman/foreman-infra#1600 |
For the record, the discussion is at https://community.theforeman.org/t/proposal-move-apidocs-from-git-to-infra-web/23059 The infra (redirects) change is at: theforeman/foreman-infra#1600 For easier review, the only two changes at the moment are:
You also want to review this github repo which hosts the |
For easier review I can remove deletion of "apidocs" directory, there is a change in layout. Anyone? @melcorr ? |
I have no objections to this. Is everyone else OK with this? |
While i'd be happy to get rid of this, It doesn't feel like the new api website is quite ready.
|
Fixed.
Fixed in theforeman/apidocs@c104149
This PR actually fixes this:
Let me check if there are some objections. |
So the concern was that from the index page (generated by the tree tool) its redirect. Explanation: I do not want to create another place we would need to manually maintain, our main site is the place that will link everything. The generated index is just for web spiders, and those who would manually enter the address. But if you insist I can create some landing site, but we would need to edit it on each release and also we will never link it from the main site. I asked in the infra PR for green light. |
After a short IRC chat, I've updated the index.html to be more friendly in theforeman/apidocs@cceb426 |
Fixed also an extra LI HTML tag (bullet), if you can give this a review so we are all set and can wait for the infra PR merge. Thanks for the review! |
When viewing a page I miss what version it's for. I'm leaning to keeping it simple and fall back to classic HTML frames. Thoughts? |
I am not sure what exactly are you missing, I do not see any version on the current site: https://www.theforeman.org/api/2.4/index.html Compare to: https://apidocs.theforeman.org/foreman/2.4/apidoc/v2.html The version is in the URL itself, if you expect anything on the apidocs pages, I think we should update apidocs itself. |
You're right that the current location also has no indication which version you're browsing. Not a blocker to merge |
I believe I solved all the concerns, @tbrisker, I updated apidocs index page too. Can we merge this before 2.5 apidoc branching? This hasn't been done yet. FYI @upadhyeammit I rebased but there were no changes, I wanted to make sure it applies cleanly and everything is up to date. |
GH won't let me approve because of the size of this change, but let's do this, if anything got missed we can follow-up on it. Great cleanup @lzap ! |
This removes whole /api directory, also it updates the URL in the main menu and also drops unused api_v2 layout template.