Skip to content

Commit 2ed4b81

Browse files
committed
Use simpler theme for docs.
This theme was inspired by http://fsprojects.github.io/SQLProvider/
1 parent f2bacda commit 2ed4b81

18 files changed

+73
-872
lines changed

.ci/build-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fi
1515
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
1616

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

2121
# build docs

docs/content/connection-options.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ title: Connection Options
55
weight: 30
66
menu:
77
main:
8-
pre: "<i class='fa fa-bolt'></i>"
98
---
109

1110
Connection Options

docs/content/home.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ title: Home
55
weight: 10
66
menu:
77
main:
8-
pre: "<i class='fa fa-home'></i>"
98
url: ""
109
---
1110

docs/content/tutorials/best-practices.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ should be familiar with [Async/Await - Best Practices in Asynchronous Programmin
2222
<table class="table table-bordered table-head-centered" style="max-width: 650px">
2323
<thead>
2424
<th style="width:30%">ADO.NET Class</th>
25-
<th class="success" style="width:40%">Asynchronous Method<br />(always use when possible)</th>
26-
<th class="warning" style="width:30%">Synchronous Method<br />(avoid when possible)</th>
25+
<th class="alert-success" style="width:40%">Asynchronous Method<br />(always use when possible)</th>
26+
<th class="alert-danger" style="width:30%">Synchronous Method<br />(avoid when possible)</th>
2727
</thead>
2828
<tr>
2929
<td rowspan="2" style="vertical-align:middle">

docs/layouts/partials/footer.html

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,9 @@
1-
{{ $cur := . }}
2-
<div id="prevNext">
3-
{{ range $i, $el := .Site.Menus.main }}
4-
{{ $.Scratch.Set "tempPrev" "" }}
5-
{{ $.Scratch.Set "parent" "" }}
6-
{{ range .Children }}
7-
{{ if ne ($.Scratch.Get "parent") "" }}
8-
<div class="pull-right">
9-
<a href="{{.URL}}">
10-
{{.Name}} <i class="fa fa-angle-right"></i>
11-
</a>
12-
</div>
13-
{{ $.Scratch.Set "parent" "" }}
14-
{{ end }}
15-
{{ if $cur.IsMenuCurrent "main" . }}
16-
{{ $.Scratch.Set "parent" $el }}
17-
{{ if ne ($.Scratch.Get "tempPrev") "" }}
18-
<div class="pull-left">
19-
<a href="{{($.Scratch.Get "tempPrev").URL}}">
20-
<i class="fa fa-angle-left"></i> {{($.Scratch.Get "tempPrev").Name}}
21-
</a>
22-
</div>
23-
{{ end }}
24-
{{ end }}
25-
{{ $.Scratch.Set "tempPrev" . }}
26-
{{ end }}
27-
{{ end }}
28-
<div class="clearfix"></div>
291
</div>
30-
<!-- col -->
2+
{{ partial "menu.html" . }}
313
</div>
32-
<!-- row -->
334
</div>
34-
<!-- container -->
35-
36-
<footer class="footer">
37-
<div class="container-fluid">
38-
<div class="row">
39-
<div id="footerContent" class="col-sm-12">
40-
Free and open source under the
41-
<a href="https://github.com/mysql-net/MySqlConnector/blob/master/LICENSE">MIT License</a>
42-
</div>
43-
</div>
44-
</div>
45-
</footer>
465

476
<!-- js -->
48-
<script type="text/javascript" src="assets/jquery/js/jquery-2.1.4.min.js"></script>
49-
<script type="text/javascript" src="assets/bootstrap/js/bootstrap.min.js"></script>
507
<script type="text/javascript" src="assets/prism/js/prism.js"></script>
518
</body>
529
</html>

docs/layouts/partials/header.html

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,23 @@
3030
{{ .Scratch.Add "title" "" }}{{ if isset .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}}
3131
<title>MySqlConnector - {{ .Scratch.Get "title" }}</title>
3232

33-
<link rel="stylesheet" type="text/css" href="assets/bootstrap/css/bootstrap.min.css" />
34-
<link rel="stylesheet" type="text/css" href="assets/font-awesome/css/font-awesome.min.css" />
33+
<script src="https://code.jquery.com/jquery-1.8.0.js"></script>
34+
<script src="https://code.jquery.com/ui/1.8.23/jquery-ui.js"></script>
35+
<script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js"></script>
36+
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css" rel="stylesheet">
37+
<link rel="stylesheet" type="text/css" href="css/style.css" />
3538
<link rel="stylesheet" type="text/css" href="assets/prism/css/prism.css" />
36-
<link rel="stylesheet" type="text/css" href="css/style.css" rel="stylesheet" />
37-
3839
</head>
3940

4041
<body>
4142

42-
<nav class="navbar navbar-default navbar-fixed-top">
43-
<div class="container">
44-
<div class="col-xs-8 navbar-mysqlc-logo">
45-
<a href="">
46-
<img alt="MySqlConnector" src="img/icons/favicon-32x32.png" />
47-
</a>
48-
<a href="">
49-
MySqlConnector
50-
</a>
51-
</div>
52-
<div class="col-xs-4 navbar-mysqlc-gh">
53-
<a href="https://github.com/mysql-net/MySqlConnector">
54-
<i class="fa fa-github"></i> View on GitHub
55-
</a>
56-
</div>
57-
</nav>
58-
5943
<div class="container">
44+
<div class="masthead">
45+
<ul class="nav nav-pills pull-right">
46+
<li><a href="https://github.com/mysql-net/MySqlConnector/">GitHub</a></li>
47+
</ul>
48+
<h3 class="muted"><a href="index.html">MySqlConnector</a></h3>
49+
</div>
50+
<hr />
6051
<div class="row">
61-
{{ partial "menu.html" . }}
62-
<div class="col-md-9">
52+
<div class="span9" id="main">

docs/layouts/partials/menu.html

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
1-
{{ $cur := . }}
2-
<div class="col-md-3">
3-
<div class="list-group" id="navigation" data-spy="affix" data-offset-top="0">
1+
<div class="span3">
2+
<ul class="nav nav-list" id="menu">
43

54
{{ range $i, $el := .Site.Menus.main }}
6-
<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}}>
7-
{{ .Pre }} <span>{{ .Name }}</span> {{ if .HasChildren }}<i class="fa fa-angle-down"></i>{{ end }}
8-
</a>
5+
<li class="nav-header">
6+
{{ if .HasChildren }}{{ .Name }}{{ else }}<a href="{{ .URL }}">{{ .Name }}</a>{{ end }}
7+
</li>
98

10-
{{ if .HasChildren }}
11-
<div id="nav-{{ $i }}" class="submenu panel-collapse collapse {{ if $cur.HasMenuCurrent "main" . }} in{{ end }}">
12-
{{ range .Children }}
13-
<a class="list-group-item{{ if $cur.IsMenuCurrent "main" . }} active{{ end }}" data-parent="#nav-{{$i}}" href="{{.URL}}">
14-
<span>{{ .Name }}</span>
15-
</a>
16-
{{ end }}
17-
</div>
9+
{{ range .Children }}
10+
<li>
11+
<a href="{{.URL}}">{{ .Name }}</a>
12+
</li>
1813
{{ end }}
1914

2015
{{ end }}
21-
</div>
16+
</ul>
2217
</div>

docs/static/assets/bootstrap/css/bootstrap.min.css

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/static/assets/bootstrap/js/bootstrap.min.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/static/assets/font-awesome/css/font-awesome.min.css

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)