summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2020-01-12 12:35:16 +0100
committerYehonal <yehonal.azeroth@gmail.com>2020-01-12 12:35:16 +0100
commitb52d6e28f0fdb22d8e0ba2e806527612ca11927d (patch)
treefa1fbf1b62d637d90d9941dcd0b863bd5fd5ad90
parentfe71b57bcdf51fec4fc275d968b4377ca42b8528 (diff)
parent294bdf6c46c22e2b0ce470de8fdf41fe9bed90ea (diff)
downloadwiki-b52d6e28f0fdb22d8e0ba2e806527612ca11927d.tar.gz
wiki-b52d6e28f0fdb22d8e0ba2e806527612ca11927d.tar.bz2
wiki-b52d6e28f0fdb22d8e0ba2e806527612ca11927d.zip
Merge branch 'master' of https://github.com/Drassil/git-wiki-theme
-rw-r--r--.env-files/Dockerfile.github11
-rw-r--r--.env-files/Dockerfile.gitlab11
-rw-r--r--.env-files/Gemfile.github3
-rw-r--r--.env-files/Gemfile.gitlab18
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.md12
-rw-r--r--.github/ISSUE_TEMPLATE/config.yml5
-rw-r--r--.github/ISSUE_TEMPLATE/general.md8
-rw-r--r--.gitignore4
-rw-r--r--Gemfile2
-rw-r--r--Gemfile.lock248
-rw-r--r--_config.yml.dist126
-rw-r--r--_includes/git-wiki/components/action_btn/page_actions.html24
-rw-r--r--_includes/git-wiki/components/lists/page-list.html2
-rw-r--r--_includes/git-wiki/components/lists/post-list.html2
-rw-r--r--_includes/git-wiki/components/logo/logo.html2
-rw-r--r--_includes/git-wiki/components/search/se_js.html2
-rw-r--r--_includes/git-wiki/components/toc/toc-lib.html96
-rw-r--r--_includes/git-wiki/components/toc/toc.html12
-rw-r--r--_includes/git-wiki/defines/defines.html2
-rw-r--r--_includes/git-wiki/sections/content/content.html10
-rw-r--r--_includes/git-wiki/sections/head/scripts.html1
-rw-r--r--_includes/git-wiki/sections/header/header.html8
-rw-r--r--_includes/git-wiki/sections/tail/tail.html12
-rw-r--r--_layouts/azerothcore.html11
-rw-r--r--_layouts/default.html4
-rw-r--r--_layouts/git-wiki-404.html (renamed from 404.md)6
-rw-r--r--_layouts/git-wiki-bs-github.html10
-rw-r--r--_layouts/git-wiki-bs-lux.html10
-rw-r--r--_layouts/git-wiki-bs-united.html10
-rw-r--r--assets/404.html7
-rw-r--r--assets/blog/index.html6
-rw-r--r--assets/js/searchdata.js (renamed from searchdata.js)0
-rw-r--r--assets/js/toc.js120
-rw-r--r--assets/sitemap_full.xml (renamed from sitemap_full.xml)1
-rw-r--r--blog/index.html3
-rw-r--r--docker-compose.yml31
-rw-r--r--wiki/main_page.md7
37 files changed, 516 insertions, 331 deletions
diff --git a/.env-files/Dockerfile.github b/.env-files/Dockerfile.github
new file mode 100644
index 0000000..8ac84ce
--- /dev/null
+++ b/.env-files/Dockerfile.github
@@ -0,0 +1,11 @@
+FROM ruby:2.7.0
+
+ENV LC_ALL=C.UTF-8=value
+
+ADD . /srv/jekyll
+
+WORKDIR /srv/jekyll
+
+RUN bundle install --gemfile=.env-files/Gemfile.github
+
+EXPOSE 4000 \ No newline at end of file
diff --git a/.env-files/Dockerfile.gitlab b/.env-files/Dockerfile.gitlab
new file mode 100644
index 0000000..5e120bc
--- /dev/null
+++ b/.env-files/Dockerfile.gitlab
@@ -0,0 +1,11 @@
+FROM ruby:2.7.0
+
+ENV LC_ALL=C.UTF-8=value
+
+ADD . /srv/jekyll
+
+WORKDIR /srv/jekyll
+
+RUN bundle install --gemfile=.env-files/Gemfile.gitlab
+
+EXPOSE 4000 \ No newline at end of file
diff --git a/.env-files/Gemfile.github b/.env-files/Gemfile.github
new file mode 100644
index 0000000..8eceee6
--- /dev/null
+++ b/.env-files/Gemfile.github
@@ -0,0 +1,3 @@
+source 'http://rubygems.org'
+gem 'github-pages', group: :jekyll_plugins
+gem "jekyll-gitlab-metadata" # for cross compatibility \ No newline at end of file
diff --git a/.env-files/Gemfile.gitlab b/.env-files/Gemfile.gitlab
new file mode 100644
index 0000000..b61bb05
--- /dev/null
+++ b/.env-files/Gemfile.gitlab
@@ -0,0 +1,18 @@
+source 'http://rubygems.org'
+gem "jekyll-avatar"
+gem "jekyll-coffeescript"
+gem "jekyll-default-layout"
+gem "jekyll-feed"
+gem "jekyll-gist"
+gem "jekyll-paginate"
+gem "jekyll-mentions"
+gem "jekyll-optional-front-matter"
+gem "jekyll-readme-index"
+gem "jekyll-redirect-from"
+gem "jekyll-remote-theme"
+gem "jekyll-relative-links"
+gem "jekyll-seo-tag"
+gem "jekyll-sitemap"
+gem "jekyll-titles-from-headings"
+gem "jemoji"
+gem "jekyll-gitlab-metadata" \ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index dd84ea7..f1912d4 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -10,7 +10,7 @@ assignees: ''
**Describe the bug**
A clear and concise description of what the bug is.
-**To Reproduce**
+**To reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
@@ -24,15 +24,15 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- - OS: [e.g. iOS]
- - Browser [e.g. chrome, safari]
- - Version [e.g. 22]
+ - OS: [e.g. Windows 10]
+ - Browser: [e.g. chrome, safari]
+ - Version: [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- - Browser [e.g. stock browser, safari]
- - Version [e.g. 22]
+ - Browser: [e.g. stock browser, safari]
+ - Version: [e.g. 22]
**Additional context**
Add any other context about the problem here.
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 0000000..736b9d9
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,5 @@
+blank_issues_enabled: false
+contact_links:
+ - name: Git Wiki Documentation
+ url: http://www.drassil.org/git-wiki/
+ about: All information in our official wiki
diff --git a/.github/ISSUE_TEMPLATE/general.md b/.github/ISSUE_TEMPLATE/general.md
new file mode 100644
index 0000000..501a94c
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/general.md
@@ -0,0 +1,8 @@
+---
+name: General
+about: Everything related with Git-Wiki that doesn't fit in other categories
+title: "[GENERAL]"
+labels: general
+assignees: ''
+
+---
diff --git a/.gitignore b/.gitignore
index 0e43ad9..6108fc7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,6 @@
_site
-Gemfile.lock
+Gemfile.*.lock
+.sass-cache
.idea/*
+
diff --git a/Gemfile b/Gemfile
deleted file mode 100644
index f98d657..0000000
--- a/Gemfile
+++ /dev/null
@@ -1,2 +0,0 @@
-source 'http://rubygems.org'
-gem 'github-pages', group: :jekyll_plugins \ No newline at end of file
diff --git a/Gemfile.lock b/Gemfile.lock
new file mode 100644
index 0000000..ead4385
--- /dev/null
+++ b/Gemfile.lock
@@ -0,0 +1,248 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ activesupport (4.2.10)
+ i18n (~> 0.7)
+ minitest (~> 5.1)
+ thread_safe (~> 0.3, >= 0.3.4)
+ tzinfo (~> 1.1)
+ addressable (2.5.2)
+ public_suffix (>= 2.0.2, < 4.0)
+ coffee-script (2.4.1)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.11.1)
+ colorator (1.1.0)
+ commonmarker (0.17.13)
+ ruby-enum (~> 0.5)
+ concurrent-ruby (1.1.4)
+ dnsruby (1.61.2)
+ addressable (~> 2.5)
+ em-websocket (0.5.1)
+ eventmachine (>= 0.12.9)
+ http_parser.rb (~> 0.6.0)
+ ethon (0.11.0)
+ ffi (>= 1.3.0)
+ eventmachine (1.2.7)
+ execjs (2.7.0)
+ faraday (0.15.4)
+ multipart-post (>= 1.2, < 3)
+ ffi (1.9.25)
+ forwardable-extended (2.6.0)
+ gemoji (3.0.0)
+ github-pages (193)
+ activesupport (= 4.2.10)
+ github-pages-health-check (= 1.8.1)
+ jekyll (= 3.7.4)
+ jekyll-avatar (= 0.6.0)
+ jekyll-coffeescript (= 1.1.1)
+ jekyll-commonmark-ghpages (= 0.1.5)
+ jekyll-default-layout (= 0.1.4)
+ jekyll-feed (= 0.11.0)
+ jekyll-gist (= 1.5.0)
+ jekyll-github-metadata (= 2.9.4)
+ jekyll-mentions (= 1.4.1)
+ jekyll-optional-front-matter (= 0.3.0)
+ jekyll-paginate (= 1.1.0)
+ jekyll-readme-index (= 0.2.0)
+ jekyll-redirect-from (= 0.14.0)
+ jekyll-relative-links (= 0.5.3)
+ jekyll-remote-theme (= 0.3.1)
+ jekyll-sass-converter (= 1.5.2)
+ jekyll-seo-tag (= 2.5.0)
+ jekyll-sitemap (= 1.2.0)
+ jekyll-swiss (= 0.4.0)
+ jekyll-theme-architect (= 0.1.1)
+ jekyll-theme-cayman (= 0.1.1)
+ jekyll-theme-dinky (= 0.1.1)
+ jekyll-theme-hacker (= 0.1.1)
+ jekyll-theme-leap-day (= 0.1.1)
+ jekyll-theme-merlot (= 0.1.1)
+ jekyll-theme-midnight (= 0.1.1)
+ jekyll-theme-minimal (= 0.1.1)
+ jekyll-theme-modernist (= 0.1.1)
+ jekyll-theme-primer (= 0.5.3)
+ jekyll-theme-slate (= 0.1.1)
+ jekyll-theme-tactile (= 0.1.1)
+ jekyll-theme-time-machine (= 0.1.1)
+ jekyll-titles-from-headings (= 0.5.1)
+ jemoji (= 0.10.1)
+ kramdown (= 1.17.0)
+ liquid (= 4.0.0)
+ listen (= 3.1.5)
+ mercenary (~> 0.3)
+ minima (= 2.5.0)
+ nokogiri (>= 1.8.2, < 2.0)
+ rouge (= 2.2.1)
+ terminal-table (~> 1.4)
+ github-pages-health-check (1.8.1)
+ addressable (~> 2.3)
+ dnsruby (~> 1.60)
+ octokit (~> 4.0)
+ public_suffix (~> 2.0)
+ typhoeus (~> 1.3)
+ html-pipeline (2.9.1)
+ activesupport (>= 2)
+ nokogiri (>= 1.4)
+ http_parser.rb (0.6.0)
+ i18n (0.9.5)
+ concurrent-ruby (~> 1.0)
+ jekyll (3.7.4)
+ addressable (~> 2.4)
+ colorator (~> 1.0)
+ em-websocket (~> 0.5)
+ i18n (~> 0.7)
+ jekyll-sass-converter (~> 1.0)
+ jekyll-watch (~> 2.0)
+ kramdown (~> 1.14)
+ liquid (~> 4.0)
+ mercenary (~> 0.3.3)
+ pathutil (~> 0.9)
+ rouge (>= 1.7, < 4)
+ safe_yaml (~> 1.0)
+ jekyll-avatar (0.6.0)
+ jekyll (~> 3.0)
+ jekyll-coffeescript (1.1.1)
+ coffee-script (~> 2.2)
+ coffee-script-source (~> 1.11.1)
+ jekyll-commonmark (1.2.0)
+ commonmarker (~> 0.14)
+ jekyll (>= 3.0, < 4.0)
+ jekyll-commonmark-ghpages (0.1.5)
+ commonmarker (~> 0.17.6)
+ jekyll-commonmark (~> 1)
+ rouge (~> 2)
+ jekyll-default-layout (0.1.4)
+ jekyll (~> 3.0)
+ jekyll-feed (0.11.0)
+ jekyll (~> 3.3)
+ jekyll-gist (1.5.0)
+ octokit (~> 4.2)
+ jekyll-github-metadata (2.9.4)
+ jekyll (~> 3.1)
+ octokit (~> 4.0, != 4.4.0)
+ jekyll-mentions (1.4.1)
+ html-pipeline (~> 2.3)
+ jekyll (~> 3.0)
+ jekyll-optional-front-matter (0.3.0)
+ jekyll (~> 3.0)
+ jekyll-paginate (1.1.0)
+ jekyll-readme-index (0.2.0)
+ jekyll (~> 3.0)
+ jekyll-redirect-from (0.14.0)
+ jekyll (~> 3.3)
+ jekyll-relative-links (0.5.3)
+ jekyll (~> 3.3)
+ jekyll-remote-theme (0.3.1)
+ jekyll (~> 3.5)
+ rubyzip (>= 1.2.1, < 3.0)
+ jekyll-sass-converter (1.5.2)
+ sass (~> 3.4)
+ jekyll-seo-tag (2.5.0)
+ jekyll (~> 3.3)
+ jekyll-sitemap (1.2.0)
+ jekyll (~> 3.3)
+ jekyll-swiss (0.4.0)
+ jekyll-theme-architect (0.1.1)
+ jekyll (~> 3.5)
+ jekyll-seo-tag (~> 2.0)
+ jekyll-theme-cayman (0.1.1)
+ jekyll (~> 3.5)
+ jekyll-seo-tag (~> 2.0)
+ jekyll-theme-dinky (0.1.1)
+ jekyll (~> 3.5)
+ jekyll-seo-tag (~> 2.0)
+ jekyll-theme-hacker (0.1.1)
+ jekyll (~> 3.5)
+ jekyll-seo-tag (~> 2.0)
+ jekyll-theme-leap-day (0.1.1)
+ jekyll (~> 3.5)
+ jekyll-seo-tag (~> 2.0)
+ jekyll-theme-merlot (0.1.1)
+ jekyll (~> 3.5)
+ jekyll-seo-tag (~> 2.0)
+ jekyll-theme-midnight (0.1.1)
+ jekyll (~> 3.5)
+ jekyll-seo-tag (~> 2.0)
+ jekyll-theme-minimal (0.1.1)
+ jekyll (~> 3.5)
+ jekyll-seo-tag (~> 2.0)
+ jekyll-theme-modernist (0.1.1)
+ jekyll (~> 3.5)
+ jekyll-seo-tag (~> 2.0)
+ jekyll-theme-primer (0.5.3)
+ jekyll (~> 3.5)
+ jekyll-github-metadata (~> 2.9)
+ jekyll-seo-tag (~> 2.0)
+ jekyll-theme-slate (0.1.1)
+ jekyll (~> 3.5)
+ jekyll-seo-tag (~> 2.0)
+ jekyll-theme-tactile (0.1.1)
+ jekyll (~> 3.5)
+ jekyll-seo-tag (~> 2.0)
+ jekyll-theme-time-machine (0.1.1)
+ jekyll (~> 3.5)
+ jekyll-seo-tag (~> 2.0)
+ jekyll-titles-from-headings (0.5.1)
+ jekyll (~> 3.3)
+ jekyll-watch (2.1.2)
+ listen (~> 3.0)
+ jemoji (0.10.1)
+ gemoji (~> 3.0)
+ html-pipeline (~> 2.2)
+ jekyll (~> 3.0)
+ kramdown (1.17.0)
+ liquid (4.0.0)
+ listen (3.1.5)
+ rb-fsevent (~> 0.9, >= 0.9.4)
+ rb-inotify (~> 0.9, >= 0.9.7)
+ ruby_dep (~> 1.2)
+ mercenary (0.3.6)
+ mini_portile2 (2.3.0)
+ minima (2.5.0)
+ jekyll (~> 3.5)
+ jekyll-feed (~> 0.9)
+ jekyll-seo-tag (~> 2.1)
+ minitest (5.11.3)
+ multipart-post (2.0.0)
+ nokogiri (1.8.5)
+ mini_portile2 (~> 2.3.0)
+ octokit (4.13.0)
+ sawyer (~> 0.8.0, >= 0.5.3)
+ pathutil (0.16.2)
+ forwardable-extended (~> 2.6)
+ public_suffix (2.0.5)
+ rb-fsevent (0.10.3)
+ rb-inotify (0.10.0)
+ ffi (~> 1.0)
+ rouge (2.2.1)
+ ruby-enum (0.7.2)
+ i18n
+ ruby_dep (1.5.0)
+ rubyzip (1.2.2)
+ safe_yaml (1.0.4)
+ sass (3.7.2)
+ sass-listen (~> 4.0.0)
+ sass-listen (4.0.0)
+ rb-fsevent (~> 0.9, >= 0.9.4)
+ rb-inotify (~> 0.9, >= 0.9.7)
+ sawyer (0.8.1)
+ addressable (>= 2.3.5, < 2.6)
+ faraday (~> 0.8, < 1.0)
+ terminal-table (1.8.0)
+ unicode-display_width (~> 1.1, >= 1.1.1)
+ thread_safe (0.3.6)
+ typhoeus (1.3.1)
+ ethon (>= 0.9.0)
+ tzinfo (1.2.5)
+ thread_safe (~> 0.1)
+ unicode-display_width (1.4.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ github-pages
+
+BUNDLED WITH
+ 1.16.1
diff --git a/_config.yml.dist b/_config.yml.dist
deleted file mode 100644
index ce5ed16..0000000
--- a/_config.yml.dist
+++ /dev/null
@@ -1,126 +0,0 @@
-# (string) Title of your wiki
-title:
-# (string) Description of your wiki
-description:
-# (boolean) Enable/disable wiki page list in sidebar
-show_wiki_pages: true
-# (integer) Maximum number of wiki page to shown in sidebar
-show_wiki_pages_limit: 10
-# (boolean) Enable/disable blog feature
-blog_feature: true
-# (boolean) Enable/disable wiki posts list in sidebar (needs blog_feature enabled)
-show_wiki_posts: true
-# (integer) Maximum number of wiki posts to shown in sidebar
-show_wiki_posts_limit: 10
-# from jekyll (read jekyll doc)
-paginate: 5
-paginate_path: "/blog/page:num"
-permalink: /blog/posts/:year/:month/:day/:title:output_ext
-# (boolean) Enable/disable download buttons in sidebar
-show_downloads: true
-# (string) Specify branch rendered by gitpages allowing wiki tool buttons to work
-git_branch: "master"
-# (string) Url of logo image, it can be full, absolute or relative.
-logo_url:
-# (string) The UA-XXXXX-Y code from google analytic to enable GA on your wiki
-google_analytics:
-# (string) folder where wiki pages are stored, it's needed for tool buttons
-wiki_folder: wiki
-# (boolean) if you're using github wiki as submodule then this config
-# must be enabled to allow tool buttons to work properly
-use_github_wiki: false
-# (boolean) Enable "Edit with Prose.io" button in tools, it's a 3rd party
-# service to edit github markdown pages easily
-use_prose_io: true
-# Select search_engine component from:
-# - js: it uses a built in javascript component that uses generated js object
-# - js_rss: it uses a built in javascript component that uses generated sitemap_full.xml to search inside your wiki with lunr library (slow and experimental)
-# - github : it uses internal github repository search
-# - google : it uses cse search bar, you need to configure google_cse_token
-#
-search_engine : "js"
-# Setting google custom search engine for google
-# cse search bar (https://cse.google.it/cse/)
-google_cse_token:
-
-#
-# Jekyll configurations
-#
-
-# You can customize it changing default layout for all pages
-# More info: https://jekyllrb.com/docs/configuration/
-#
-# git-wiki includes some internal themes that you can choose
-# check _layouts folder
-#
-defaults:
- -
- scope:
- path: "wiki"
- values:
- permalink: /:basename
- -
- scope:
- path: "" # an empty string here means all files in the project
- values:
- layout: "git-wiki-default"
- -
- scope:
- path: ""
- type: "pages"
- values:
- layout: "git-wiki-default"
- -
- scope:
- path: ""
- type: "posts"
- values:
- layout: "git-wiki-post"
- -
- scope:
- path: blog
- values:
- layout: "git-wiki-blog"
-sass:
- style: compressed
-plugins:
- - jekyll-feed
- - jekyll-redirect-from
- - jekyll-seo-tag
- - jekyll-sitemap
- - jekyll-avatar
- - jemoji
- - jekyll-mentions
-
-
-#
-# INCLUDING HOOKS
-# They are optional, change them only if you need
-# Check wiki documentation to learn how they work
-#
-
-inc_before_toc :
-inc_after_toc :
-inc_before_content :
-inc_after_content :
-inc_before_footer :
-inc_after_footer :
-inc_before_head :
-inc_after_head :
-inc_before_meta :
-inc_after_meta :
-inc_before_scripts :
-inc_after_scripts :
-inc_before_styles :
-inc_after_styles :
-inc_before_header :
-inc_after_header :
-inc_before_tail :
-inc_after_tail :
-inc_before_tools :
-inc_after_tools :
-
-inc_before_page_list :
-inc_after_page_list :
-inc_before_post_list :
-inc_after_post_list :
diff --git a/_includes/git-wiki/components/action_btn/page_actions.html b/_includes/git-wiki/components/action_btn/page_actions.html
index 03f1d85..9902234 100644
--- a/_includes/git-wiki/components/action_btn/page_actions.html
+++ b/_includes/git-wiki/components/action_btn/page_actions.html
@@ -5,24 +5,28 @@
<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}}?filename={{ site.wiki_folder | default: 'wiki' }}/">Add
+ <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}}/{{page.path}}">Edit</a></span>
- <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/delete/{{site.git_branch}}/{{page.path}}">Delete</a></span>
- <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/commits/{{site.git_branch}}/{{page.path}}">History</a></span>
- <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/blob/{{site.git_branch}}/{{page.path}}">Source</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}}?filename=_posts/">Add
+ <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 %}
+ {% 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}}/{{ site.wiki_folder | default: 'wiki' }}">Add
+ <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}}/{{page.path}}">Edit</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}}/_posts/">Add
+ <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 %}
diff --git a/_includes/git-wiki/components/lists/page-list.html b/_includes/git-wiki/components/lists/page-list.html
index dea6758..8129bf0 100644
--- a/_includes/git-wiki/components/lists/page-list.html
+++ b/_includes/git-wiki/components/lists/page-list.html
@@ -15,7 +15,7 @@
{% 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}}</a>
+ <a href="{{ page.url | relative_url }}">{{title | escape}}</a>
</li>
{% assign numPages = numPages | plus: 1 %}
{% endif %}
diff --git a/_includes/git-wiki/components/lists/post-list.html b/_includes/git-wiki/components/lists/post-list.html
index d6fa663..579dab5 100644
--- a/_includes/git-wiki/components/lists/post-list.html
+++ b/_includes/git-wiki/components/lists/post-list.html
@@ -15,7 +15,7 @@
{% if post.layout != "null" and post.sitemap != false and post.title %}
<li class="post-list-item">
- <a href="{{ post.url | relative_url }}">{{ post.title}}</a>
+ <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
</li>
{% assign numPages = numPages | plus: 1 %}
{% endif %}
diff --git a/_includes/git-wiki/components/logo/logo.html b/_includes/git-wiki/components/logo/logo.html
index d33305e..375b06b 100644
--- a/_includes/git-wiki/components/logo/logo.html
+++ b/_includes/git-wiki/components/logo/logo.html
@@ -1,6 +1,6 @@
<div class="git-wiki-main-logo">
<a href="{{ '/' | relative_url }}"><img src="{{ site.logo_url }}">
- <h1>{{ site.title | default: site.github.repository_name }}</h1>
+ <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/se_js.html b/_includes/git-wiki/components/search/se_js.html
index 85e168c..87396be 100644
--- a/_includes/git-wiki/components/search/se_js.html
+++ b/_includes/git-wiki/components/search/se_js.html
@@ -4,4 +4,4 @@
</div>
<!-- script pointing to jekyll-search.js -->
<script src="{{ '/assets/js/simple-jekyll-search.min.js' | relative_url }}"></script>
-<script async src="{{ '/searchdata.js' | relative_url }}"></script>
+<script async src="{{ 'assets/js/searchdata.js' | relative_url }}"></script>
diff --git a/_includes/git-wiki/components/toc/toc-lib.html b/_includes/git-wiki/components/toc/toc-lib.html
new file mode 100644
index 0000000..4aa9c88
--- /dev/null
+++ b/_includes/git-wiki/components/toc/toc-lib.html
@@ -0,0 +1,96 @@
+{% 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:
+ * 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 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 %}
+
+ {% 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 %}