Skip to content

Commit 1617505

Browse files
committed
docs: edit docs
1 parent 5316091 commit 1617505

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/cli-options.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ $ loppo --site "My Documents"
3434
$ loppo --theme oceandeep
3535
```
3636

37+
## --id
38+
39+
`--id` sets a site's ID (default is the dir name of the project).
40+
3741
## --direction
3842

3943
`--direction` sets the document's character direction. `ltr` is the default. It also could be setted as `rtl`.

docs/template-variables.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ They could be divided into two categories: site variables and page variables.
99
The site variables are the same within the whole site.
1010

1111
- site
12+
- id
1213
- dir
1314
- chapters
1415
- chaptersOrigin
@@ -17,7 +18,11 @@ The site variables are the same within the whole site.
1718

1819
### option.site
1920

20-
`option.site` is the site name.
21+
`option.site` is the site name (default is `Documents`).
22+
23+
### option.id
24+
25+
`option.id` is the site id (default is the dir name of the project).
2126

2227
### option.dir
2328

0 commit comments

Comments
 (0)