Skip to content

Commit

Permalink
Use simpler theme for docs.
Browse files Browse the repository at this point in the history
This theme was inspired by http://fsprojects.github.io/SQLProvider/
  • Loading branch information
bgrainger committed Jan 1, 2018
1 parent f2bacda commit 2ed4b81
Show file tree
Hide file tree
Showing 18 changed files with 73 additions and 872 deletions.
2 changes: 1 addition & 1 deletion .ci/build-docs.sh
Expand Up @@ -15,7 +15,7 @@ fi
openssl aes-256-cbc -K $encrypted_6d671fff73d6_key -iv $encrypted_6d671fff73d6_iv -in id_rsa.enc -out ~/.ssh/id_rsa -d && chmod 600 ~/.ssh/id_rsa

# download and install hugo
curl -SsL https://github.com/spf13/hugo/releases/download/v0.17/hugo_0.17-64bit.deb > ~/hugo.deb
curl -SsL https://github.com/gohugoio/hugo/releases/download/v0.32/hugo_0.32_Linux-64bit.deb > ~/hugo.deb
sudo dpkg -i ~/hugo.deb

# build docs
Expand Down
1 change: 0 additions & 1 deletion docs/content/connection-options.md
Expand Up @@ -5,7 +5,6 @@ title: Connection Options
weight: 30
menu:
main:
pre: "<i class='fa fa-bolt'></i>"
---

Connection Options
Expand Down
1 change: 0 additions & 1 deletion docs/content/home.md
Expand Up @@ -5,7 +5,6 @@ title: Home
weight: 10
menu:
main:
pre: "<i class='fa fa-home'></i>"
url: ""
---

Expand Down
4 changes: 2 additions & 2 deletions docs/content/tutorials/best-practices.md
Expand Up @@ -22,8 +22,8 @@ should be familiar with [Async/Await - Best Practices in Asynchronous Programmin
<table class="table table-bordered table-head-centered" style="max-width: 650px">
<thead>
<th style="width:30%">ADO.NET Class</th>
<th class="success" style="width:40%">Asynchronous Method<br />(always use when possible)</th>
<th class="warning" style="width:30%">Synchronous Method<br />(avoid when possible)</th>
<th class="alert-success" style="width:40%">Asynchronous Method<br />(always use when possible)</th>
<th class="alert-danger" style="width:30%">Synchronous Method<br />(avoid when possible)</th>
</thead>
<tr>
<td rowspan="2" style="vertical-align:middle">
Expand Down
45 changes: 1 addition & 44 deletions docs/layouts/partials/footer.html
@@ -1,52 +1,9 @@
{{ $cur := . }}
<div id="prevNext">
{{ range $i, $el := .Site.Menus.main }}
{{ $.Scratch.Set "tempPrev" "" }}
{{ $.Scratch.Set "parent" "" }}
{{ range .Children }}
{{ if ne ($.Scratch.Get "parent") "" }}
<div class="pull-right">
<a href="{{.URL}}">
{{.Name}} <i class="fa fa-angle-right"></i>
</a>
</div>
{{ $.Scratch.Set "parent" "" }}
{{ end }}
{{ if $cur.IsMenuCurrent "main" . }}
{{ $.Scratch.Set "parent" $el }}
{{ if ne ($.Scratch.Get "tempPrev") "" }}
<div class="pull-left">
<a href="{{($.Scratch.Get "tempPrev").URL}}">
<i class="fa fa-angle-left"></i> {{($.Scratch.Get "tempPrev").Name}}
</a>
</div>
{{ end }}
{{ end }}
{{ $.Scratch.Set "tempPrev" . }}
{{ end }}
{{ end }}
<div class="clearfix"></div>
</div>
<!-- col -->
{{ partial "menu.html" . }}
</div>
<!-- row -->
</div>
<!-- container -->

<footer class="footer">
<div class="container-fluid">
<div class="row">
<div id="footerContent" class="col-sm-12">
Free and open source under the
<a href="https://github.com/mysql-net/MySqlConnector/blob/master/LICENSE">MIT License</a>
</div>
</div>
</div>
</footer>

<!-- js -->
<script type="text/javascript" src="assets/jquery/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="assets/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/prism/js/prism.js"></script>
</body>
</html>
36 changes: 13 additions & 23 deletions docs/layouts/partials/header.html
Expand Up @@ -30,33 +30,23 @@
{{ .Scratch.Add "title" "" }}{{ if isset .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}}
<title>MySqlConnector - {{ .Scratch.Get "title" }}</title>

<link rel="stylesheet" type="text/css" href="assets/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="assets/font-awesome/css/font-awesome.min.css" />
<script src="https://code.jquery.com/jquery-1.8.0.js"></script>
<script src="https://code.jquery.com/ui/1.8.23/jquery-ui.js"></script>
<script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js"></script>
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="assets/prism/css/prism.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" rel="stylesheet" />

</head>

<body>

<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="col-xs-8 navbar-mysqlc-logo">
<a href="">
<img alt="MySqlConnector" src="img/icons/favicon-32x32.png" />
</a>
<a href="">
MySqlConnector
</a>
</div>
<div class="col-xs-4 navbar-mysqlc-gh">
<a href="https://github.com/mysql-net/MySqlConnector">
<i class="fa fa-github"></i> View on GitHub
</a>
</div>
</nav>

<div class="container">
<div class="masthead">
<ul class="nav nav-pills pull-right">
<li><a href="https://github.com/mysql-net/MySqlConnector/">GitHub</a></li>
</ul>
<h3 class="muted"><a href="index.html">MySqlConnector</a></h3>
</div>
<hr />
<div class="row">
{{ partial "menu.html" . }}
<div class="col-md-9">
<div class="span9" id="main">
25 changes: 10 additions & 15 deletions docs/layouts/partials/menu.html
@@ -1,22 +1,17 @@
{{ $cur := . }}
<div class="col-md-3">
<div class="list-group" id="navigation" data-spy="affix" data-offset-top="0">
<div class="span3">
<ul class="nav nav-list" id="menu">

{{ range $i, $el := .Site.Menus.main }}
<a class="list-group-item{{ if or ($cur.IsMenuCurrent "main" .) ($cur.HasMenuCurrent "main" .) (and (eq $i 0) ($cur.IsHome)) }} active{{ end }}" href="{{ if .HasChildren }}#nav-{{ $i }}{{ else }}{{ .URL }}{{ end }}" data-parent="#navigation"{{ if .HasChildren }} data-toggle="collapse"{{end}}>
{{ .Pre }} <span>{{ .Name }}</span> {{ if .HasChildren }}<i class="fa fa-angle-down"></i>{{ end }}
</a>
<li class="nav-header">
{{ if .HasChildren }}{{ .Name }}{{ else }}<a href="{{ .URL }}">{{ .Name }}</a>{{ end }}
</li>

{{ if .HasChildren }}
<div id="nav-{{ $i }}" class="submenu panel-collapse collapse {{ if $cur.HasMenuCurrent "main" . }} in{{ end }}">
{{ range .Children }}
<a class="list-group-item{{ if $cur.IsMenuCurrent "main" . }} active{{ end }}" data-parent="#nav-{{$i}}" href="{{.URL}}">
<span>{{ .Name }}</span>
</a>
{{ end }}
</div>
{{ range .Children }}
<li>
<a href="{{.URL}}">{{ .Name }}</a>
</li>
{{ end }}

{{ end }}
</div>
</ul>
</div>
6 changes: 0 additions & 6 deletions docs/static/assets/bootstrap/css/bootstrap.min.css

This file was deleted.

7 changes: 0 additions & 7 deletions docs/static/assets/bootstrap/js/bootstrap.min.js

This file was deleted.

4 changes: 0 additions & 4 deletions docs/static/assets/font-awesome/css/font-awesome.min.css

This file was deleted.

Binary file not shown.
Binary file not shown.

0 comments on commit 2ed4b81

Please sign in to comment.