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
Fix links in docs to work while browsing on GitHub and on hubot.github.com #916
Comments
I can't imagine any clean workaround for this. In That's all I got. 😞 Maybe we can/should also import the content (sans history) into |
Could we make the permalinks have a .md? That is, /docs/scripting.md instead of /docs/scripting/index.html like it is now. I wonder if that would be correctly served up as html or not once generated... Or maybe /docs/scripting.md/index.html. That way, links to /docs/scripting.md would work, albeit with a redirect in there. |
I don't think that will work. Since those links are just href attributes in the HTML, Jekyll doesn't know to convert them to anything.
That one I have no idea if it will work, although I'm not sure why it even would? |
Surprisingly, it totally does. At least, in development it works. |
Could really use some help on this. Seems like we get a PR to 'fix' individual pages every few days, and it's really annoying to close them without a path to resolution. |
I'd suggest linking to them externally and having a single source of truth. Perhaps providing redirect pages for the old links that don't work? Trying to browse a Jekyll site (with valid links) on both GitHub and the rendered site doesn't make sense. If just the source was sufficient, you probably wouldn't have chosen to use Jekyll. 😃 Do you have a CONTRIBUTING.md? Maybe if that contained instructions? Unfortunately, it's not that easy if people expect internal and external links to work like a charm. Here, it's all about managing expectations. |
What's the value of equally supporting the ability to browse the docs via GitHub and via the documentation site? Sounds like a lot of headache, and suspect the branded pages version could be of more value to end users? Curious your reasoning here. |
@technicalpickles talked about this briefly in the original write-up:
It's also better to provide the reading experience which the user feels most comfortable with. I personally do not find it problematic to support both systems. We have a plan in place, at least, to achieve the goal already. |
It happened quietly, but the docs/ directory is now used to power hubot.github.com. Part of that was changing links to point to like /docs/scripting/ instead of docs/scripting.md. On the downside, we now have broken links if you browse https://github.com/github/hubot/tree/master/docs . We can make sure the links all work inconsistently, but the documentation has lived in the repository for so long, people link to them directly.
Since then, we've had a ton of PRs to fix the link the link, and I have to explain why this is. I expect to see more of them 😓
So, let's figure out a way to make them work in both. This is complicated by hubot.github.com being a separate private repo for historical reasons.
cc @jglovier @gjtorikian @parkr @benbalter since we've talked about this at one point or another
The text was updated successfully, but these errors were encountered: