Skip to content

Commit 59abb71

Browse files
committed
docs: update sidebar styles
1 parent f0e282e commit 59abb71

File tree

7 files changed

+47
-17
lines changed

7 files changed

+47
-17
lines changed

docs/gatsby-config.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,8 @@ const githubAPIOptions = {
7070
issues {
7171
totalCount
7272
}
73-
stargazers(first: 100) {
74-
edges {
75-
node {
76-
name
77-
login
78-
avatarUrl
79-
}
80-
}
73+
stargazers {
74+
totalCount
8175
}
8276
collaborators(first: 100) {
8377
edges {

docs/src/components/sidebar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ const MenuLinks = ({ allContent }) => {
1212
<li className="mb-1">
1313
<Link
1414
to={`${fm.path}`}
15-
className="text-gray-600 font-medium flex text-base"
15+
className="text-gray-600 font-medium flex text-base hover:text-gray-800 group"
1616
activeClassName="active text-primary"
1717
partiallyActive={true}
1818
>
1919
<i
20-
className={`mr-3 text-lg text-gray-600 active:text-primary ri-${fm.icon}`}
20+
className={`mr-3 text-lg text-gray-600 active:text-primary group-hover:text-gray-800 ri-${fm.icon}`}
2121
></i>
2222
<span className="flex-1">{fields.title}</span>
2323
{fm.skip && <i class="ri-anchor-fill"></i>}

docs/src/markdown/docs/main/core/commands.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ export default {
9292
};
9393
```
9494

95+
> If you want to exclude one or more files, you can simply add `_` prefix to the file name. For example, `/commands/_greeting.js`
96+
9597
### Anatomy of command
9698

9799
The only required property for a command is `run` . Everything else is optional.

docs/src/markdown/docs/main/core/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe("CLI", () => {
2828
});
2929
});
3030

31-
it("should log proper outout", async () => {
31+
it("should log proper output", async () => {
3232
let response = await testBed.run(["hello"]);
3333
expect(response).toContain("hello yoyo!");
3434
});

docs/src/markdown/docs/main/get-started/overview.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ Lesy is just a simple lightweight CLI framework helps you to build modern and pe
99
Whether you are building a dead simple app or more advanced app, Lesy lets you to write less code and get more. Here's the sample code for classic Hello world example.
1010

1111
```js
12+
#!/usr/bin/env node
13+
1214
const lesy = require("@lesy/compiler");
15+
const commands = [{ run: () => console.log("hello world") }];
1316

14-
lesy({
15-
commands: [{ run: () => console.log("hello world") }],
16-
}).parse();
17+
lesy({ commands }).parse();
1718
```
1819

1920
### Why Lesy?
@@ -29,7 +30,7 @@ lesy({
2930

3031
### Lesy playground
3132

32-
We have a setup a _playground_ for you to play around with it.
33+
We have setup a _playground_ for you to play around with it.
3334

3435
[Pilot Playground](https://codesandbox.io/s/lesy-pilot-playground-hzjgw?fontsize=14&hidenavigation=1&view=preview)
3536

docs/src/markdown/docs/plugins/docs/generator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default {
5858
This command will create a files in the destination folder. And the output file looks like,
5959

6060
```html
61-
<!-- dpath/to/estination/welcome.html -->
61+
<!-- path/to/estination/welcome.html -->
6262
<h1>Hello John</h1>
6363
```
6464

docs/src/styles/tailwind.css

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,15 @@ p {
5353
}
5454

5555
.content h4 {
56-
@apply my-10;
56+
@apply mb-4;
57+
@apply mt-10;
5758
@apply text-gray-800;
5859
@apply tracking-tighter;
5960
@apply font-semibold;
6061
@apply border-l-4;
6162
@apply border-gray-800;
6263
@apply pl-4;
64+
@apply leading-none;
6365
}
6466

6567
.content h4 a {
@@ -90,3 +92,34 @@ p {
9092
.gatsby-highlight {
9193
@apply mt-8;
9294
}
95+
96+
blockquote {
97+
@apply p-4;
98+
@apply rounded-md;
99+
@apply text-sm;
100+
@apply font-medium;
101+
@apply flex;
102+
@apply bg-blue-100;
103+
@apply text-blue-600;
104+
@apply border;
105+
@apply border-blue-200;
106+
}
107+
108+
blockquote:before {
109+
content: "\EE59";
110+
@apply text-blue-300;
111+
@apply text-2xl;
112+
@apply mr-5;
113+
@apply self-center;
114+
font-family: "remixicon" !important;
115+
}
116+
117+
blockquote p {
118+
@apply m-0;
119+
@apply inline;
120+
}
121+
122+
blockquote code.language-text.language-text {
123+
@apply bg-transparent;
124+
font-weight: 400 !important;
125+
}

0 commit comments

Comments
 (0)