microsoft / sqldev

Source code for SQL Server and Azure SQL DB developer getting started tutorials: https://www.microsoft.com/en-us/sql-server/developer-get-started/
91 stars 53 forks source link

Link tutorial pages to source files #15

Open ajlam opened 7 years ago

ajlam commented 7 years ago

Consider adding a button/link for each tutorial page & step to the source markdown file.

badersur commented 7 years ago

Hello @ajlam,

I've found this to solve the issue:

{% if page.path %} 
    <a class="sql-footer-link" href="https://github.com/Microsoft/sqldev/blob/master/{{page.path}}">Edit</a> 
{% endif %}

I'm using /blob/master in the link instead of /edit/master because I like to see files before editing & if I'm not logging in I won't be bothered with GitHub's login page!

You're using include statements so we won't be directed always to the intended files (and we'll have to search for these!)

I'm thinking about adding a button to edit the whole page and another button inside these include statements (which i didn't test yet) to edit these sections (which is kinda weird)