Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit a43c725

Browse files
travis1111sghung
authored andcommitted
Add news section (#151)
Signed-off-by: tiaoyuw <[email protected]>
1 parent 84c7933 commit a43c725

File tree

5 files changed

+70
-17
lines changed

5 files changed

+70
-17
lines changed

docs/_includes/topbar.html

+5-15
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,11 @@
99
<div class="collapse navbar-collapse justify-content-end cw-navbar-padding" id="navbarNavDropdown">
1010
<ul class="navbar-nav cw-navbar-nav">
1111

12-
<li class="nav-item cw-navbar-item">
13-
<a href="gettingstarted.html" class="btn cw-docs-button">
14-
<svg width="16px" height="21px" viewBox="0 0 16 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
15-
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
16-
<g id="Getting-started" transform="translate(-795.000000, -55.000000)" fill="#0083CA" fill-rule="nonzero">
17-
<g id="button" transform="translate(776.000000, 43.000000)">
18-
<g id="Group" transform="translate(19.000000, 12.000000)">
19-
<path d="M0.705882353,3.93153323e-06 C0.308729412,0.00284370282 0.00242352941,0.403425659 0,0.715912659 L0,20.2840893 C4.70588235e-05,20.6589153 0.336305882,20.9999503 0.705882353,20.999998 L15.2941172,20.999998 C15.6636936,20.9999503 15.9999525,20.6589153 15.9999995,20.2840893 L15.9999995,5.01136502 C15.9999995,4.82377069 15.9246819,4.6371476 15.7941172,4.50426301 L11.5588231,0.208810644 C11.4277878,0.0763961655 11.2437878,-0.000447090965 11.0588231,3.93153326e-06 L0.705882353,3.93153323e-06 Z M1.41176471,1.43182139 L10.3529407,1.43182139 L10.3529407,5.01136502 C10.3529878,5.38620529 10.6892466,5.72722602 11.0588231,5.72727375 L14.5882348,5.72727375 L14.5882348,19.5681806 L1.41176471,19.5681806 L1.41176471,1.43182139 Z M11.7647054,2.43856803 L13.595576,4.2954563 L11.7647054,4.2954563 L11.7647054,2.43856803 Z M3.29411765,8.11363618 C2.90428235,8.11363618 2.58823529,8.43414851 2.58823529,8.8295449 C2.58823529,9.22491743 2.90428235,9.54545363 3.29411765,9.54545363 L12.7058819,9.54545363 C13.0957407,9.54545363 13.4117642,9.22491743 13.4117642,8.8295449 C13.4117642,8.43414851 13.0957407,8.11363618 12.7058819,8.11363618 L3.29411765,8.11363618 Z M3.29411765,11.9318208 C2.90428235,11.9318208 2.58823529,12.2523332 2.58823529,12.6477296 C2.58823529,13.0431021 2.90428235,13.3636383 3.29411765,13.3636383 L12.7058819,13.3636383 C13.0957407,13.3636383 13.4117642,13.0431021 13.4117642,12.6477296 C13.4117642,12.2523332 13.0957407,11.9318208 12.7058819,11.9318208 L3.29411765,11.9318208 Z M3.29411765,15.7500007 C2.90428235,15.7500007 2.58823529,16.070513 2.58823529,16.4659094 C2.58823529,16.861282 2.90428235,17.1818182 3.29411765,17.1818182 L12.7058819,17.1818182 C13.0957407,17.1818182 13.4117642,16.861282 13.4117642,16.4659094 C13.4117642,16.070513 13.0957407,15.7500007 12.7058819,15.7500007 L3.29411765,15.7500007 Z" id="Shape"></path>
20-
</g>
21-
</g>
22-
</g>
23-
</g>
24-
</svg>
25-
&nbsp;
26-
<span>Docs & Guides</span></a>
12+
<li class="nav-item cw-navbar-item cw-header-link-docs">
13+
<a class="nav-link cw-nav-link cw-header-link-text" href="gettingstarted.html">Docs</a>
14+
</li>
15+
<li class="nav-item cw-navbar-item cw-header-link-news">
16+
<a class="nav-link cw-nav-link cw-header-link-text" href="news03.html">News</a>
2717
</li>
2818

2919
<li class="nav-item cw-navbar-item cw-header-link">

docs/_layouts/news.html

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{% include header-fixedtop.html %}
2+
<!-- Bootstrap row -->
3+
<div class="row" id="body-row">
4+
<!-- Sidebar -->
5+
<div id="sidebar-container" class="bg-light" role="navigation" aria-label="sidebar">
6+
<!-- Bootstrap List Group -->
7+
<ul class="list-group sticky-top bg-light cw-sticky-offset">
8+
9+
<!-- Hard coded TOC -->
10+
<!-- Start single page getting started -->
11+
12+
<a href="news03.html"
13+
{% assign cls = "bg-light list-group-item list-group-item-action" %}
14+
{% if "/news03" == page.url %}
15+
{% assign cls = "cw-current-page bg-light list-group-item list-group-item-action" %}
16+
{% endif %}
17+
class="{{cls}}">
18+
Codewind 0.3
19+
</a>
20+
21+
<a href="newstechpreview.html"
22+
{% assign cls = "bg-light list-group-item list-group-item-action" %}
23+
{% if "/newstechpreview" == page.url %}
24+
{% assign cls = "cw-current-page bg-light list-group-item list-group-item-action" %}
25+
{% endif %}
26+
class="{{cls}}">
27+
Codewind tech preview
28+
</a>
29+
30+
<!-- END hard coded TOC -->
31+
32+
33+
</ul>
34+
<!-- List Group END-->
35+
</div>
36+
<!-- sidebar-container END -->
37+
<!-- MAIN -->
38+
<div id="content-container">
39+
<div class="py-5 px-5">
40+
<div class="cw-docs-spacer"></div>
41+
<div role="main">{{ content }}</div>
42+
</div>
43+
44+
</div>
45+
46+
</div>
47+
{% include footer.html %}
48+
<!-- Main Col END -->
49+
{% include body-end.html %}

docs/_news/news03.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: docs
2+
layout: news
33
title: New for Codewind 0.3
44
description: New for Codewind 0.3
55
keywords: news, new, updates, update, version

docs/_news/newstechpreview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: docs
2+
layout: news
33
title: New for Codewind tech preview
44
description: New for Codewind tech preview
55
keywords: news, new, updates, update, techpreview

docs/css/styles.css

+14
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,21 @@ code {
5050
position: relative;
5151
left: 70px;
5252
}
53+
.cw-header-link-text {
54+
font-size: 16px;
55+
font-weight: 600;
56+
}
57+
.cw-header-link-text:hover {
58+
font-size: 16px;
59+
font-weight: 600;
60+
}
61+
.cw-header-link-news {
62+
padding-right: 33px;
63+
}
5364

65+
.cw-header-link-docs {
66+
padding-right:45px;
67+
}
5468
.cw-navbar-padding {
5569
padding-right: 70px;
5670
}

0 commit comments

Comments
 (0)