-
Notifications
You must be signed in to change notification settings - Fork 97
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
fix asciidoc preview when antora.yml does not specify version #883
fix asciidoc preview when antora.yml does not specify version #883
Conversation
Changed my code to set version to a short hash of the path of the antora.yml. I was getting issues with duplicate versions for components for which the source was distributed across several folders in the repo. Use case for the duplication: monorepo with documentation of individual components that I want to consolidate into a single component with appropriate navigation. |
According to the documentation the https://docs.antora.org/antora/latest/component-name-and-version/#antora-yml-requirements |
@ggrossetie thanks for taking the time to look into this despite your busy schedule! Yes, that is exactly the case:
|
@alaindresse Left a few comments otherwise 👍🏻 |
One test is failing because we assert that the version is
I don't think we should generate a random value when the version is explicitly
https://docs.antora.org/antora/latest/component-version-key/#key |
@ggrossetie thanks for your comments. |
I ran the tests, using
And did not see any report on the antoraSupport tests. What is the proper way to run the tests ? |
@alaindresse Thanks, could you please run |
Message bundle does not properly load during tests (or at least I don't know how to make them work in tests) but it does not prevent tests from running. So this messages can be safely ignored 😅 |
847d64f
to
c25bad3
Compare
All good 🎉 |
Resolves #882
Currently, if our antora.yml does not specify a version (required to add a fallback for the version in the antora playbook), it is impossible to preview an asciidoc file.
This pull request extends the approach from @leonardopavanrocha in #871, namely setting the version to an empty string when it is not specified in antora.yml.
Note:: I also had to bumb the vscode engine number to test this.