diff options
author | simonporte <32496803+simonporte@users.noreply.github.com> | 2020-11-14 13:25:01 +0100 |
---|---|---|
committer | simonporte <32496803+simonporte@users.noreply.github.com> | 2020-11-14 13:25:01 +0100 |
commit | 86f4680a5bc3b4cdfd865ff90d435fa7ad2d5376 (patch) | |
tree | 0843266b36d9794e32142c0662ceae2aae59204c /docs/tips-and-tricks.md | |
parent | ade77e42578998abc44434c495b41bde37552fe0 (diff) | |
download | homer-86f4680a5bc3b4cdfd865ff90d435fa7ad2d5376.tar.gz homer-86f4680a5bc3b4cdfd865ff90d435fa7ad2d5376.tar.zst homer-86f4680a5bc3b4cdfd865ff90d435fa7ad2d5376.zip |
Minor edits on readme and documentation
Diffstat (limited to 'docs/tips-and-tricks.md')
-rw-r--r-- | docs/tips-and-tricks.md | 16 |
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 | ||
57 | Then when Homer reads your config, it will substitute your anchors automatically, the the above example is equal to: | 57 | Then 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 | ||
69 | The 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! | 69 | The 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! |
70 | Great if you have a lot of services or a lot of tags! | 70 | Great 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 | ||
75 | Homer doesn't yet provide a way to edit your configuration from inside Homer itself, but that doesn't mean it cant be done! | 75 | Homer 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 | ||
77 | You can setup and use [Code-Server](https://github.com/cdr/code-server) to edit your `config.yml` file from anywhere! | 77 | You can setup and use [Code-Server](https://github.com/cdr/code-server) to edit your `config.yml` file from anywhere! |
78 | 78 | ||
79 | If you're running Homer in docker, you can setup a Code-Server container and pass your homer config directory into it. | 79 | If you're running Homer in docker, you can setup a Code-Server container and pass your homer config directory into it. |
80 | Simply pass your homer config directory as and extra -v parameter to your code-server container: | 80 | Simply 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 | ||
86 | As 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! | 86 | As 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 | ||
88 | For example: | 88 | For example: |
89 | ```yml | 89 | ```yml |
90 | links: | 90 | links: |
91 | - name: Edit config | 91 | - name: Edit config |