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

Make code examples on homepage bookmarkable #285

Merged
merged 1 commit into from
Oct 13, 2018

Conversation

anstkras
Copy link
Contributor

@anstkras anstkras commented Sep 4, 2018

Add lang parameter to the URL

Fixes #277

For short term contributors: we understand that getting your commits well
defined like we require is a hard task and takes some learning. If you
look to help without wanting to contribute long term there's no need
for you to learn this. Just drop us a message and we'll take care of brushing
up your stuff for merge!

Checklist

  • I read the commit guidelines and I've followed
    them.
  • I ran coala over my code locally. (All commits have to pass
    individually.
    It is not sufficient to have "fixup commits" on your PR,
    our bot will still report the issues for the previous commit.) You will
    likely receive a lot of bot comments and build failures if coala does not
    pass on every single commit!

After you submit your pull request, DO NOT click the 'Update Branch' button.
When asked for a rebase, consult coala.io/rebase
instead.

Please consider helping us by reviewing other peoples pull requests as well:

The more you review, the more your score will grow at coala.io and we will
review your PRs faster!

@anstkras
Copy link
Contributor Author

anstkras commented Sep 4, 2018

I'm not sure about scrolling to the code example. Assume that someone chooses some language, scrolls up and than bookmarks the URL. In that case it would be strange if after clicking the bookmarked link the page would scroll to the code example.

Copy link

@sladyn98 sladyn98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -5,7 +5,8 @@ var app = angular.module('coala', ['ngStorage','ngRoute', 'ngSanitize', 'btford.
$locationProvider.hashPrefix('')
$routeProvider.
when('/home', {
template: '<home></home>'
template: '<home></home>',
reloadOnSearch: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing comma.

Copy link
Contributor Author

@anstkras anstkras Sep 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jayvdb , it would not work without this comma

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add a trailing comma here.

@jayvdb
Copy link
Member

jayvdb commented Oct 13, 2018

@gitmate-bot rebase

@jayvdb
Copy link
Member

jayvdb commented Oct 13, 2018

Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently ⚠️

Add lang parameter to the URL

Fixes coala#277
@jayvdb
Copy link
Member

jayvdb commented Oct 13, 2018

Automated rebase with GitMate.io was successful! 🎉

@jayvdb
Copy link
Member

jayvdb commented Oct 13, 2018

ack adbadda

@jayvdb
Copy link
Member

jayvdb commented Oct 13, 2018

@gitmate-bot ff

@jayvdb
Copy link
Member

jayvdb commented Oct 13, 2018

Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently ⚠️

@jayvdb
Copy link
Member

jayvdb commented Oct 13, 2018

Automated fastforward with GitMate.io was successful! 🎉

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

Successfully merging this pull request may close these issues.

Bookmarkable example on homepage
3 participants