-
Notifications
You must be signed in to change notification settings - Fork 46
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
Include a link to the CF website within the conventions document #383
Comments
I wonder whether any of those at the hackathon have an opinion on this proposal, which would be very easy to implement: to include a link to the CF website within the conventions document. The suggested text is
|
Where they are mentioned in Jonathan's proposed text, I would include specific links to "controlled vocabularies" (https://cfconventions.org/Data/cf-standard-names/current/build/cf-standard-name-table.html), forums for questions and proposals ( https://cfconventions.org/discussion.html), and software (???). A couple of related tweaks to consider, which I think would make it easier to navigate:
|
Dear Karl @taylor13 Of course you're right that we could include links directly to controlled vocabularies etc. within the CF document. However, my proposal is only to link Best wishes Jonathan |
We need at least one link from the convention document to the convention website (hopefully a URL that will not change in the near future, and has been paid in advance). And then make sure all the supporting information/documents can be easily found from the website homepage If possible, we could also have the same paragraph (with the link) at the very end of the document (maybe a footer of the last page), because the obvious place to look for a link is at the top and/or the end of a document |
@JonathanGregory, I accept your justification for omitting links in the obvious places. And I agree with you and @jypeter, we should make every effort to improve the links from the main page to supporting information/documents. |
Am I correct in interpreting the views expressed in the comments that there is acceptance for including a (one) link to the main web page NetCDF Climate and Forecast (CF) Metadata ConventionsBrian Eaton Jonathan Gregory Bob Drach Karl Taylor Steve Hankin Jon Blower John Caron Rich Signell Phil .... Table of Contents.... The text surrounding the web page link is of course only tentative, please feel free improve. |
Hm, by pure chance I came across the Preface, which already has a link to the home page and some surrounding text. If this is considered sufficient then this issue can be closed (as is evident, personally I do not think that it is the most obvious place to look for a home page link, but I will bow to other views). |
Well spotted, @larsbarring. As you say, it's not prominent enough. I wonder if we should put the contents of the "preface" before the table of contents instead of where it is now, so it appears just after the version number and list of authors. What do you think? That is essentially what you suggested before. |
I had never noticed this Preface section and I find it a bit confusing, both in the HTML and pdf part of the documentation It is not really a preface (the abstract is the preface!), is it? It actually describes the content of the CF web site, for somebody who would have access only to the pdf version of the documentation, or somebody browsing the HTML version of the documentation who would not be able to navigate back to the home page I think it would make more sense, if we keep this section, to rename Preface to CF convention web site and possibly change its content to something like
And I would put Revision history
And I would anyway keep the link to the website below the version number, on the first page, as suggested by Lars |
I think that we are discussing two rather separate things here, just because they happen to coexist in the
Regarding (1), I think that moving all of the Regarding (2), I think that the revision history itself is located all right now, at the end of the document. Ideally I think that it should be located in Appendix G, where it should be according to the TOC. But this might not be possible, or difficult using the automatic document build process. Based on this I suggest that we delete the EDIT: Added boldface "not" |
Sounds good, thanks! Especially with the Revision history already being in the document (whether it is in Appendix G or at the end of the document) |
Dear Lars I agree the revision history is in the right place, at the end of the document. That is where we decided to put it when we changed to asciidoc. It used to be an appendix. We should change the title and doc entry of Appendix G to "(empty)" or something like that. We kept it, even though it has no content except for the notice that you should look at the end, so that subsequent appendices did not have to change their letter. I agree that it would be fine to delete the Preface and put a one-line statement about the home page to precede the table of contents. Best wishes Jonathan |
Thanks @jypeter and @JonathanGregory, I will prepare a PR. |
After closer inspection I will not create a PR myself because the |
@jypeter @larsbarring For the URL itself, it is very much best practice these days to prefer the https version i.e.
|
I have just created a (draft) PR. The formatting/layout is not ideal but this is as far as I manage without any detailed knowledge of AsciiDoc. I would have preferred to have no section heading and a smaller font size. Moreover, in the pdf version this small section ends up on a separate page instead of at the bottom of the front page. |
Dear @larsbarring Thanks for working on this. After some investigation of the asciidoc documentation, I wonder whether this would match your intentions a bit better:
This puts "See https://cfconventions.org/ for further information" on the same line as the version. I've shortened this so that it fits into the line in both HTML and PDF. Ideally, we would like to make it longer and on its own line. I was hoping there might be a way to embed a newline at the start of the revremark, but I can't work out the syntax (if there is one) for enabling character replacements in the revremark, and I don't know if there is a character which would produce a newline anyway---perhaps Jonathan |
Thanks @JonathanGregory
Irrespective of which alternative, one drawback is that the link is not "live". For the web version it is not much of a problem as it is not difficult to find the right link in the browser address line. For the pdf version it is however more of an issue. The solution I found was to modify the default running footer line in the pdf. I tried to hack into the theme file in the repo, but it turned out that it is not in use. And when I tried using it there were warnings about references to old/deprecated styles and what not. Thus I removed it and instead I copied the default theme file and changed the footer to include the same text. And now the links become "live" in the footer. NOTE to the Information Management and Support Team:
(the [relative] path the the theme file might have to be changed) |
Dear @larsbarring This means the CF website URL will appear at the bottom of every page in the PDF - is that right? That's clever. Does the HTML version have the footer too? Would it be possible and useful to include the version number in the footer as well using Best wishes Jonathan |
Regarding pdf here is a screenshot The html version do not have the "bottom-of-page" concept, so I think that it is not possible/relevant. In principle we could include the version in the footer. Or, possibly we could create a running header including the title and version. But a key thing here is that this is implemented in the github workflow for creating/publishing the documents. |
Dear @larsbarring In view of this comment in the Asciidoctor GitHub, I wonder whether the link on the title page would be rendered as "live" in the PDF if it was prefixed with Best wishes Jonathan |
And here is a version with running hreader and running footer: I could not get <br><span id="revremark">See https://cfconventions.org for further information</span> could be automagically changed (monkey-patched) in the github workflow after creation to read <br><span id="revremark">See <a href="https://cfconventions.org" target="_blank">https://cfconventions.org</a> for further information</a></span> |
I like the header and footer! Thanks. |
So do I. We can now find the requested information everywhere! |
Thanks @JonathanGregory and @jypeter. Now it is up to the Information Management and Support Team:
(the [relative] path the the theme file might have to be changed) Finally, when I ran the $ asciidoctor-pdf --verbose ${FINAL_TAG} -d book --theme ./default-theme-with-footer.yml --trace cf-conventions.adoc
asciidoctor: INFO: possible invalid reference: example_interpolation_of_cell_boundaries
asciidoctor: ERROR: the table cell on page 198 has been truncated; Asciidoctor PDF does not support table cell content that exceeds the height of a single page
asciidoctor: INFO: possible invalid reference: dimensionless-v-coord
asciidoctor: INFO: possible invalid reference: preface I did not look into these, but it might be worthwhile for someone more involved with those parts of the conventions text. |
PS. I think that someone from the Information Management and Support Team should merge the associated PR #464 to make sure that the required changes are made in the github workflow. Thanks, |
Many thanks @davidhassell for taking care of the github workflow and other details in the PR #464! I think that the it is ready to be merged, but perhaps someone else shoul have a look and approve (or comment) before. |
Hi Lars, I just need to to submit my change - I'll let you know when it's ready to merge |
Oh - I see that my change already is in (not had coffee yet, this morning :)). I agree that this is ready to merge! |
Hello, I was wondering why the new
Was that deliberate? |
I was trying to modify the old theme file, but eventually when I "got it working" the result was an error message that some of the ttf files were missing. So I went to the asciidoctor repo and found a new default theme file |
Hi Lars, that makes sense, thanks. Were those warning coming from the GitHub actions, or your local install? I don't get such warnings with my local setup. I guess that GitHub action are OK with it, because it's been there for ages (but perhaps we've been ignoring the warnings?). The reason I spotted this is because the presence of that block affects how the bare |
The warnings/errors came from my local install, and I know from a totally different context that it can be very easy to miss at least warnings generated in the workflow. The comment was more a heads up than a claim that something really is wrong. I have very little experience or insight in asciidoc[tor], but given that, was the old theme file actually used at all? When I tested adding the footer nothing happened at all until I added the But that was my local install, perhaps the theme file is activated through some other mechanism in the github workflow? In that case we should keep the old one and just add the parts specifically dealing with the header and footer. |
The last few comments, which were positive, regarding layout and content of this change were on October 17. Subsequent comments relates to the technical implementation. Counting three weeks from 17 October, I suggest that the associated PR #464 could be merged on November 7 (which happens to be today ... :-) |
Title
Include a link to the CF website within the conventions document
Moderator
None yet
Moderator Status Review
None yet
Benefits
An obvious link will inform anyone about the CF website who doesn't know of it. This may particularly help someone who has only the PDF. It will also provide a convenient way to navigate from the document (back) to the website. This proposal arises from a comment on the discuss issue #152 by @jypeter.
Brief proposal overview
Include a new paragraph just below the list of authors and version number, on the first page of the PDF, and above the horizontal rule and table of contents in the HTML, as follows:
The latest release, current draft and all previous versions of this document can be found on the CF website at
cfconventions.org
. Please visit the website for the standard name table and other controlled vocabularies, forums for questions and proposals about the conventions, a list of software for working with CF, and other resources.Associated pull request
#464
The text was updated successfully, but these errors were encountered: