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' source 'https://rubygems.org'
gem 'jekyll-octicons'
gem 'github-pages', group: :jekyll_plugins gem 'github-pages', group: :jekyll_plugins

View File

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

View File

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

View File

@ -3,7 +3,6 @@
<link rel="shortcut icon" type="image/png" href="/img/favicon.png"> <link rel="shortcut icon" type="image/png" href="/img/favicon.png">
<link rel="stylesheet" href="/assets/main.css"> <link rel="stylesheet" href="/assets/main.css">
<link rel="stylesheet" href="/assets/highlight.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> <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="description" content="{% if page.title %}{{ site.title }} - {{ page.title }}{% else %}{{ site.title }} - Home{% endif %}" />
<meta name="keywords" content="abapGit,abapGit documentation" /> <meta name="keywords" content="abapGit,abapGit documentation" />

View File

@ -1,6 +1,6 @@
<div class="page-head"> <div class="page-head">
<div class="wrap"> <div class="wrap">
<a href="/"><img class="head-logo" src="/img/logo.svg" height="40" alt="abapGit"></a> <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>
</div> </div>

View File

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

View File

@ -19,6 +19,7 @@
<div class="content"> <div class="content">
<h1>{{ page.title }}</h1> <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 }} {{ content }}
</div> </div>
</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, 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/) 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: Building /docs/ locally:
`bundle install` `bundle install`