-
Notifications
You must be signed in to change notification settings - Fork 112
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
Adjust use of GetDefaultOpenOptions in PlainText quickrecipes #19829
Comments
I'm pretty sure I introduced that and there is a comment in
This is to ensure that each block of code starts from a fresh/clean copy of the options instead of having to constant re-define them from block to block. Now, you've identified a big problem...the code appearing in the docs then doesn't look as it should. So, this can be corrected by first copying the method pointer,
Then everywhere in the file replace This is some of the gymnastics involved in including code in our docs that actually also gets run and passes its testing. But, I think it is worth doing too. In this case each example block should stand on its own in the documentation and not have remnents having to do with undoing some of the effects from other blocks. |
Didn't this get addressed here: #19663 |
I am wondering where that fix went |
It is committed on That said, I much prefer the solution I proposed here because it results in the code blocks appearing exactly as they would and removes the need for any commentary to explain it. Maybe I should take this one? |
@JustinPrivitera can you go to readthedocs.org and register for a free account there? Then, I can add you to the VisIt documentation generation project. |
ok will do. The URL that Eric sent with the bad docs is from stable, the develop docs are fine. What are the "stable" docs and how do you get to them? How would users get to them? |
I made an account with the username |
I sent you an invite for the VisIt project there. I have no idea what |
So regardless of it we go with your solution (which we probably should) or not, the problem will still remain that your fix will go on develop, and stable will stay what it is. I don't understand why stable exists nor how you get there without manually choosing it when looking at the docs. Perhaps @brugger1 can shed some light. |
yes, but hiding |
I see. So next time we do a major release, stable will get all the changes we've added to develop. |
To the original point of this ticket, @brugger1's concern has already been addressed here: #19669 To @markcmiller86's suggestion, it wouldn't be a bad idea to make changes such that things were even clearer in the docs. |
I personally find it a bit onerous to have to two branch creations, a cherry-pick or a patch, and two pull requests for documentation updates. So, my desire is to do documentation work in just one place. That means I have never bothered to use |
I want to consult with the experts. Cyrus runs docs for multiple projects and might have more answers. Eric may have more info (?). Maybe we discuss tomorrow morning? |
discussion results here: #19835 |
I was looking at the Python code example in PlainText file format section of the Getting Data into VisIt chapter and found what I that was incorrect code.
On further investigation, I found it was referencing a snippet of code from our test suite so it must work. The issue is that the function to get the file open options is
GetDefaultFileOpenOptions
, but the example code usedGetDefaultOpenOptions
. It turns out the test suite code defines aGetDefaultOpenOptions
that callsGetDefaultFileOpenOptions
. Someone viewing that example would never know that and if they tried to use the code it wouldn't work.The text was updated successfully, but these errors were encountered: