Skip to content

Commit 57615ce

Browse files
authored
Support configurable branch (#42)
* Support configurable branch Added github_branch parameter to config to support branch name on edit link on editable.html. * updated version, changelog
1 parent 7e7b335 commit 57615ce

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Critical items to know are:
1414
- changed behaviour
1515

1616
## [master](https://github.com/vsoch/docsy-jekyll/tree/master)
17+
- added support for github_branch (default 'master') in config (0.0.22)
1718
- adding support in footer to icon and link to linkedin url (0.0.21)
1819
- updating repository with copyright notice, google analytics bug fix (0.0.2)
1920
- fixing link to repository in about.md (0.0.19)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.21
1+
0.0.22

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ url: "https://vsoch.github.io" # the base hostname & protocol for your site
3232
repo: "https://github.com/vsoch/docsy-jekyll"
3333
github_user: "vsoch"
3434
github_repo: "docsy-jekyll"
35+
github_branch: "master"
3536

3637
# Optional
3738
twitter: vsoch

_includes/editable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a href="{{ site.repo }}/edit/master/{{ page.path }}" target="_blank"><i class="fa fa-edit fa-fw"></i> Edit this page</a>
1+
<a href="{{ site.repo }}/edit/{{ site.github_branch }}/{{ page.path }}" target="_blank"><i class="fa fa-edit fa-fw"></i> Edit this page</a>
22
<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>
33
<a href="{{ site.repo }}/issues/new" target="_blank"><i class="fas fa-tasks fa-fw"></i> Create project issue</a>
44
<!-- this will parse through the header fields and add a button to open

0 commit comments

Comments
 (0)