Include versions in the docs paths for api, event reference
Categories
(Taskcluster :: Services, enhancement)
Tracking
(Not tracked)
People
(Reporter: dustin, Unassigned, Mentored)
References
Details
(Keywords: good-first-bug)
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
(I'm doing a bit of a spring cleaning of bugs) Is this something you're actually currently working on, Hassan?
Comment 2•6 years ago
|
||
I'm not currently working on this but it will need to be done.
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 3•6 years ago
|
||
Work in both the existing and new site
Is this still true? (For example we're not working on updating Quick Start in tools)
Reporter | ||
Comment 4•6 years ago
|
||
That was a long time ago. No, not anymore.
Comment 5•6 years ago
|
||
Do I understand correctly that this depends on your "Documentation" PR being landed? Seems to be the stuff where these changes should be made :)
Comment 6•6 years ago
|
||
Correct. It depends on https://github.com/taskcluster/taskcluster/pull/216.
Comment 7•6 years ago
|
||
I am wondering if this can be a good contributor bug?
Reporter | ||
Comment 8•6 years ago
|
||
I bet it would! Let's try to get some attention on it sooner rather than later, since I would like to have this in place before we switch to the new rootUrl for Firefox CI, so we minimize the number of times users much change URLs.
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 9•6 years ago
|
||
You'll need to look both at the source for yarn generate
(infrastructure/builder/src/generate, which controls where documentation files appear under ui/docs
, and for the ui docs themselves, to figure out how to make this change.
Reporter | ||
Comment 10•6 years ago
|
||
Hopefully this patch will at least give us better debugging.
Updated•5 years ago
|
Comment 14•5 years ago
|
||
Hi, I would like to work on this issue. Could you please assign it to me? Thanks.
Comment 15•5 years ago
|
||
Has anyone been assigned this?
Reporter | ||
Comment 16•5 years ago
|
||
Hi Soundharya -- yes, please go ahead.
Comment 17•5 years ago
|
||
Thanks, Dustin.
Comment 18•5 years ago
|
||
I understand that the versions have to be added inside the links.
I have some questions in addition to that:
- Could you please let me know where I have to look into the codebase for existing and new site?
- Could you please give me one instance for API and event reference, where it is happening?
Thanks.
Reporter | ||
Comment 19•5 years ago
|
||
Comment 20•5 years ago
|
||
Hi Dustin,
Thanks so much for the answer.
I tried making some tweaks in API section by changing the routes param. But, it's not changing any routing link at all.
I tried making changes in all these files: https://imgur.com/QxaQJ2T
Could you please guide me through this thing?
Thanks.
Reporter | ||
Comment 21•5 years ago
|
||
I'm a little confused by your question, since the image doesn't show any changes to routes.
The reference documents are in files like ui/docs/reference/core/hooks/api.mdx
. I think the first step would be to rename those files so that they contain the version in the path (so something like ui/docs/reference/core/hooks/v1/api.mdx
). Once that's done, you'll need to do bit of work to the code that renders the table of contents so that it correctly renders like
Comment 22•5 years ago
|
||
Hi Dustin,
Thank you. I have made the changes. But, not sure, whether I can make the changes directly at docs-table-of-contents.json
cause when I tried to push the code, it's not showing up in the Files Changed
over here: https://github.com/taskcluster/taskcluster/pull/1541.
By the way, it's working fine at my end.
Attaching the screenshots: https://imgur.com/Fi8rzlT
Reporter | ||
Comment 23•5 years ago
|
||
That file is generated by yarn generate
, so no -- modifying it directly will not work. The key is to modify the file that creates it, https://github.com/taskcluster/taskcluster/blob/master/infrastructure/tooling/src/generate/generators/docs-tocs.js.
Comment 24•5 years ago
|
||
Hi Dustin,
I tried adding my changes in the docs-tocs.js
but that too not reflecting, when I am committing it.
These are my screenshot: https://imgur.com/ChOpb7G, https://imgur.com/2J8Bn2b
Can you help me with that?
Thanks.
Comment 25•5 years ago
|
||
You'll have to run yarn generate
from the root directory as outlined in https://github.com/taskcluster/taskcluster/blob/master/dev-docs/development-process.md#generating-code.
Comment 26•5 years ago
|
||
Hi Hassan,
Thanks. Now, I can able to generate the links with v1 version: https://imgur.com/ykFY3gC, https://imgur.com/CQQJK1e.
But, now in the navbar, it renders like Hooks (v1 / logs). When I click on v1 - it's pointing to http://localhost:5080/docs/reference/core/hooks/v1/api.
I think, I have to rethink about the conditions which I have written in docs-tocs.js
. Could you please let me know, how should I proceed after this?
Comment 27•5 years ago
|
||
Pushed my updates over here: https://github.com/taskcluster/taskcluster/pull/1541
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 28•4 years ago
|
||
I sincerely doubt we will ever have a v2 API!
Description
•