Update documentation to include random matches, insert Windows 10 notice and update donation links

This commit is contained in:
Federico Terzi 2019-12-16 19:07:43 +01:00
parent 424090675c
commit 437ac039a7
7 changed files with 36 additions and 5 deletions

View File

@ -12,7 +12,10 @@
and I decided to make it open source because I thought it could be useful to many people.
</p>
<p class="bigger">If you liked the project, please consider making a small donation, it really helps :)</p>
<a class="btn btn-lg" target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FHNLR5DRS267E&source=url" role="button">Donate with PayPal</a>
<a target="_blank" href="https://github.com/sponsors/federico-terzi" role="button"><img src="/assets/images/githubsponsor.png" class="mbtn" /></a>
<a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FHNLR5DRS267E&source=url" role="button"><img src="/assets/images/paypal.png" class="mbtn" /></a>
</div>
</div>
</div>

View File

@ -5,4 +5,5 @@ $blackColor: #2d3436;
$veryBlackColor: #202426;
$greenDark: #00372c;
$yellowColor: #fdcb6e;
$orangeColor: #e17055;
$orangeColor: #e17055;
$pinkColor: #e84393;

View File

@ -25,7 +25,6 @@
.btn {
font-weight: 700;
font-size: 1.2em;
background-color: $orangeColor;
color: white !important;
padding: 10px 25px 10px 25px;
border-radius: 40px;
@ -35,4 +34,9 @@
font-size: 1.3em;
}
}
.mbtn {
height: 60px;
display: inline;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
assets/images/paypal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -303,4 +303,27 @@ found in the [official chrono documentation](https://docs.rs/chrono/0.3.1/chrono
params:
format: "%H:%M"
```
{% endraw %}
{% endraw %}
### Random Extension
Introduced in version 0.4.1, the **Random Extension** can be used to write non-deterministic replacement texts. Said in other words, you can now specify a set of possible expansions for a match, useful to avoid repetitions.
You can use this feature by declaring a variable of type `random` and then passing a number of `choices` as a parameter:
{% raw %}
```yaml
- trigger: ":quote"
replace: "{{output}}"
vars:
- name: output
type: random
params:
choices:
- "Every moment is a fresh beginning."
- "Everything you can imagine is real."
- "Whatever you do, do it well."
```
{% endraw %}
In this case, typing `:quote` will expand randomly to one of the tree quotes.

View File

@ -2,7 +2,7 @@
title: Install on Windows
layout: docs
---
The easiest way to install espanso on Windows is by using the official installer.
The easiest way to install espanso on Windows is by using the official installer. **Note: espanso currently supports Windows 10 only**.
### Using the Installer