-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Link to more precise "What is Git" page in section 3.1 ("Branches in a Nutshell") #1506
Conversation
(Install step in CI fails, seems unrelated to this PR) |
Huh, these internal links seem broken in the .html and .pdf of the release of this PR: Not sure why, as I've used the same syntax as here and here, eg. @ben @HonkingGoose any idea why this seems to not work? |
OK, found the likely problem: asciidoctor/asciidoctor-epub3#139 Still strange why it works on the other pages anyway |
I've tried comparing what you did with other known working examples by doing a plain-text comparison and trying to think of issues. But cannot actually figure it out, because I cannot get a proper build tool-chain working on my end... 😞 I don't know what causes this issue. So you'll have to wait until @ben or @jnavila can chime in on why this happens. |
Yeah, can't get build toolchain to work locally either (on Windows). Might continue trying on Windows Subsystem for Linux. One difference with my patch versus the other pages is that, coincidentally, in my two edited paragraphs there are in both cases Relevant line from Travis build btw:
|
That does seem to be a new error that was not there before though. |
At a first look there do not seem to be any other paragraphs in the book where a |
You shouldn't use anchor names starting with "_", because these are reserved for automatically generated links. The automatically generated links are made from the text of the title in lower case with spaces converted to underscores, prefixed with an underscore, which happens to be exactly the chosen anchor name. So, I guess, there's a clash in anchor definitions, which leads to no anchor created. Change the anchor name for |
Thanks for chiming in @jnavila! And I learned something new today! 😄 |
For future reference: after testing, it seems like it doesn't matter what the anchor is called (whether it matches the auto ID or not): as long as it starts with an underscore and there's some |
What a weird error. 😕 Let's hope we can get rid of this after bumping us to Asciidoctor 2. And that our improved build system that I'm working on can help catch such error before deploying them to |
Section 3.1, "Branches in a Nutshell" talks about snapshots and hashes, and refers to this page for more info on them. These topics don't appear on that page however. The author is probably referring to section 1.3, "What is Git". This page is from the same chapter as is currently linked, but I think a more precise link would help the casual reader more.
This PR changes the link to point to section 1.3, "What is Git", instead of to the entire chapter, which takes the reader to section 1.1, "About Version Control".
Changes
[[_what_is_git]]
) to section 1.3