1
0

3 Commits 07d5ced725 ... 652a079bfd

Autor SHA1 Mensagem Data
  data8 652a079bfd Updated config file há 4 anos atrás
  data8 1547f4a7a0 Updated binder button to work with CMP repo. há 4 anos atrás
  data8 1457d4e588 Fixed broken template há 4 anos atrás
3 ficheiros alterados com 10 adições e 10 exclusões
  1. 6 6
      _config.yml
  2. 2 2
      _includes/buttons/binder.html
  3. 2 2
      _includes/page-nav.html

+ 6 - 6
_config.yml

@@ -58,10 +58,10 @@ jupyterhub_interact_text: Interact             # The text that interact buttons
 # Binder link settings
 use_binder_button: true                  # If 'true', add a binder button for interactive links
 binderhub_url: https://mybinder.org                        # The URL for your BinderHub. If no URL, use ""
-binder_repo_base: https://github.com/                     # The site on which the textbook repository is hosted
-binder_repo_org: data-8                       # The username or organization that owns this repository
-binder_repo_name: textbook                         # The name of the repository on the web
-binder_repo_branch: gh-pages                   # The branch on which your textbook is hosted.
+binder_repo_base: https://git.cmp.uea.ac.uk/                     # The site on which the textbook repository is hosted
+binder_repo_org: cmpsupport                       # The username or organization that owns this repository
+binder_repo_name: data8.git                         # The name of the repository on the web
+binder_repo_branch: master                   # The branch on which your textbook is hosted.
 binderhub_interact_text: Interact              # The text that interact buttons will contain.
 
 # Thebelab settings
@@ -87,8 +87,8 @@ scholar:
 #######################################################################################
 # Jupyter book settings you probably don't need to change
 
-google_analytics:
-  mytrackingcode: 'UA-148221575-1'
+#google_analytics:
+#  mytrackingcode: 'UA-148221575-1'
 content_folder_name: content           # The folder where your raw content (notebooks/markdown files) are located
 images_url: /assets/images                   # Path to static image files
 css_url: /assets/css                      # Path to static CSS files

+ 2 - 2
_includes/buttons/binder.html

@@ -6,9 +6,9 @@
     {% assign binder_interact_prefix="filepath=" %}
 {% endif %}
 
-{% capture interact_url_binder %}v2/gh/{{ site.binder_repo_org }}/{{ site.binder_repo_name }}/{{ site.binder_repo_branch }}?{{ binder_interact_prefix }}{{ page.interact_link | url_encode }}{% endcapture %}
+{% capture interact_url_binder %}v2/git/https%3A%2F%2Fgit.cmp.uea.ac.uk%2F{{ site.binder_repo_org }}%2F{{ site.binder_repo_name }}/{{ site.binder_repo_branch }}?{{ binder_interact_prefix }}{{ page.interact_link | url_encode }}{% endcapture %}
 {% capture interact_icon_binder %}{{ site.images_url | relative_url }}/logo_binder.svg{% endcapture %}
 
 <a href="{{ site.binderhub_url }}/{{ interact_url_binder }}"><button class="interact-button" id="interact-button-binder"><img class="interact-button-logo" src="{{ interact_icon_binder }}" alt="Interact" />{{ site.binderhub_interact_text }}</button></a>
 
-{%- endif %}
+{%- endif %}

+ 2 - 2
_includes/page-nav.html

@@ -3,7 +3,7 @@
     {% if page.prev_page.title | size < 40 %}
       {% capture PREV_PAGE %}{{ page.prev_page.title}}{% endcapture %}
     {% else %}
-      {% capture PREV_PAGE %}{{ page.prev_page.title | truncate: 37 | append "..."}}{% endcapture %}
+      {% capture PREV_PAGE %}{{ page.prev_page.title | truncate: 37 | append: "..."}}{% endcapture %}
     {% endif %}
     <a id="js-page__nav__prev" class="c-page__nav__prev" href="{{ page.prev_page.url | relative_url }}">
       〈 <span class="u-margin-right-tiny"></span> {{ page.prev_page.title | truncate: 37 }}
@@ -14,7 +14,7 @@
     {% if page.next_page.title | size < 40 %}
       {% capture NEXT_PAGE %}{{ page.next_page.title}}{% endcapture %}
     {% else %}
-      {% capture NEXT_PAGE %}{{ page.next_page.title | truncate: 37 | append "..."}}{% endcapture %}
+      {% capture NEXT_PAGE %}{{ page.next_page.title | truncate: 37 | append: "..."}}{% endcapture %}
     {% endif %}
     <a id="js-page__nav__next" class="c-page__nav__next" href="{{ page.next_page.url | relative_url }}">
       {{ page.next_page.title | truncate: 37 }} <span class="u-margin-right-tiny"></span> 〉