Skip to content
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

Relative Linking #347

Open
jonniebigodes opened this issue Jul 20, 2020 · 1 comment
Open

Relative Linking #347

jonniebigodes opened this issue Jul 20, 2020 · 1 comment

Comments

@jonniebigodes
Copy link
Collaborator

This issue addresses how we could implement relative linking in the tutorials.

As of now, we'll need to add the full url for navigation from chapter to chapter. As Gatsby and Markdown out of the box won't allow relative linking between chapters and headings.

Adding such relative linking will default to the top of the page. This was tested with a development build with gatsby develop and a production build with a emulated server, using gatsby build && gatsby serve.

Once we have a little more time i'll circle back to this and implement what was started with #299.

At that time and per @domyen feedback some additional work was required for it to go through, not only visually, but technically as well. As some of the heading links need to be "sanitized" for special characters, for instance in my native language with the usage of (ç, ã, ).

We could go with adding the gatsby-remark-autolink-headers plugin and create a nice way for the headings to be used and have a good and efficient way of displaying the content and allowing linking.

Feel free to provide feedback.

@tmeasday
Copy link
Member

gatsby-remark-autolink-headers sounds like an excellent solution @jonniebigodes. Thanks for looking into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants