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

Section links when clicking on a heading #32

Open
robinrendle opened this issue Sep 29, 2014 · 7 comments
Open

Section links when clicking on a heading #32

robinrendle opened this issue Sep 29, 2014 · 7 comments

Comments

@robinrendle
Copy link

Hey @csswizardry,

It would be neat if you could click on a heading and get a link to that particular section of the docs – sort of like articles on A List Apart.

@csswizardry
Copy link
Owner

A good idea! I shall have to see if there’s a GH Pages-supported Jekyll plugin for that :)

@nenadjelovac
Copy link

@csswizardry Until you find plugin, you can simply do something like this:

<h3 id="section-id"><a href="#section-id">SECTION NAME HERE</a></h3>

Then after a click you can manually copy from address bar.

I needed this soooo many times now when I'm doing someone's code review and want to send them to cssguidelines ;) :D

@oltodo
Copy link

oltodo commented Feb 24, 2015

👍

Sometimes, I try to explain some things to some people based on your CSS guidelines. I'd like to give them a link for access directly to a section. But I'm forced to say something like that :

See http://cssguidelin.es/ at section "Naming UI Components"

@nenadjelovac
Copy link

@oltodo exactly my usecase :) I offered a quickfix above ;)

@jimmynotjim
Copy link

@oltodo the headings are linked from the Table of Contents, I just grab the url from there. A small 🔗 icon with a copy to clipboard script next to headings would be a nice addition.

@oltodo
Copy link

oltodo commented Feb 24, 2015

Thanks @nenadjelovac !

@jimmynotjim That's right for the table of contents, I had not thought about..

@nenadjelovac
Copy link

@jimmynotjim yup, you can use it like that. But why scroll (if you are at the middle of the page in the middle of reading) to the top if you don't have to? #firstWorldProblems :D

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

5 participants