Skip to content

Commit 1cd80f5

Browse files
committed
refactor: clean-up contents and themes
1 parent 8fef3c6 commit 1cd80f5

9 files changed

Lines changed: 110 additions & 27 deletions

File tree

assets/js/highlight.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,42 @@ hljs.registerLanguage('go', go);
2626
hljs.registerLanguage('rust', rust);
2727
hljs.registerLanguage('typescript', typescript);
2828
hljs.registerLanguage('protobuf', protobuf);
29+
hljs.registerLanguage('url', function() {
30+
return {
31+
case_insensitive: true,
32+
contains: [
33+
hljs.HASH_COMMENT_MODE,
34+
{
35+
className: "code", // (protocol: http) color #397300
36+
begin: /(https?|ftp|file)(?=(:\/\/))/,
37+
},
38+
{
39+
className: "meta hljs-emphasis", // (hostname: api.someservice.io) color #1f7199 italic
40+
begin: /(?<=((https?|ftp|file):\/\/))[^@:\/\?\n\r]+/,
41+
},
42+
{
43+
className: "comment", // (authority: @www.example.com) color #697070
44+
begin: /(?<=((https?|ftp|file):\/\/[^:\/@\n\r]+)@)[^:\/\n\r]+/,
45+
},
46+
{
47+
className: "tag hljs-emphasis", // (port: 8000) color #444a italic
48+
begin: /(?<=((https?|ftp|file):\/\/[^:\/\n\r]+):)[0-9]+/,
49+
},
50+
{
51+
className: "symbol", // (pathname: path1/path2/dothis) color #ab5656
52+
begin: /(?<=((https?|ftp|file):\/\/[^\/\n\r]+)\/)[^?\n\r]+/,
53+
},
54+
{
55+
className: "literal", // (attribute) color #695
56+
begin: /(?<=[?&])[^=?&\n\r]+/,
57+
},
58+
{
59+
className: "meta", // (value) color #1f7199
60+
begin: /(?<=\=)[^=?&\n\r]+/,
61+
}
62+
],
63+
}
64+
});
2965

3066
document.addEventListener('DOMContentLoaded', () => {
3167
document.querySelectorAll('pre code:not(.language-mermaid)').forEach((block) => {

assets/scss/common/_variables.scss

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ $color-btn-text: $white;
3333
// STARFLEIT
3434

3535
$starfleit: #642EFF;
36-
$starfleit-primary: #00ffd1;
37-
$starfleit-haze: #d4ceff;
38-
$starfleit-lighten: lighten($starfleit, 5%);
36+
$starfleit-primary: #80FFE8;
37+
$starfleit-haze: lighten($starfleit, 30%);
38+
$starfleit-lighten: lighten($starfleit, 10%);
39+
$starfleit-darken: darken($starfleit, 20%);
40+
$starfleit-primary-lighten: lighten($starfleit-primary, 20%);
3941
$primary: $starfleit-primary;
4042

4143
// Options
@@ -228,6 +230,19 @@ body .docs-sidebar {
228230
border-right: 1px solid $starfleit-lighten;
229231
}
230232

233+
body pre code::-webkit-scrollbar-thumb {
234+
background: $starfleit-lighten;
235+
}
236+
237+
body pre code:hover {
238+
scrollbar-width: thin;
239+
scrollbar-color: $starfleit-primary transparent;
240+
}
241+
242+
body pre code::-webkit-scrollbar-thumb:hover {
243+
background: $starfleit-primary;
244+
}
245+
231246
body .docs-links,
232247
body .docs-toc {
233248
scrollbar-width: thin;
@@ -261,6 +276,7 @@ body .form-control.is-search {
261276
body .card {
262277
background: $starfleit;
263278
color: $starfleit-primary;
279+
border-color: $starfleit-lighten;
264280
}
265281

266282
body code {
@@ -292,3 +308,32 @@ body .btn-toggle:before {
292308
body .alert-doks {
293309
background-color: $starfleit-haze;
294310
}
311+
312+
body .alert-doks a {
313+
color: $starfleit;
314+
}
315+
316+
body .alert-doks a:hover {
317+
color: $starfleit-darken;
318+
}
319+
320+
321+
body .alert-info {
322+
background-color: $starfleit-primary-lighten;
323+
}
324+
325+
body .alert-info a {
326+
color: $starfleit;
327+
}
328+
329+
body .alert-info a:hover {
330+
color: $starfleit-darken;
331+
}
332+
333+
body .alert-warning a {
334+
color: $starfleit;
335+
}
336+
337+
body .alert-warning a:hover {
338+
color: $starfleit-darken;
339+
}
File renamed without changes.

content/en/docs/howto/create-your-own-pair.md renamed to content/en/docs/how-to/create-your-own-pair.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ title: Create Your Own Pair
33
weight: 30
44
---
55

6-
PLEASE CHECK [HERE](#important) for additional action on Fetch.ai
6+
{{< alert context="warning" >}}
7+
**Important**
8+
9+
If you want to register a brand-new Fetch.ai native or IBC token that are not listed yet, please find STARFLEIT team on [#STARFLEIT channel on Fetch.ai Discord](https://bit.ly/3ra5uMI) (for metadata)
10+
{{< /alert >}}
711

812
## Instantiation by Contract Address
913

@@ -40,10 +44,6 @@ This is a JSON constructor of pair contract.
4044

4145
Then, you may execute the contract with the organized JSON above.
4246

43-
## IMPORTANT
44-
45-
- If you want to register a brand-new Fetch.ai native or IBC token that are not listed yet, please find STARFLEIT team on [#STARFLEIT channel on Fetch.ai Discord](https://bit.ly/3ra5uMI) (for metadata)
46-
4747
## Provide initial liquidity
4848

4949
STARFLEIT pair contract knows the swap rate by the both of the remained assets on the pool. But if you have just created your own pair but no liquidity provided, The contract cannot calculate the rate and all swap & swap simulation raise fail. So, STARFLEIT UI does not list the pair unless the initial liquidity is provided. So, if you want finalize the listing, you should provide the initial liquidity and it should be done on CLI.
File renamed without changes.

content/en/docs/howto/token.md renamed to content/en/docs/how-to/mint-your-cw20-token.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,16 @@ weight: 20
88
This token contract is implemented under the CW20 standard and it fully supports STARFLEIT feature.
99
Except for any function of your token itself contains more than an asset, we recommend minting your own token by **instantiating this binary**, rather than developing your own.
1010

11-
---
12-
> **NOTE**
13-
>
14-
> We strongly encourage you to create by the pre-stored binary.\
15-
> There are some advantages below:
16-
>
17-
> * These token, pair contract codes are well audited and continuously maintained. Don't have to audit for yours additionally.
18-
> * STARFLEIT only lists Token factory-created pairs.
19-
> * You don't have to migrate your contract whenever there is any major upgrade of Fetch.ai network. STARFLEIT will help you to migrate so that you don't have to take any action.
20-
>
21-
---
11+
{{< alert context="info" >}}
12+
**Note**
13+
14+
We strongly encourage you to create by the pre-stored binary.\
15+
There are some advantages below:
16+
17+
* These token, pair contract codes are well audited and continuously maintained. Don't have to audit for yours additionally.
18+
* STARFLEIT only lists Token factory-created pairs.
19+
* You don't have to migrate your contract whenever there is any major upgrade of Fetch.ai network. STARFLEIT will help you to migrate so that you don't have to take any action.
20+
{{< /alert >}}
2221

2322
## How to Mint
2423

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ fetchd query wasm contract-state smart fetch1kmag3937lrl6dtsv29mlfsedzngl9egv5c3
2020

2121
- RESTFul API
2222

23-
```URL
23+
```url
2424
<light_clinet_address>/cosmwasm/wasm/v1/contract/<contract_address>/smart/<JSON_formed_message_with_base64>
2525
```
2626

2727
ex)
2828

29-
```URL
29+
```url
3030
https://rest-dorado.fetch.ai/cosmwasm/wasm/v1/contract/fetch1xjn7ljgkzn8agscr8g6xnnhn3azu3kfkuga8uqufr36sc75f8s0sxyhnyq/smart/eyJwYWlycyI6e319
3131
```
3232

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fetchd tx wasm execute <contract-address> <handle-msg> <coins>
2727
- `handle-msg`: The method and parameters of the execution, which will be explained following lines
2828
- `coins`: Transaction execution fee
2929

30-
To learn more about the general rules for `handle-msg`, please refer to this [link]({{< relref "/docs/howto/query" >}}).
30+
To learn more about the general rules for `handle-msg`, please refer to this [link]({{< relref "/docs/how-to/query" >}}).
3131

3232
```json
3333
{

content/en/docs/introduction/about.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ A **liquidity provider** adds equal value of two assets to their corresponding S
2424
**STARFLEIT Web Application** is the official web front-end interface for swapping Fetch.ai native tokens and CW20 tokens. The web application is located [here](https://app.starfleit.io).
2525

2626
A wallet is required to interact with STARFLEIT Web Application.
27-
> For web,
28-
>
29-
> - [Fetch.ai network wallet](https://chrome.google.com/webstore/detail/fetchai-network-wallet/ellkdbaphhldpeajbepobaecooaoafpg?hl=en-GB)
30-
>
31-
> And will be more
27+
28+
{{< alert >}}
29+
For web,
30+
31+
- [Fetch.ai network wallet](https://chrome.google.com/webstore/detail/fetchai-network-wallet/ellkdbaphhldpeajbepobaecooaoafpg?hl=en-GB)
32+
33+
And will be more
34+
{{< /alert >}}
3235

3336
Before executing a swap in the web application, your connected wallet must have source tokens and transaction fee. Once you generate a transaction in the proper format, it will prompt you to sign the transaction by entering your password.

0 commit comments

Comments
 (0)