summaryrefslogtreecommitdiff
path: root/_includes/git-wiki/components
diff options
context:
space:
mode:
Diffstat (limited to '_includes/git-wiki/components')
-rw-r--r--_includes/git-wiki/components/action_btn/downloads.html5
-rw-r--r--_includes/git-wiki/components/action_btn/page_actions.html34
-rw-r--r--_includes/git-wiki/components/copyrights/copyrights.html11
-rw-r--r--_includes/git-wiki/components/lists/page-list.html29
-rw-r--r--_includes/git-wiki/components/lists/post-list.html31
-rw-r--r--_includes/git-wiki/components/logo/logo.html6
-rw-r--r--_includes/git-wiki/components/search/index.html9
-rw-r--r--_includes/git-wiki/components/search/se_github.html12
-rw-r--r--_includes/git-wiki/components/search/se_google.html14
-rw-r--r--_includes/git-wiki/components/search/se_js.html7
-rw-r--r--_includes/git-wiki/components/search/se_js_rss.html21
-rw-r--r--_includes/git-wiki/components/toc/toc-lib.html109
-rw-r--r--_includes/git-wiki/components/toc/toc.html9
13 files changed, 0 insertions, 297 deletions
diff --git a/_includes/git-wiki/components/action_btn/downloads.html b/_includes/git-wiki/components/action_btn/downloads.html
deleted file mode 100644
index 8bd356b..0000000
--- a/_includes/git-wiki/components/action_btn/downloads.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<ul class="git-wiki-downloads">
- <li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li>
- <li><a href="{{ site.github.tar_url }}">Download <strong>TAR Ball</strong></a></li>
- <li><a href="{{ site.github.repository_url }}">View On <strong>GitHub</strong></a></li>
-</ul> \ No newline at end of file
diff --git a/_includes/git-wiki/components/action_btn/page_actions.html b/_includes/git-wiki/components/action_btn/page_actions.html
deleted file mode 100644
index 9902234..0000000
--- a/_includes/git-wiki/components/action_btn/page_actions.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="git-wiki-tools">
- {% if site.use_github_wiki %}
- <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/_new">Add new</a></span>
- <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: ''}}/_edit">Edit</a></span>
- <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: ''}}/_history">History</a></span>
- <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: '.md'}}/">Source</a></span>
- {% else %}
- <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/new/{{site.git_branch | escape}}?filename={{ site.wiki_folder | default: 'wiki' }}/">Add
- new</a></span>
- <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/edit/{{site.git_branch | escape}}/{{page.path | escape}}">Edit</a></span>
- {% if site.hostname == "gitlab.com" %}
- <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/blob/{{site.git_branch | escape}}/{{page.path | escape}}">Delete</a></span>
- {% else %}
- <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/delete/{{site.git_branch | escape}}/{{page.path | escape}}">Delete</a></span>
- {% endif %}
- <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/commits/{{site.git_branch | escape}}/{{page.path | escape}}">History</a></span>
- <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/blob/{{site.git_branch | escape}}/{{page.path | escape}}">Source</a></span>
- {% if site.blog_feature %}
- <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/new/{{site.git_branch | escape}}?filename=_posts/">Add
- new post</a></span>
- {% endif %}
- {% if site.use_prose_io and site.hostname != "gitlab.com" %}
- <br>
- Prose.io:
- <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/new/{{site.git_branch | escape}}/{{ site.wiki_folder | default: 'wiki' }}">Add
- new</a></span>
- <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/edit/{{site.git_branch | escape}}/{{page.path | escape}}">Edit</a></span>
- {% if site.blog_feature %}
- <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/new/{{site.git_branch | escape}}/_posts/">Add
- new post</a></span>
- {% endif %}
- {% endif %}
- {% endif %}
-</div>
diff --git a/_includes/git-wiki/components/copyrights/copyrights.html b/_includes/git-wiki/components/copyrights/copyrights.html
deleted file mode 100644
index dd15f9f..0000000
--- a/_includes/git-wiki/components/copyrights/copyrights.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{% if site.github.is_project_page %}
-<div class="git-wiki-copyrights">
- <p>This project is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
- {% endif %}
- <p><small>Hosted on GitHub Pages &mdash; Powered by <a href="https://github.com/Drassil/git-wiki-theme">Git-Wiki v{{
- version }}</a> </p>
-
- {% if site.github.is_project_page %}
- <p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ github_name }}</small></a></p>
-</div>
-{% endif %}
diff --git a/_includes/git-wiki/components/lists/page-list.html b/_includes/git-wiki/components/lists/page-list.html
deleted file mode 100644
index 8129bf0..0000000
--- a/_includes/git-wiki/components/lists/page-list.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="git-wiki-page-list">
- {% if site.inc_before_page_list %}
- {% include {{ site.inc_before_page_list }} %}
- {% endif %}
-
- <span class="page-list-title">Pages {% if (site.show_wiki_pages_limit >= 1 %} (Latest {{site.show_wiki_pages_limit
- }} updated) {% endif %}:</span>
- <ul class="page-list">
- {% assign numPages=0 %}
- {% assign items = site.html_pages | sort: 'date' %}
- {% for page in items %}
- {% if numPages >= site.show_wiki_pages_limit %}
- {% break %}
- {% endif %}
- {% if page.is_wiki_page != false and page.sitemap != false %}
- <li class="page-list-item">
- {% assign title = page.title | default: page.name %}
- <a href="{{ page.url | relative_url }}">{{title | escape}}</a>
- </li>
- {% assign numPages = numPages | plus: 1 %}
- {% endif %}
-
- {% endfor %}
- </ul>
-
- {% if site.inc_after_page_list %}
- {% include {{ site.inc_after_page_list }} %}
- {% endif %}
-</div> \ No newline at end of file
diff --git a/_includes/git-wiki/components/lists/post-list.html b/_includes/git-wiki/components/lists/post-list.html
deleted file mode 100644
index 579dab5..0000000
--- a/_includes/git-wiki/components/lists/post-list.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<div class="git-wiki-page-list">
- {% if site.inc_before_post_list %}
- {% include {{ site.inc_before_post_list }} %}
- {% endif %}
-
- <span class="post-list-title">Posts {% if (site.show_wiki_posts_limit >= 1 %} (Latest {{site.show_wiki_posts_limit
- }} updated) {% endif %}:</span>
- <ul class="post-list">
- {% assign numPages=0 %}
- {% assign items = site.posts | sort: 'date' %}
- {% for post in items %}
- {% if numPages >= site.show_wiki_posts_limit %}
- {% break %}
- {% endif %}
-
- {% if post.layout != "null" and post.sitemap != false and post.title %}
- <li class="post-list-item">
- <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
- </li>
- {% assign numPages = numPages | plus: 1 %}
- {% endif %}
-
- {% endfor %}
- </ul>
-
- <span class="post-list read-all"><a href="{{ '/blog/' | relative_url}}">Read all</a></span>
-
- {% if site.inc_after_post_list %}
- {% include {{ site.inc_after_post_list }} %}
- {% endif %}
-</div> \ No newline at end of file
diff --git a/_includes/git-wiki/components/logo/logo.html b/_includes/git-wiki/components/logo/logo.html
deleted file mode 100644
index e7ad94a..0000000
--- a/_includes/git-wiki/components/logo/logo.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<div class="git-wiki-main-logo">
-<a href="{{ '/' | relative_url }}"><img src="{{ site.logo_url | relative_url }}">
- <h1>{{ site.title | default: site.github.repository_name | escape }}</h1>
- </a>
- <p>{{ site.description | default: site.github.project_tagline }}</p>
-</div> \ No newline at end of file
diff --git a/_includes/git-wiki/components/search/index.html b/_includes/git-wiki/components/search/index.html
deleted file mode 100644
index f6b5ba3..0000000
--- a/_includes/git-wiki/components/search/index.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<div class="git-wiki-search">
- {% comment %}
- This component just select your preferred search engine based on _config.yml value
- {% endcomment %}
-
- {% assign se = site.search_engine | default: "github" %}
- {% assign file = "git-wiki/components/search/se_" | append: se | append: ".html" %}
- {% include {{file}} %}
-</div> \ No newline at end of file
diff --git a/_includes/git-wiki/components/search/se_github.html b/_includes/git-wiki/components/search/se_github.html
deleted file mode 100644
index 8605410..0000000
--- a/_includes/git-wiki/components/search/se_github.html
+++ /dev/null
@@ -1,12 +0,0 @@
-<div class="git-wiki-search-github">
- <form method="GET" action="{{ site.github.repository_url }}/search">
- <input type="text" name="q[]" placeholder="Text to search">
- {% if site.use_github_wiki %}
- <input type="hidden" name="type" value="Wikis">
- {% else %}
- <!-- <input type="hidden" name="l" value="Markdown"> -->
- <input type="hidden" name="q[]" value="path:/{{ site.wiki_folder }}">
- {% endif %}
- <input type="submit" value="Search">
- </form>
-</div> \ No newline at end of file
diff --git a/_includes/git-wiki/components/search/se_google.html b/_includes/git-wiki/components/search/se_google.html
deleted file mode 100644
index f0cd5c1..0000000
--- a/_includes/git-wiki/components/search/se_google.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<div class="git-wiki-search-google">
- <script>
- (function () {
- var cx = "{{site.google_cse_token}}";
- var gcse = document.createElement('script');
- gcse.type = 'text/javascript';
- gcse.async = true;
- gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
- var s = document.getElementsByTagName('script')[0];
- s.parentNode.insertBefore(gcse, s);
- })();
- </script>
- <gcse:search></gcse:search>
-</div> \ No newline at end of file
diff --git a/_includes/git-wiki/components/search/se_js.html b/_includes/git-wiki/components/search/se_js.html
deleted file mode 100644
index 87396be..0000000
--- a/_includes/git-wiki/components/search/se_js.html
+++ /dev/null
@@ -1,7 +0,0 @@
-<div class="git-wiki-search-js">
- <input type="text" id="search-input" placeholder="Search..">
- <ul id="results-container"></ul>
-</div>
-<!-- script pointing to jekyll-search.js -->
-<script src="{{ '/assets/js/simple-jekyll-search.min.js' | relative_url }}"></script>
-<script async src="{{ 'assets/js/searchdata.js' | relative_url }}"></script>
diff --git a/_includes/git-wiki/components/search/se_js_rss.html b/_includes/git-wiki/components/search/se_js_rss.html
deleted file mode 100644
index d61d976..0000000
--- a/_includes/git-wiki/components/search/se_js_rss.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<div class="git-wiki-search-js">
- <div class="container">
- <div class="well" id="searchbox">
- <input id="search-field" placeholder="Search the Site" />
- <ul id="results"></ul>
- </div>
- </div>
-</div>
-<script type="text/javascript">
- $.ajax({
- url: "{{ '/assets/js/jquery.camelhunter.min.js' | relative_url }}",
- dataType: "script",
- success: function () {
- setTimeout($("#search-field").camelHunter({
- onKeyUp: true,
- rss: "{{ '/sitemap_full.xml' | relative_url }}",
- results: "#results"
- }), 0);
- }
- });
-</script> \ No newline at end of file
diff --git a/_includes/git-wiki/components/toc/toc-lib.html b/_includes/git-wiki/components/toc/toc-lib.html
deleted file mode 100644
index 8851400..0000000
--- a/_includes/git-wiki/components/toc/toc-lib.html
+++ /dev/null
@@ -1,109 +0,0 @@
-{% capture tocWorkspace %}
- {% comment %}
- Version 1.0.9
- https://github.com/allejo/jekyll-toc
-
- "...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe
-
- Usage:
- {% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %}
-
- Parameters:
- * html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
-
- Optional Parameters:
- * title (string) : Contents: - title for the TOC
- * minHeaders (int) : 1 - minimum number of headers required to show the TOC
- * sanitize (bool) : false - when set to true, the headers will be stripped of any HTML in the TOC
- * class (string) : '' - a CSS class assigned to the TOC
- * id (string) : '' - an ID to assigned to the TOC
- * h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored
- * h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored
- * ordered (bool) : false - when set to true, an ordered list will be outputted instead of an unordered list
- * item_class (string) : '' - add custom class(es) for each list item; has support for '%level%' placeholder, which is the current heading level
- * baseurl (string) : '' - add a base url to the TOC links for when your TOC is on another page than the actual content
- * anchor_class (string) : '' - add custom class(es) for each anchor element
-
- Output:
- An ordered or unordered list representing the table of contents of a markdown block. This snippet will only
- generate the table of contents and will NOT output the markdown given to it
- {% endcomment %}
-
- {% capture my_toc %}{% endcapture %}
- {% assign title = include.title | default: "Contents:" %}
- {% assign minHeaders = include.minHeaders | default: 1 %}
- {% assign orderedList = include.ordered | default: false %}
- {% assign minHeader = include.h_min | default: 1 %}
- {% assign maxHeader = include.h_max | default: 6 %}
- {% assign nodes = include.html | split: '<h' %}
- {% assign firstHeader = true %}
-
- {% capture listModifier %}{% if orderedList %}1.{% else %}-{% endif %}{% endcapture %}
-
- {% assign hCount = 0 %}
-
- {% for node in nodes %}
- {% if node == "" %}
- {% continue %}
- {% endif %}
-
- {% assign headerLevel = node | replace: '"', '' | slice: 0, 1 | times: 1 %}
-
- {% if headerLevel < minHeader or headerLevel > maxHeader %}
- {% continue %}
- {% endif %}
-
- {% if firstHeader %}
- {% assign firstHeader = false %}
- {% assign minHeader = headerLevel %}
- {% endif %}
-
- {% assign indentAmount = headerLevel | minus: minHeader %}
- {% assign _workspace = node | split: '</h' %}
-
- {% assign _idWorkspace = _workspace[0] | split: 'id="' %}
- {% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
- {% assign html_id = _idWorkspace[0] %}
-
- {% assign _classWorkspace = _workspace[0] | split: 'class="' %}
- {% assign _classWorkspace = _classWorkspace[1] | split: '"' %}
- {% assign html_class = _classWorkspace[0] %}
-
- {% if html_class contains "no_toc" %}
- {% continue %}
- {% endif %}
-
- {% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
- {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
-
- {% assign space = '' %}
- {% for i in (1..indentAmount) %}
- {% assign space = space | prepend: ' ' %}
- {% endfor %}
-
- {% if include.item_class and include.item_class != blank %}
- {% capture listItemClass %}{:.{{ include.item_class | replace: '%level%', headerLevel }}}{% endcapture %}
- {% endif %}
-
- {% assign hCount = hCount | plus: 1 %}
-
- {% capture heading_body %}{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}{% endcapture %}
- {% capture my_toc %}{{ my_toc }}
-{{ space }}{{ listModifier }} {{ listItemClass }} [{{ heading_body | replace: "|", "\|" }}]({% if include.baseurl %}{{ include.baseurl }}{% endif %}#{{ html_id }}){% if include.anchor_class %}{:.{{ include.anchor_class }}}{% endif %}{% endcapture %}
- {% endfor %}
-
- {% if include.class and include.item_class != blank %}
- {% capture my_toc %}{:.{{ include.class }}}
-{{ my_toc | lstrip }}{% endcapture %}
- {% endif %}
-
- {% if include.id %}
- {% capture my_toc %}{: #{{ include.id }}}
-{{ my_toc | lstrip }}{% endcapture %}
- {% endif %}
-{% endcapture %}{% assign tocWorkspace = '' %}
-
-{% if hCount >= minHeaders %}
- {{ title }}
- {{ my_toc | markdownify | strip }}
-{% endif %} \ No newline at end of file
diff --git a/_includes/git-wiki/components/toc/toc.html b/_includes/git-wiki/components/toc/toc.html
deleted file mode 100644
index 7329f40..0000000
--- a/_includes/git-wiki/components/toc/toc.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{% if site.inc_before_toc %}
-{% include {{ site.inc_before_toc }} %}
-{% endif %}
-
-{% include git-wiki/components/toc/toc-lib.html title="Contents:" minHeaders=1 html=content sanitize=true class="inline_toc" id="git-wiki-toc" h_min=1 h_max=3 ordered=1 %}
-
-{% if site.inc_after_toc %}
-{% include {{ site.inc_after_toc }} %}
-{% endif %}