mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
style-guide.md: add tip to view file locally (#1928)
This commit is contained in:
parent
4e245b2b17
commit
c93f4b96f5
1 changed files with 7 additions and 1 deletions
|
@ -33,6 +33,12 @@ tldrl -f {{page.md}}
|
|||
For other ways to use `tldrl`, such as linting an entire directory, check out (what else!)
|
||||
[`tldr tldrl`](https://github.com/tldr-pages/tldr/blob/master/pages/common/tldrl.md)
|
||||
|
||||
If you're using the Node.js client of `tldr`, you can preview a page locally using the `-f` flag (aka `--render`):
|
||||
|
||||
```
|
||||
tldr -f {{page.md}}
|
||||
```
|
||||
|
||||
## Token syntax
|
||||
|
||||
User-provided values should use the `{{token}}` syntax
|
||||
|
@ -58,4 +64,4 @@ Keep the following guidelines in mind when choosing tokens:
|
|||
For example, use `iostat {{2}}` rather than `iostat {{interval_in_secs}}`.
|
||||
|
||||
In general, tokens should make it as intuitive as possible
|
||||
to figure out how to use the command and fill it in with values.
|
||||
to figure out how to use the command and fill it in with values.
|
||||
|
|
Loading…
Add table
Reference in a new issue