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

Add anchors to headers in LiveScript docs #734

Open
raine opened this issue May 26, 2015 · 7 comments
Open

Add anchors to headers in LiveScript docs #734

raine opened this issue May 26, 2015 · 7 comments

Comments

@raine
Copy link
Contributor

raine commented May 26, 2015

It would be great if you could link to h3's on http://livescript.net

@raine raine changed the title Add anchors to headers in LiveScript docs. Add anchors to headers in LiveScript docs May 26, 2015
@vendethiel
Copy link
Contributor

Definitely! 👍

@dead-claudia
Copy link
Contributor

@raine Here's an idea: make a PR. The site is in the gh-pages branch.

@phanimahesh
Copy link

Is there a separate source from which it is built, or do we have to edit raw html?

@gkz
Copy link
Owner

gkz commented Jun 17, 2015

raw html

@phanimahesh
Copy link

Both the styles: <a name="anchor"></a> and <h3 id="anchor"> are being used on the page currently. @gkz: Do you have any preference, and if yes, should I clean up to have consistency?

How do we display something in the UI from where users can "get" the anchors? May be a tiny link icon next to h3s and other anchors on hover? Including everything in the navigation may be an overkill.

Also, isn't writing, editing and maintaining raw html a little tedious and error-prone? IMO, atleast the index should be autogenerated, and/or a pseudo-test to detect mistakes like adding links without corresponding targets, CSS rules that match no items, etc should be included. Would a PR be acceptable along those lines?

@raine
Copy link
Contributor Author

raine commented Jun 18, 2015

How do we display something in the UI from where users can "get" the anchors?

Github style link icons on hover would work great.

@phanimahesh
Copy link

That was what I was suggesting. Will try that out for now, and we can choose whichever one looks best from all proposed alternates.

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

No branches or pull requests

5 participants