make Getting Started the default landing page

This commit is contained in:
Samuel Sadok
2018-04-14 17:39:03 -07:00
parent 9da5212a70
commit 39b6ff55a1
7 changed files with 16 additions and 8 deletions
+1
View File
@@ -1,2 +1,3 @@
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
gem 'jekyll-redirect-from'
+1
View File
@@ -245,6 +245,7 @@ PLATFORMS
DEPENDENCIES
github-pages
jekyll-redirect-from
BUNDLED WITH
1.16.1
+2
View File
@@ -1,2 +1,4 @@
theme: jekyll-theme-minimal
exclude: [ruby-bundle]
plugins:
- jekyll-redirect-from
+1 -1
View File
@@ -6,7 +6,7 @@ sections:
- title: For Users
docs:
- title: Getting Started
url: getting-started
url: /
- title: ODrive Tool
url: odrivetool
- title: Parameters & Commands
+5 -1
View File
@@ -55,7 +55,8 @@
<section>
<div class="edit">
{% assign filename = page.url | replace_first: '/', '' | replace: '.html', '.md' %}
{% assign filename = page.url | replace_first: '/', '' | replace: '.html', '.md' %}
{% if filename == '' %}{% assign filename = 'getting-started.md' %}{% endif %}
<!-- edit icon taken from GitHub -->
<svg transform="translate(0,1)" class="octicon octicon-pencil" viewBox="0 0 14 16" version="1.1" width="10" height="12" aria-hidden="true">
<path fill-rule="evenodd" d="M0 12v3h3l8-8-3-3-8 8zm3 2H1v-2h1v1h1v1zm10.3-9.3L12 6 9 3l1.3-1.3a.996.996 0 0 1 1.41 0l1.59 1.59c.39.39.39 1.02 0 1.41z"></path>
@@ -93,6 +94,9 @@
if (links[i].getAttribute("href").slice(0, 3) == "../") {
links[i].href = "https://github.com/madcowswe/ODrive/blob/master/" + links[i].getAttribute("href").slice(3);
}
if (links[i].getAttribute("href").slice(0, 15) == "getting-started") {
links[i].href = "/" + links[i].getAttribute("href").slice(15);
}
}
}
</script>
+6
View File
@@ -1,3 +1,9 @@
---
redirect_from:
- /getting-started
permalink: /
---
# Getting Started
### Table of contents
-6
View File
@@ -1,6 +0,0 @@
{% for section in site.data.index.sections %}
## {{ section.title }}
{% for item in section.docs %}
* [{{ item.title }}]({{ item.url }}) {% endfor %}
{% endfor %}