aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/tips-and-tricks.md
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2020-11-16 22:06:14 -0800
committerGitHub <noreply@github.com>2020-11-16 22:06:14 -0800
commita2e28229a90d3f1adb10cc256cc14b4d48d50c42 (patch)
tree0843266b36d9794e32142c0662ceae2aae59204c /docs/tips-and-tricks.md
parentade77e42578998abc44434c495b41bde37552fe0 (diff)
parent86f4680a5bc3b4cdfd865ff90d435fa7ad2d5376 (diff)
downloadhomer-a2e28229a90d3f1adb10cc256cc14b4d48d50c42.tar.gz
homer-a2e28229a90d3f1adb10cc256cc14b4d48d50c42.tar.zst
homer-a2e28229a90d3f1adb10cc256cc14b4d48d50c42.zip
Merge pull request #159 from simonporte/mainv20.11.2820.11.28
Minor edits on readme and documentation
Diffstat (limited to 'docs/tips-and-tricks.md')
-rw-r--r--docs/tips-and-tricks.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/tips-and-tricks.md b/docs/tips-and-tricks.md
index 9f35987..2719fc5 100644
--- a/docs/tips-and-tricks.md
+++ b/docs/tips-and-tricks.md
@@ -48,36 +48,36 @@ and then simply reference these pre-defined (anchored) tags in each item like so
48```yaml 48```yaml
49- name: "VS Code" 49- name: "VS Code"
50 logo: "/assets/vscode.png" 50 logo: "/assets/vscode.png"
51 subtitle: "Develope Code Anywhere, On Anything!" 51 subtitle: "Develop Code Anywhere, On Anything!"
52 <<: *App # Regerence to the predefined "App" Tag 52 <<: *App # Reference to the predefined "App" Tag
53 url: "https://vscode.example.com/" 53 url: "https://vscode.example.com/"
54 target: "_blank" # optional html tag target attribute 54 target: "_blank" # optional html tag target attribute
55```` 55````
56 56
57Then when Homer reads your config, it will substitute your anchors automatically, the the above example is equal to: 57Then when Homer reads your config, it will substitute your anchors automatically, the above example is equal to:
58 58
59```yaml 59```yaml
60- name: "VS Code" 60- name: "VS Code"
61 logo: "/assets/vscode.png" 61 logo: "/assets/vscode.png"
62 subtitle: "Develope Code Anywhere, On Anything!" 62 subtitle: "Develop Code Anywhere, On Anything!"
63 tag: "App" 63 tag: "App"
64 tagstyle: "is-medium is-info" 64 tagstyle: "is-medium is-info"
65 url: "https://vscode.example.com/" 65 url: "https://vscode.example.com/"
66 target: "_blank" # optional html tag target attribute 66 target: "_blank" # optional html tag target attribute
67``` 67```
68 68
69The end result is that if you want to update the name or style of any particular tag, just update it once, in the tags section! 69The end result is that if you want to update the name or style of any particular tag, just update it once, in the tags section!
70Great if you have a lot of services or a lot of tags! 70Great if you have a lot of services or a lot of tags!
71 71
72## Remotely edit your config with Code Server 72## Remotely edit your config with Code Server
73#### `by @JamiePhonic` 73#### `by @JamiePhonic`
74 74
75Homer doesn't yet provide a way to edit your configuration from inside Homer itself, but that doesn't mean it cant be done! 75Homer doesn't yet provide a way to edit your configuration from inside Homer itself, but that doesn't mean it can't be done!
76 76
77You can setup and use [Code-Server](https://github.com/cdr/code-server) to edit your `config.yml` file from anywhere! 77You can setup and use [Code-Server](https://github.com/cdr/code-server) to edit your `config.yml` file from anywhere!
78 78
79If you're running Homer in docker, you can setup a Code-Server container and pass your homer config directory into it. 79If you're running Homer in docker, you can setup a Code-Server container and pass your homer config directory into it.
80Simply pass your homer config directory as and extra -v parameter to your code-server container: 80Simply pass your homer config directory as an extra -v parameter to your code-server container:
81``` 81```
82-v '/your/local/homer/config-dir/':'/config/homer':'rw' 82-v '/your/local/homer/config-dir/':'/config/homer':'rw'
83``` 83```
@@ -85,7 +85,7 @@ This will map your homer config directory (For example, /docker/appdata/homer/)
85 85
86As a bonus, Code-Server puts the "current folder" as a parameter in the URL bar, so you could add a `links:` entry in Homer that points to your code-server instance with the directory pre-filled for essentially 1 click editing! 86As a bonus, Code-Server puts the "current folder" as a parameter in the URL bar, so you could add a `links:` entry in Homer that points to your code-server instance with the directory pre-filled for essentially 1 click editing!
87 87
88For example: 88For example:
89```yml 89```yml
90links: 90links:
91 - name: Edit config 91 - name: Edit config