Skip to content

Commit 54478e0

Browse files
committed
Add minimal template
1 parent 882d921 commit 54478e0

File tree

6 files changed

+179
-1
lines changed

6 files changed

+179
-1
lines changed

docfx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"output": "_site",
2121
"template": [
2222
"default",
23-
"modern"
23+
"templates/minimal"
2424
],
2525
"globalMetadata": {
2626
"_appName": "tkmm-wiki",

templates/minimal/layout/_master.tmpl

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2+
{{!include(/^styles/.*/)}}
3+
{{!include(/^fonts/.*/)}}
4+
{{!include(favicon.ico)}}
5+
{{!include(logo.svg)}}
6+
{{!include(search-stopwords.json)}}
7+
<!DOCTYPE html>
8+
<!--[if IE]><![endif]-->
9+
<html>
10+
{{>partials/head}}
11+
<body data-spy="scroll" data-target="#affix" data-offset="120">
12+
<div id="wrapper">
13+
<header>
14+
{{^_disableNavbar}}
15+
{{>partials/navbar}}
16+
{{/_disableNavbar}}
17+
{{^_disableBreadcrumb}}
18+
<!--{{>partials/breadcrumb}}-->
19+
{{/_disableBreadcrumb}}
20+
</header>
21+
{{#_enableSearch}}
22+
<div class="container body-content">
23+
{{>partials/searchResults}}
24+
</div>
25+
{{/_enableSearch}}
26+
<div role="main" class="container-fluid body-content hide-when-search">
27+
{{^_disableToc}}
28+
{{>partials/toc}}
29+
<div class="article row grid-right">
30+
{{/_disableToc}}
31+
{{#_disableToc}}
32+
<div class="article row grid">
33+
{{/_disableToc}}
34+
{{#_disableAffix}}
35+
<div class="col-md-12">
36+
{{/_disableAffix}}
37+
{{^_disableAffix}}
38+
<div class="col-md-10">
39+
{{/_disableAffix}}
40+
<article class="content wrap" id="_content" data-uid="{{uid}}">
41+
{{!body}}
42+
</article>
43+
</div>
44+
{{^_disableAffix}}
45+
{{>partials/affix}}
46+
{{/_disableAffix}}
47+
</div>
48+
</div>
49+
{{^_disableFooter}}
50+
{{>partials/footer}}
51+
{{/_disableFooter}}
52+
</div>
53+
{{>partials/scripts}}
54+
</body>
55+
</html>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2+
3+
<footer>
4+
<div class="grad-bottom"></div>
5+
<div class="footer">
6+
<div class="container-fluid">
7+
<span class="pull-right">
8+
<a href="#top">{{__global.backToTop}}</a>
9+
</span>
10+
{{{_appFooter}}}
11+
{{^_appFooter}}<span>Generated by <strong>DocFX</strong></span>{{/_appFooter}}
12+
</div>
13+
</div>
14+
</footer>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2+
3+
<nav id="autocollapse" class="navbar ng-scope" role="navigation">
4+
<div class="container-fluid">
5+
<div class="navbar-header">
6+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
7+
<span class="sr-only">Toggle navigation</span>
8+
<span class="icon-bar"></span>
9+
<span class="icon-bar"></span>
10+
<span class="icon-bar"></span>
11+
</button>
12+
{{>partials/logo}}
13+
</div>
14+
<div class="collapse navbar-collapse" id="navbar">
15+
<form class="navbar-form navbar-right" role="search" id="search">
16+
<div class="form-group">
17+
<input type="text" class="form-control" id="search-query" placeholder="{{__global.search}}" autocomplete="off">
18+
</div>
19+
</form>
20+
</div>
21+
</div>
22+
</nav>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2+
3+
<div class="sidenav hide-when-search">
4+
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">{{__global.tocToggleButton}}</a>
5+
<div class="sidetoggle collapse" id="sidetoggle">
6+
<div id="sidetoc"></div>
7+
</div>
8+
</div>

templates/minimal/styles/main.css

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
.sidefilter, .sidetoc, #toc {
2+
background-color: #FFFFFF;
3+
border-left: #FFFFFF;
4+
}
5+
6+
.navbar-default, .navbar, .navbar-collapse {
7+
border-color: #e7e7e7;
8+
}
9+
10+
.toc-filter {
11+
border: 1px solid #e7e7e7;
12+
}
13+
14+
.navbar .navbar-nav > .active > a,.navbar .navbar-nav > li > a {
15+
color: #000000;
16+
background-color: #FFFFFF;
17+
}
18+
19+
.navbar .navbar-nav > .active > a:focus, .navbar .navbar-nav > .active > a:hover,.navbar .navbar-nav > li > a:hover {
20+
color: #9d9d9d;
21+
background-color: #FFFFFF;
22+
}
23+
24+
.grad-bottom {
25+
height: 0px;
26+
}
27+
28+
.footer {
29+
background-color: #FFFFFF;
30+
}
31+
32+
.navbar-brand > img {
33+
padding: 10px 15px;
34+
height: 50px;
35+
}
36+
37+
.sidetoc.shiftup {
38+
bottom: 0px;
39+
}
40+
41+
.sidetoc {
42+
top: 110px;
43+
}
44+
45+
.sidefilter {
46+
top: 50px;
47+
}
48+
49+
.icon-bar {
50+
background-color: black;
51+
}
52+
53+
.btn {
54+
text-align: left;
55+
}
56+
57+
.sidenav, .fixed_header, .toc {
58+
background-color: #FFFFFF;
59+
}
60+
61+
.toc > ul {
62+
text-align: left;
63+
}
64+
65+
body {
66+
font-size: 16px;
67+
}
68+
69+
header {
70+
background-color: #FFFFFF;
71+
}
72+
73+
.toc .nav > li {
74+
display: block;
75+
}
76+
77+
.toc li:after {
78+
content: "";
79+
}

0 commit comments

Comments
 (0)