Skip to content

Replace <literal> nodes with <constant> for constants #2310

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phansys
Copy link
Contributor

@phansys phansys commented Feb 18, 2023

172 occurrences were replaced from <literal>([A-Za-z0-9_]+)::([A-Z0-9_\*]+)</literal> to <constant>$1::$2</constant>.

See #2306 (comment).

TODO:

@phansys phansys marked this pull request as ready for review February 18, 2023 12:19
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tackling this, this makes sense.

However, I'd wait a bit to check with translations as this does do some busy work for them (and as I'm being on the French translation and the constant tag does not generates links it would be nice that I can tackle more urgent stuff)

@Girgias
Copy link
Member

Girgias commented Feb 20, 2023

It would make sense to coordinate this with #1963 also to not repeat the work multiple times.

@phansys
Copy link
Contributor Author

phansys commented Feb 20, 2023

Great! Let me inherit these changes here and mark the other PR in a TO-DO list in order to make the dependency explicit.

@phansys phansys force-pushed the constants branch 2 times, most recently from b950b26 to bae3592 Compare February 20, 2023 16:58
@phansys phansys requested a review from Girgias February 20, 2023 19:01
@Girgias Girgias added the QA Quality Assurance label Mar 9, 2023
@phansys phansys force-pushed the constants branch 2 times, most recently from b8da203 to 21eb6eb Compare August 25, 2023 02:36
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall OK but I'm going to wait to merge this as this is a QA change.

Also it would be nice to fix the whitespaces in another PR that one can skip-revcheck as those clutter the PR.

@Girgias Girgias added this to the QA improvements milestone Aug 30, 2023
@phansys
Copy link
Contributor Author

phansys commented Aug 31, 2023

Also it would be nice to fix the whitespaces in another PR that one can skip-revcheck as those clutter the PR.

Whitespace changes were reverted 👍

@Girgias
Copy link
Member

Girgias commented Apr 17, 2024

Sorry for the delay in this, could you rebase the PR on master?

@phansys
Copy link
Contributor Author

phansys commented Apr 17, 2024

Rebased.

@haszi
Copy link
Contributor

haszi commented Apr 17, 2024

There are a few constants with replaceable parts that use _XXX instead of _*. Do you think it would make sense to add those to this PR?

These are the ones I've found in doc-en:

CURL_VERSION_XXX
CURLM_XXX
CURLOPT_XXX
IMAGETYPE_XXX
PNG_FILTER_XXX
SOAP_PERSISTENCE_XXX
TIDY_TAG_XXX
VT_XXX

@phansys
Copy link
Contributor Author

phansys commented Apr 17, 2024

I think these are missing cases @haszi. Thank you for pointing.
Let me check if I can find a consistent way to catch them and I'll update the PR.

@phansys
Copy link
Contributor Author

phansys commented Apr 17, 2024

The cases using the _XXX suffix were addressed.

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure the runkit changes are appropriate, nor the Enumeration docs as those refer to inline examples, maybe using code is more appropriate but I need to have a think about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA Quality Assurance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants