docs: add improve this page link #931

This commit is contained in:
larshp 2018-07-22 07:23:24 +00:00 committed by Lars Hvam
parent 1c368ed80c
commit 10a14dd387
8 changed files with 9 additions and 3 deletions

View File

@ -1,2 +1,3 @@
source 'https://rubygems.org'
gem 'jekyll-octicons'
gem 'github-pages', group: :jekyll_plugins

View File

@ -4,6 +4,8 @@ collections_dir: collections
collections:
development:
output: true
plugins:
- jekyll-octicons
defaults:
- scope:
path: ""

View File

@ -1,7 +1,7 @@
<footer class="nav-footer wrap">
<div class="nav-refs">
<a href="https://github.com/larshp/abapGit">
<span class="mega-octicon octicon-mark-github"></span>
{% octicon mark-github height:32 %}
</a>
</div>
<footer>

View File

@ -3,7 +3,6 @@
<link rel="shortcut icon" type="image/png" href="/img/favicon.png">
<link rel="stylesheet" href="/assets/main.css">
<link rel="stylesheet" href="/assets/highlight.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/octicons/4.4.0/font/octicons.min.css">
<title>{% if page.title %}{{ site.title }} - {{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{% if page.title %}{{ site.title }} - {{ page.title }}{% else %}{{ site.title }} - Home{% endif %}" />
<meta name="keywords" content="abapGit,abapGit documentation" />

View File

@ -1,6 +1,6 @@
<div class="page-head">
<div class="wrap">
<a href="/"><img class="head-logo" src="/img/logo.svg" height="40" alt="abapGit"></a>
<span class="head-title"> &#x25BA; documentation</span>
<span class="head-title"> {% octicon triangle-right %} documentation</span>
</div>
</div>

View File

@ -9,6 +9,7 @@
</div>
<div class="content">
<h1>{{ page.title }}</h1>
<small><a href="{{ site.github.repository_url }}/tree/master/docs/{{ page.path }}">{% octicon pencil %} Improve this page</a></small>
{{ content }}
</div>
</div>

View File

@ -19,6 +19,7 @@
<div class="content">
<h1>{{ page.title }}</h1>
<small><a href="{{ site.github.repository_url }}/tree/master/docs/collections/{{ page.path }}">{% octicon pencil %} Improve this page</a></small>
{{ content }}
</div>
</div>

View File

@ -6,6 +6,8 @@ order: 200
abapGit uses [github pages](https://help.github.com/articles/what-is-github-pages/) for documentation,
all pages are generated statically using [Jekyll](https://jekyllrb.com/)
[Octicons in jekyll](https://github.com/primer/octicons/tree/master/lib/octicons_jekyll)
Building /docs/ locally:
`bundle install`