-
Notifications
You must be signed in to change notification settings - Fork 341
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
Convert wiki to Sphinx/ReadTheDocs (REP-004 part 1) #1522
Convert wiki to Sphinx/ReadTheDocs (REP-004 part 1) #1522
Conversation
e8dcb40
to
365677a
Compare
Hi @davidlatwe ! Thanks for taking a look! Regarding dark mode problems with the images, I indeed saw that but deciced that it could be improved in a subsequent PR. Furo supports dark/light figures (https://pradyunsg.me/furo/reference/images/#different-images-for-dark-light-mode), so it would be possible to have a dark and light version of the images. If you feel like contributing new diagrams in dark and light mode, I can definitely add the to the PR though! |
Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
… are now migrated. With all the interlinking (or at least as much as possible). Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
… directive Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
…orce a re-build of configuring_rez. Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
* Stop using autosectionlabel. It's just too complicated and not lexible enough. Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
…nce on RTD... Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
365677a
to
485a57c
Compare
…S class Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
@davidlatwe I made an attempt at changing the images/diagrams using CSS. They now render properly when viewing in dark mode. It's not perfect, but it avoids having to deal with duplicating the diagrams for each theme. Let me know what you think. |
Thanks @JeanChristopheMorinPerso ! I noticed this, the images were not inverted when the theme is set to respect system preference. (My system has set to dark) But I suppose that should be fixed by adding @media (prefers-color-scheme: dark)
body[data-theme=dark] .rez-diagram {
...
} Anyway, I like this solution 👍🏼 |
Signed-off-by: Jean-Christophe Morin <[email protected]>
Alright, I made the change @davidlatwe. I tested all modes (manual overrides, OS overrides, etc) and everything seems to be working now. |
Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
|
@davidlatwe I integrated your commit and the CLA and DCO checks are failing. I see two ways to fix this:
Do you have a preference? |
This is a reply for the Slack chat https://academysoftwarefdn.slack.com/archives/C0321B828FM/p1693697597478139 Feedback (My 2 cents)Is it readable?You bet. 👍🏼 Are you able to search and find what you need (for example, try searching for settings, environment variables, etc)Yes, but not perfect.🤔 When I was trying to search Same for The top 3 search results were Python API entries, which I think they are too advance for most cases. Secondly, when you click one of the results, the page doesn't scroll to the expected paragraph, it only brings you to that page. Is the table of content of the left side clear and intuitive (by that I mean the grouping and ordering, etc)?There should have a "Resolving Packages" page between "Building Packages" and "Context" page. Perhaps we should breakdown "Basic Concepts" into smaller chunks? What do you think of configuration settings, is it easy to read and understand?It's good that the doc also mentioned the equivalent environment variable, but would be better if we can have those env var displayed with different color, e.g. gray. Same for package attributes and package commands objects.These are awesome! So much better with typing and example. |
Didn't notice that! I just clicked the link from that EasyCLA and signed it, so all should be good? Both options work for me but since I have CLA signed, option 1 would be better I guess? 🤔 |
Co-authored-by: Jean-Christophe Morin <[email protected]> Signed-off-by: David Lai <[email protected]>
Signed-off-by: Jean-Christophe Morin <[email protected]>
b7c8301
to
3321226
Compare
Alright, DCO is fixed. |
Thanks for the feedback (and the help too :))!
Yeah, I saw that too. By default RTD indexes everything in ElasticSearch and they hijack the search bar to read from ElasticSearch (see https://docs.readthedocs.io/en/stable/server-side-search/index.html). But for whatever reason it doesn't seem to be the case right now. I'm guessing it's because we haven't released the docs to the default version. They probably don't index all commits coming for PRs (because it would obviously be cost and resource prohibitive). I'm crossing my fingers that it'll improve once we merge this in master.
Like I said, I'm guessing this is related to the fact that the PR isn't indexed in ElasticSearch. As for the Python API stuff, we could de-prioritize the Python API using https://docs.readthedocs.io/en/stable/config-file/v2.html#search-ranking. In fact I tried it and it wasn't having any effect (again probably because they don't index PR builds).
Indeed. The current "Basic Concepts" page is annoying me (and I never liked it). It mixes concepts with implementation details, and other stuff like tutorials (resolving an environment). I was hoping that we could review all this in a second phase though. I interpret your reply as "the ordering and grouping is fine but we should split some pages and re-group things", is that correct?
Thanks! It's been annoying me too. I actually spent a day trying to improve this without involving CSS and couldn't find a solution that satisfied me. I kind of know what I want, but I'm not sure how simple it would be to implement and would require quite a bit of custom Sphinx code (I think), and I don't even know if what I want is doable. And I already have 350 lines of code in my custom sphinx extension... I think I'll open an issue on the Sphinx repo to ask for help. |
…is will give more vertical space to the content in the sidebar. Signed-off-by: Jean-Christophe Morin <[email protected]>
1eb29e4
to
5175fb2
Compare
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 a huge step forward and my vote is to get this merged asap and make it available to a wider audience. We can then start iterating and further improving! Thanks a lot @JeanChristopheMorinPerso !
f94f339
into
AcademySoftwareFoundation:master
Closes #1292 (at least partially). Also relates to #1277.
This PR converts our GitHub wiki to Sphinx. It will be automatically built by ReadTheDocs and each PR will be built and will have a preview (see the actions on the PR for the link of the preview).
Preview link: https://rez--1522.org.readthedocs.build/en/1522/
Note that this is almost a dumb conversion, in the sense that there isn't new documentation. Changes are:
*_JSON
variables.There is a few pages that were left out:
The rez-pip docs, because the new rez-pip2 is coming soon.I converted it.the CLI docs, because I felt they weren't that useful. To be useful, it would require to use sphinx directives for proper cross-referencing in the docs. This would need some custom code in theThe CLI docs are now automatically generated.conf.py
file.I could probably add the glossary and the rez-pip docs if others feel like they are important enough.
As it is right now, I think we could try it and see how it goes. I personally think that's it's already a good improvement over what we have.
TODO:
wiki
directory now or in a seperate PR.wiki
workflow if we remove thewiki
directory.wiki
directory, disable the wiki entirely on the repo after the merge.