Skip to content
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

Problems in the github document build process #486

Closed
larsbarring opened this issue Nov 22, 2023 · 7 comments · Fixed by #488
Closed

Problems in the github document build process #486

larsbarring opened this issue Nov 22, 2023 · 7 comments · Fixed by #488
Assignees
Labels
defect Conventions text meaning not as intended, misleading, unclear, has typos, format or language errors

Comments

@larsbarring
Copy link
Contributor

Problems in the github document build process

Moderator

not yet

Requirement Summary

The published conventions documents (html and pdf) have to reflect the content of the source files. This should be fixed before release of version 1.11.

Benefits

All users (and producers) of the CF conventions documents.

Status Quo

The documents do not fully represent the original source (adoc) text.

Associated pull request

non yet

Detailed Proposal

I have observed some errors and warnings issued by asciidoctor and asciidoctor-pdf when building the conventions documents. These should be dealt with so that the documents are as expected from the source *.adoc files.

Technical Proposal Summary

This is just a heads up for a couple of issues that I saw when checking the github CI checks of #475 (see here)

Here is a screenshot of result of the html build
image

The first two warnings relates to internal references (links) are dead and should be fixed.
The third one is because the Preface section is now deleted, while the link is still there in the history as it was in a previous version. This link could be deleted, or, if we really want to fully honour the historical development, the link could perhaps be kept despite it is dead.

And here is the corresponding one for the pdf build
image

Note that when the pdf is built a table cell cannot not overflow to the next page, meaning that the text is truncated. This is a known limitation of asciidoctor-pdf, see https://docs.asciidoctor.org/pdf-converter/latest/features/#limitations.. If I quickly (not really knowing what the text is about) scan the build it seems that the text on pdf page 204 is truncated. It ends with:

...spanned by va and vb, the vector representations of the two tie points,
and expressed as a fraction of the length of A x B.

But in the html version the text continues (no line breaks as it is html):

...spanned by va and vb, the vector representations of the two tie points, and expressed as a fraction of the length of A x B.

For interpolation in three-dimensional cartesian coordinates as the coefficients cv = (cv.x, cv.y, cv.z), expressing the offset components along the three-dimensional cartesian axes X, Y and Z respectively.

For interpolation in geographic coordinates latitude and longitude as the coefficients cll = (cll.lat, cll.lon), expressing the offset components along the longitude and latitude directions respectively.

The functions fq() and fw() referenced in the following are defined in Quadratic Interpolation. "

@davidhassell I tentatively assign this to you because I think that you have detailed knowledge of Appendix J. Of course, feel free change this.

@larsbarring larsbarring added the defect Conventions text meaning not as intended, misleading, unclear, has typos, format or language errors label Nov 22, 2023
@larsbarring larsbarring added this to the 1.11 milestone Nov 22, 2023
@larsbarring
Copy link
Contributor Author

larsbarring commented Nov 23, 2023

Note that these problems were present before the recent changes to the build process, see e.g. this action: https://github.com/cf-convention/cf-conventions/actions/runs/6319747690

@davidhassell
Copy link
Contributor

Hi @larsbarring - glad to be assigned! I shall have a look.

My first thought on the PDF truncation is to refactor that table (and the four similar others) to not be tables. I think (and recall) that there was nothing functional about the tabular format, it was just a convenient formatting device.

@larsbarring
Copy link
Contributor Author

I think that whatever solution you think is useful, is a good one.

@davidhassell davidhassell mentioned this issue Nov 24, 2023
4 tasks
@davidhassell davidhassell linked a pull request Nov 24, 2023 that will close this issue
4 tasks
@davidhassell
Copy link
Contributor

davidhassell commented Nov 24, 2023

Hi Lars, PR #488 should address all of these problems.

It involves reformatting the tabular structure of part of Appendix J, and simply correcting the invalid internal references.

The new Appendix J can be compared with the old one, and the resulting GitHub action is at https://github.com/cf-convention/cf-conventions/actions/runs/6980590776/job/18996136129.

@larsbarring
Copy link
Contributor Author

Yes, I had a quick look at the changes in the PR --- not anything like checking for typos and the like --- and it looks good. I like the formatting of formula boxes, they are easier to read. And the asciidoctor errors/warnings are gone. So, I would say that this PR is good to go. Thanks David!

@davidhassell
Copy link
Contributor

Thanks, Lars. I guess we can give it a few days gestation, and then merge it just before the release during the week after next. I'll put the 1.11 milestone on the PR so we don't forget.

@davidhassell davidhassell removed this from the 1.11 milestone Nov 27, 2023
@larsbarring
Copy link
Contributor Author

Closed as completed via #488

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Conventions text meaning not as intended, misleading, unclear, has typos, format or language errors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants