Skip to content

Commit

Permalink
Support configurable branch (#42)
Browse files Browse the repository at this point in the history
* Support configurable branch
Added github_branch parameter to config to support branch name on edit link on editable.html.
* updated version, changelog
  • Loading branch information
bhitney authored Mar 22, 2021
1 parent 7e7b335 commit 57615ce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Critical items to know are:
- changed behaviour

## [master](https://github.com/vsoch/docsy-jekyll/tree/master)
- added support for github_branch (default 'master') in config (0.0.22)
- adding support in footer to icon and link to linkedin url (0.0.21)
- updating repository with copyright notice, google analytics bug fix (0.0.2)
- fixing link to repository in about.md (0.0.19)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.21
0.0.22
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ url: "https://vsoch.github.io" # the base hostname & protocol for your site
repo: "https://github.com/vsoch/docsy-jekyll"
github_user: "vsoch"
github_repo: "docsy-jekyll"
github_branch: "master"

# Optional
twitter: vsoch
Expand Down
2 changes: 1 addition & 1 deletion _includes/editable.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a href="{{ site.repo }}/edit/master/{{ page.path }}" target="_blank"><i class="fa fa-edit fa-fw"></i> Edit this page</a>
<a href="{{ site.repo }}/edit/{{ site.github_branch }}/{{ page.path }}" target="_blank"><i class="fa fa-edit fa-fw"></i> Edit this page</a>
<a href="{{ site.repo }}/issues/new?labels={% if page.editable %}{{ page.editable }}{% else %}question{% endif %}&title=Question:&body=Question on: {{ site.repo }}/tree/master/{{ page.path }}" target="_blank"><i class="fab fa-github fa-fw"></i> Create documentation issue</a>
<a href="{{ site.repo }}/issues/new" target="_blank"><i class="fas fa-tasks fa-fw"></i> Create project issue</a>
<!-- this will parse through the header fields and add a button to open
Expand Down

0 comments on commit 57615ce

Please sign in to comment.