-
Notifications
You must be signed in to change notification settings - Fork 3
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
RTD: Incorporation of Howto files #188
Comments
Autodoc of the howto is not what we had in mind. What we are doing is including the file itself. |
Then a further question. Does the code box support a copy function? Currently it is not really handy to take over the source code into my local ide. |
Hi Detlef, did you mistook the placement of the arrow? The picture you sent points the arrow of the Logging docstring to the Basic Function how to description. If you're saying about a simple click to copy functionality, there should be some third party extensions. |
This isn't as straightforward as I thought it would be since the file name have spaces and parentheses. The file itself will also be run during the build process of the html. |
You are right, the arrow is too long. The question is whether it is possible to take over the howto description(s) from the source code automatically. |
That's a really nice solution. Could you please take over it? |
It is possible but it doesn't look good. We have to manually import the files one by one too. It's basically copy pasting the description one by one. The only advantage is that if the description is changed, which I don't think happens that often. Personally, I'd say it's better to just type in the thing manually.
Yes, I'll take care of it tomorrow. |
Agreed.
Thx! |
Before building the documentation, please do pip install sphinx-copybutton. |
The copy button works fine!! Question: you took over the descriptions manually, right? I am not sure whether this is really necessary. But for the moment please keep it as it is. Then the menu item texts: I would prefer to take over the module name in the code (line 4) like "Howto 08 - (RL) Run own agents with petting zoo environment". We just have to make the numbers unique and maybe with 3 digits. Question: does RTD support quickinfos in the menu? My vision: you move the cursor over a howto menu entry and then a quickinfo pops up with the description. Could you please check this? Thx! |
Yes, I was questioning myself about its necessity too.
I can change it quickly, I have a question about the howto on the GT module though, they start from 6. I think it's because they were in the same module as the RL howtos previously. Should I leave it like that ?
This is the closest that I found, but I don't think this is what you want either. https://github.com/readthedocs/sphinx-hoverxref |
For the moment: yes.
If I understand it right this functionality is not possible on menu items on the left, correct? Then it doesn't help us here. But: good to know about it... |
Yes, it doesn't allow that. That is already in the realms of the theme itself and they don't have it as far as I know. |
Hi William,
The goal is that we create a new file based on this template and import it in the rtd menu structure. |
This template that you're talking about, it's an rst template instead of the code template, right? As in, we are planning to enrich the howto code with informations in the RTD. |
Yep. Creating a new howto means then: create the py module and a related copy from this template. Fill the rst file and include it in our menu. Then someone else reviews it by following the rtd description. |
Question: the descriptions of the howtos above the code box was taken over manually, right? |
Yes manually. I will restructure the whole submenus so that they are contained by themselves. |
Maybe it's better for the moment to work out one example. And if we found the best way to describe/present it then we can take over the necessary things for the rest of it. |
Good idea. Contribution is anyway something to work out. I would also like to provide a step by step docu of how to "donate" an environment or policy. |
@rizkydiprasetya @detlefarend @steveyuwono |
Hi @rizkydiprasetya, could you please check whether there is still something to do for Howto 20? The related task in the description is not yet ticked on. Thank you! |
Extensions of Appendix 1 as follows:
Basic Functions, Reinforcement Learning, Game Theory, UI Framework SciUI
To find the best way to document it. The following things should be possible/available:
The text was updated successfully, but these errors were encountered: