-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Tweaking the Datasource guide content conditionals #43884
Tweaking the Datasource guide content conditionals #43884
Conversation
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Michal Maléř <mmaler@redhat.com>
05d5422
to
090917f
Compare
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Michal Maléř <mmaler@redhat.com>
This comment has been minimized.
This comment has been minimized.
All tests and builds work fine, but the GitHub bot preview fails because it tries to load the mentioned snipped, which is not part of the Quarkus repo.
Essentially, I need an exception for the file check that allows it to pass if the file is truly not meant to be used. The file is not supposed to be used because the attribute triggering the condition isn't defined, -> the file isn't required -> The check should be OK since the file that isn't part of Quarkus is not needed and, thus doesn't restrict anything. Here is, just for context, the usage of this snippet in product docs: |
Full stack trace:
|
So, the cause for the exception is That being said:
I would say there is a contradiction between "we follow an upstream first policy" and "I have to include a snippet that exists only in the RHBQ repository". But again, not exactly for me to decide. If it's only that though... can't you just include an empty |
@yrodiere Thank you for the feedback and opinion!
I suggested the above because I thought creating some exceptions would be easier, and I would not add an empty file to the Quarkus repo. |
@yrodiere @gsmet
If you don't like this solution:
|
Signed-off-by: Michal Maléř <mmaler@redhat.com>
Or, we can use the proposal of my second commit. If we accept this, I would kindly ask @gsmet to perform some script magic and translate the following: If tweaking our downstreaming process is "no-go" I can still apply attributes to substitute the differences in the file paths (but I want to minimize my impact on the Quarkus repo and adding things only if necessary). |
Status for workflow
|
🙈 The PR is closed and the preview is expired. |
I discussed this with @rolfedh , and it seems we can handle the translation independently with Rolfe's replacement Python script. |
Sure thing, @MichalMaler. I've created a downstream MR to update our python script that performs simple replacements, here: https://gitlab.cee.redhat.com/quarkus-documentation/quarkus/-/merge_requests/1927 |
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 necessary as downstream extension status is different than the upstream one.
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.
LGTM
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.
I can't say I'm excited about all these slowly becoming more and more present in our doc.
@gsmet we are open to your proposals, we can follow up either here or in the meeting and try whatever you suggest. |
@gsmet Thank you for the merge. I am just trying to do as minimalistic changes to Quarkus docs as possible while keeping the rendered output intacted, but also ensure that reusability of this content is aligned with other policies and standards, too. I agree with @michalvavrik , if there is a better and more clean solution, I am for it. |
This is the tweaking PR for the better reusability of the TLS guide content.
These changes are being made based on QE feedback. CC Georgii Troitskii.
The visualization of the Quarkus TLS guide remains unchanged.
The issue now is that in order to render something correctly in RHBQ, I have to include a snippet that exists only in the RHBQ repository. Since we follow an "Upstream first" policy, I need to mention this include in the Quarkus documentation as well, even though it's wrapped in an
ifdef
condition, ensuring it doesn't affect Quarkus documentation (since the attribute that triggers the condition and the snippet itself are defined only in product repo).Unfortunately, the GitHub docs preview bot fails because it attempts to locate the snippet that doesn’t exist in Quarkus, even though it’s not required.
In my opinion, some changes will need to be made in
io.quarkus.docs.generation.AssembleDownstreamDocumentation
, which was likely written by @gsmet , whom I am kindly asking for advice/opinion/workaround.Fix could be something like: When it is all about loading a file from the
resources/snippets/
folder, ignore it in the check.This is not a blocker, but something that would be great to have.