Closed jasonrudolph closed 5 years ago
- [ ] When navigating to the root URL (
/api
), show the docs for the current stable version
@lee-dohm @as-cii: I've just about got this āļø working locally. I've gotta head out for dinner, but I'm hoping to get this pushed up tomorrow morning.
- [ ] Show the list of classes in the left sidebar (to match current behavior on https://atom.io/docs/api)
I got this working for both the main table of contents at /
and in the sidebar of each page. I sandwiched the API docs between the chapters and the appendices. I fiddled around with the memoization to speed things up and it's pretty quick for going through 140+ versions of API docs.
Right now though, the class links all refer to /api/latest/ClassName/index.html
so either we'll need to fiddle with the routes
rules in Rules
or, if that won't work, I can quickly redo it to put the latest version number in the URL.
Oh, and the links pointing to invalid references is why the build is failing š
Updated the links to use a hardcoded version.
- [ ] Compare the output side-by-side with the content at https://atom.io/docs/api and fix any bugs
I've compared the current content at https://atom.io/docs/api to the content rendered by this branch, and I've updated the issue body to list the differences that I've noticed so far.
@lee-dohm: I think this is looking pretty good now. Would you mind trying out these changes to see if there's anything that's essential to change before we ship?
Note: Given the size of this diff and how long this branch has been in progress, I think we should lean heavily toward getting to a reasonable production "v1" of these changes as soon as possible and deferring any enhancements to separate pull requests. š
I'll take a look at this first thing in my morning tomorrow. Thanks so much for all the work driving this forward @jasonrudolph and @as-cii š I agree that a reasonable v1 is the appropriate action here.
This looks great! I've marked the PR as ready for review while I dig deeper into it.
From taking a quick look at the website:
Edit: I'm also in favor of a quick v1. These are definitely not show stoppers. If you'd like, I can open issues for them.
Thanks for the review! I'm gonna roll this out now.
Despite all our testing and code review, I anticipate us discovering at least some issues in real-world use due to the sheer magnitude of this change. To minimize the impact, we'll keep an eye on issues filed over the next few days, and we'll try to respond as quickly as possible to any problems that come up.
This pull request aims to bring the Atom API reference docs into the Flight Manual. These docs currently reside at https://atom.io/docs/api, and we'd like for them to move them into this repository so that all of Atom's docs are consolidated in a single place.
TODO
/api/:version/:class
(for example:/api/v1.38.2/AtomEnvironment
)/api
), show the docs for the current stable version (https://github.com/atom/flight-manual.atom.io/compare/387eeee4488f13be1eb610370ef495d9bbce98b9...de1e02a850721dfcf1cf2a5e8ee322c09b92b5eb)/cc @lee-dohm @as-cii