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
8273497: Building.md should link to testing md file rather than html #5417
Conversation
|
@DanHeidinga The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
When updating the .md doc files, you must also run the make target to generate the corresponding .html files and submit them together. In this case, changing the link to .md will change both the building.md and building.html file. I'm guessing that the original author assumed that the only file that would be browsed online was the html file, so it made sense to assume links to only apply to html files. This was back when we hosted the source on Mercurial. These days, online browsing of .md files is standard practice on sites like Github, so we may need to rethink this. I don't think just changing the link here is the correct action. I see these potential options:
I'm thinking 2 may be the preferred action, but would like more input from others. It would certainly make maintaining these files simpler as we no longer require the correct pandoc version present to update them. |
+1. Let's not do this change yet.
(2) looks appealing for me, for a different reason: if you regenerate We can still rewire |
It still leaves the original question though - should the
I looked for links to the HTML files and found some on the build group's page [1] and in the "How to contribute" page [2]. Overall usage is inconsistent as the markdown files are also linked from related pages [3]. Are both versions actually needed? [1] http://openjdk.java.net/groups/build/ |
Mailing list message from erik.joelsson at oracle.com on build-dev: On 2021-09-08 10:44, Dan Heidinga wrote:
It does indeed. We have a long history have keeping generated files in
It was intended as implicit in option 2 that the links should then all
I don't know of anyone uploading these .html files anywhere. As I This is basically something we haven't quite cleaned up since moving to /Erik |
Yes, it does leave the original question unanswered, apologies. I would suggest to change all At the same time, I have no problems with this tiny PR as well. |
Mailing list message from Magnus Ihse Bursie on build-dev: Ok, let me shed some light on this discussion. :-) First, as Erik assumed, the link was created only for the html version, This premise has changed with the advent of GitHub, and more advanced Secondly, the generated html file is by no means dead! It is still the I made a lot of effort some years ago to purge all sites from different The problem here is that the markdown parser used by Github is quite I do agree though that we should add a link to the markdown version as Since changes in building.md requires running pandoc using a make /Magnus On 2021-09-08 19:44, Dan Heidinga wrote: |
That works for me. It meets my basic requirement to get from the building.md -> testing.md without having to manually modify the url.
That would be appreciated. It saves me from figuring out the right pandoc setup. It does make me wonder though - is the overhead of running pandoc on markdown files for trivial changes like this worth it to provide OpenJDK branded css formatting? Would it be better to just unconditionally link to the markdown for this purpose? I don't know the history around this setup so asking as a new person to the project. |
Mailing list message from Magnus Ihse Bursie on build-dev: On 2021-09-09 14:34, Dan Heidinga wrote:
Ok, I'll do that.
What you're basically saying is "I just want to view the markdown on In addition to this, we have in general been very strict about not tying /Magnus |
Thanks Magnus. The background on the current situation / approach helps a lot. |
Replaced by #5451 |
Discovered while working through the building guide.
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5417/head:pull/5417
$ git checkout pull/5417
Update a local copy of the PR:
$ git checkout pull/5417
$ git pull https://git.openjdk.java.net/jdk pull/5417/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5417
View PR using the GUI difftool:
$ git pr show -t 5417
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5417.diff