Skip to content

Commit 3452d64

Browse files
committed
#11 add css for nav bar and enable prism highlighter for yml, ruby and bash
1 parent 5eab2ac commit 3452d64

File tree

3 files changed

+101
-3
lines changed

3 files changed

+101
-3
lines changed

docs/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@
7676
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
7777
<script src="https://cdn.jsdelivr.net/npm/docsify-themeable@0"></script>
7878
<script src="https://cdn.jsdelivr.net/npm/docsify-copy-code@2"></script>
79+
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.20.0/components/prism-bash.min.js"></script>
80+
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.20.0/components/prism-yaml.js"></script>
81+
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.20.0/components/prism-ruby.min.js"></script>
7982
<script src="https://cdn.jsdelivr.net/npm/docsify-pagination@2/dist/docsify-pagination.min.js"></script>
8083
<script src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@3/dist/docsify-themeable/main.min.js" type="text/javascript"></script>
8184
<script src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@3/dist/docsify-themeable/index.min.js" type="text/javascript">

docs/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Install
44

5-
```
5+
```bash
66
sls plugin install -n serverless-ruby-layer
77
```
88

@@ -12,7 +12,7 @@ sls plugin install -n serverless-ruby-layer
1212

1313
*`serverless.yml`*
1414

15-
```YML
15+
```yml
1616
service: basic
1717

1818
plugins:

docs/theme-custom.css

Lines changed: 96 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,99 @@
33
background-image: var(--logoImage);
44
background-size: contain;
55
height: 60px;
6-
}
6+
}
7+
8+
.app-nav {
9+
margin: 15px 60px 0 0;
10+
position: absolute;
11+
right: 0;
12+
text-align: right;
13+
z-index: 10
14+
}
15+
16+
.app-nav.no-badge {
17+
margin-right: 25px
18+
}
19+
20+
.app-nav p {
21+
margin: 0
22+
}
23+
24+
.app-nav>a {
25+
margin: 0 1rem;
26+
padding: 5px 0
27+
}
28+
29+
.app-nav li,
30+
.app-nav ul {
31+
display: inline-block;
32+
list-style: none;
33+
margin: 0
34+
}
35+
36+
.app-nav a {
37+
color: inherit;
38+
font-size: 16px;
39+
text-decoration: none;
40+
transition: color .3s
41+
}
42+
43+
.app-nav a.active,
44+
.app-nav a:hover {
45+
color: var(--theme-color)
46+
}
47+
48+
.app-nav a.active {
49+
border-bottom: 2px solid var(--theme-color)
50+
}
51+
52+
.app-nav li {
53+
display: inline-block;
54+
margin: 0 1rem;
55+
padding: 5px 0;
56+
position: relative;
57+
cursor: pointer
58+
}
59+
60+
.app-nav li ul {
61+
background-color: #fff;
62+
border: 1px solid;
63+
border-color: #ddd #ddd #ccc;
64+
border-radius: 4px;
65+
box-sizing: border-box;
66+
display: none;
67+
max-height: calc(100vh - 61px);
68+
overflow-y: auto;
69+
padding: 10px 0;
70+
position: absolute;
71+
right: -15px;
72+
text-align: left;
73+
top: 100%;
74+
white-space: nowrap
75+
}
76+
77+
.app-nav li ul li {
78+
display: block;
79+
font-size: 14px;
80+
line-height: 1rem;
81+
margin: 8px 14px;
82+
white-space: nowrap
83+
}
84+
85+
.app-nav li ul a {
86+
display: block;
87+
font-size: inherit;
88+
margin: 0;
89+
padding: 0
90+
}
91+
92+
.app-nav li ul a.active {
93+
border-bottom: 0
94+
}
95+
96+
.app-nav li:hover ul {
97+
display: block
98+
}
99+
#docsify-darklight-theme {
100+
top:100px;
101+
}

0 commit comments

Comments
 (0)