[Reverse String] Clean up approach docs#4226
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
|
@BethanyG, I added another commit, but it isn't showing up. Will it get auto-added when the PR is reopened, or do I need to do some |
Apologies. Just getting to this (busy morning). That is very strange. Did you push your change to your fork? That should have been picked up automatically. Also make sure you were on your local branch. I cannot tell you how many times I've made an addition to something and then realized I'd switched branches (😱). But it also might be the PR state. I will reopen and we can check that now. |
🤔 Wonder if there is a way we can test this by (maybe) doing a test approach with a bunch of said links? And then we can update the docs, or propose a change to them. Lemme go dig and see if I can find the Exercism docs in question. The likely path would be to propose the changes on the forum. So:
|
|
Try the push again to see if it shows up now, Otherwise, we have some git-wierdness to deal with. Sorry. |
|
So the reason I want to test this is because there is one scenario where you are linking to something in the same doc, and one where you are linking to something in a different doc. IIRC, there was some sort of fix needed for Anchor Links - and I haven't found it yet. So there might be two different forms. Let me dig a bit. |
|
So this is the PR in question, and this is now my question: Since this says "automatically", is this part of processing, and so we shouldn't put the |
|
Looking at it closer, it does appear that we need to do that for the Anchor Links (prepend |
|
Should I start a thread on the forum about this then? |
|
Yeah - would you? Thank you 💙. Make sure to link to that PR, as well as the approach and what you saw in the JS terminal. And maybe ask other maintainers what they've done to link to an Anchor on a page. And I do think the Markdown Spec needs editing, as well and perhaps the Style Guide? I don't wanna bug Erik too much, but this is probably an area where he has more expertise than the rest of us. |
|
HOLD UP! Should have searched the forum better. 😅 This discusses Anchor Links. And here is an additional PR as a fix..... Still doesn't have any explicit documentation, tho. And I think we need some — bot "automatic" (use the copy buttons) and "manual" (prepend |
|
It seems like the "automatic" way only works on the contributing docs (and maybe some other parts of the website), but not on approach docs. |
|
Somewhat of a tangent, but it seems the style guide says:
I have been using it when writing new approaches, but now I realize I missed some of those in the typo patrol... |
Let's start a new issue for Oxford Commas. 😄 And we can loop back and take care of them afterwards (in all the docs where we missed it). That way, we can save the approaches audit from stalling in a recursive loop. 😂 We could also potentially audit both the track docs and the repo docs. But we should do that in its own issue as well. |
BethanyG
left a comment
There was a problem hiding this comment.
Wow. That was a lot of work! Bumping the Rep on this. 😄
I had to work pretty hard to find anything worth requesting change on. And it was sorta a stretch. The only thing I couldn't via suggest was to go back and do a sweep of in-line links, and make sure we use reflinks instead. Buuut. The more I think about it, the more I think we should do a new issue for reflinks, and not weigh this particular fix down with that. 😄
Co-authored-by: BethanyG <BethanyG@users.noreply.github.com>
|
@BethanyG, I'm a little confused as to what the earlier 👎 means... Does the "automatic" way work for you on the approach docs? I tried on both Safari and Firefox, and both times I didn't see any link button when hovering over the area where it should be. |
Sorry! The 👎🏽 was a "BOOO" reaction to the situation — not disagreement. It doesn't work for me either, and should. But we should also have docs about it. THANK YOU btw for opening a forum issue. 😄 |
|
Are we ready to merge? |
|
🤔 I'm conflicted between waiting to get responses on the forum post vs just pushing it and seeing if it works. Thoughts? |
On one hand, it was broken before — don't see how it could be more broken. On the other? A discussion might be good, although I suspect most folx involved would not have encountered the situation, and would have absolutely no idea how to solve it (apart from Aaron and Erik who made the changes in the first place). |
|
I guess it would be better to just merge and test if it works, then. |
|
It seems like it works! (At first I thought that it didn't, but of course it was just a caching issue) |

As discussed here.
Unfortunately, one line of
performance/snippet.mdhad to be cut off to make the table render properly while keeping it within the 8-line limit.Side note: Maybe there should be a doc somewhere that says how to link to headers in pages on the Exercism website? There was one in these docs, but it didn't work. I had to convert invalid characters to hyphens add an "h-" prefix to fix it:
#h-using-map-and-lambbda-with-join-instead-of-a-loop.