-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
[doc] Use "param" instead of "code" to refer to parameters #2 #64164
Conversation
There seems to be a bug in make_rst.py. In TileMap.xml, if we convert Edit: It is only when all three of the params in this description are converted that we get this error... if we don't convert one of them it works properly. |
@asmaloney Can it be because there are several cases of |
lol - I'm using a regex find, and didn't even see that. Cross-eyed looking at all these. Seems like something make_rst.py could catch & report. Can these tag be nested? |
Aside (and maybe not the right place for this): Would it be reasonable to add a check in the ci for docs-only changes like this, skip the builds, and only do the static check? Or is it possible that the results of changing the docs can break a build? The way I do it in my own repos is look for a special code ("[skip ci]") in the commit message and skip running the CI build steps. In this case maybe "[static checks only]" or "[skip build]" would be useful. This would save a lot of time working on the docs and a lot of extra building on the GitHub side. Save the environment! |
Yeah, no idea why it doesn't complain about the issue as is, but starts to complain when you make this edit there. I'll see if we can add a check for unrecognized tags to catch this kind of typos.
Well, some can, and there is a counter in the logic there to make sure we properly handle that. But I guess it doesn't work perfectly.
Yes, I think that would be reasonable for some of the edits. I believe we discussed this before, but I don't remember if there was a reason not to do this, or if we agreed that it was good but never implemented it. Feel free to bring this on Rocket.Chat, if you want and more importantly know how to do this. Technically, changes to the XML can break something in the built-in documentation, but I don't think we test |
I downloaded and signed up to Rocket.Chat, but it's really unusable for me. I can't use dark modes because I get "eyeball burn-in" and headaches. I haven't found a way to change to a light theme. |
Unfortunately, I think the theme is enforced by server on Rocket.Chat. If you use it in browser, you may be able to override it with some extensions that can enforce light mode. I figured why the So technically, it just successfully parses this, as it doesn't see it as a closing tag, but finds one later. Not sure if there is a good way to improve the parser here. |
When you enter a Or does it really need to allow this?:
|
You can toggle between dark mode and light mode normally. At least on the mobile app on Android it's configurable. Can't check desktop right now but there should be a icon for it (possibly themed like a sun or light bulb). |
Thanks @akien-mga - I'm not seeing it anywhere in the downloaded one (or online, which I assume is the same codebase). Nothing in the settings and just have these in the upper-right (which look to be just server-related things): I'll look around a bit more later, but unfortunately this is a showstopper for me. |
The custom CSS is hardcoded, so you can't switch back to the default (light) theme. I would have preferred to use
Can't you increase the font size or reduce screen brightness? |
That's how it's written, but I'm not sure. I'll tally the cases of |
It's actually not the brightness - it's the white text on black background. I get a "burn-in" effect with it (not sure how else to describe it). It's fine - I'll skip it for now. |
So there is a good reason to support the syntax, so instead I added a warning, and not an error. I've also refactored the Since it fixes the PS. If you want to review my changes, btw, that'd be really great! Not many people maintain this part of our project, so extra eyes are appreciated. |
👍 Great stuff.
I fixed the two cases of [/coords] and forced-pushed the changes ☝️ - would it still conflict? Either way rebasing is no problem! |
Yeah, if the other PR is merged first, then you're going to end up with a changeset that changes the same lines. And the same for me, if this one is merged first. It shouldn't be a big deal, I just wanted to warn ahead of time :) |
Ah, yeah I see now - I'm looking at your changes. |
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 good. Added several adjustments. I'll push them myself in a minute. There seems to be a mixup in Theme.xml that I want to fix here, and I can't do it with just review comments.
Thanks! |
Also fixes the
set_font_size
description in Theme.xml.One of several commits to fix all of the class XML docs (see #64134).