-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: added anchor tags for settings (#2845)
- Loading branch information
Showing
14 changed files
with
82 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ The alias to show | |
|
||
Examples: | ||
|
||
$ mise alias get node lts-hydrogen | ||
20.0.0 | ||
$ mise alias get node lts-hydrogen | ||
20.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<script setup> | ||
import { data } from "/settings.data.ts"; | ||
import Setting from "/components/setting.vue"; | ||
const { child } = defineProps(["child", "level"]); | ||
const settings = child ? data.find((f) => f.key === child).settings : data; | ||
</script> | ||
|
||
<!-- <ul>--> | ||
<!-- <li v-for="setting in settings">--> | ||
<!-- <a v-if="!settings.settings" :href="`#${ setting.key }`"><code>{{ setting.key }}</code></a>--> | ||
<!-- <ul v-if="setting.settings">--> | ||
<!-- <li v-for="child in setting.settings">--> | ||
<!-- <a :href="`#${ child.key }`"><code>{{ child.key }}</code></a>--> | ||
<!-- </li>--> | ||
<!-- </ul>--> | ||
<!-- </li>--> | ||
<!-- </ul>--> | ||
|
||
<template> | ||
<Setting | ||
v-for="setting in settings.filter((f) => f.type)" | ||
:setting="setting" | ||
:key="setting.key" | ||
:level="level" | ||
/> | ||
|
||
<div v-for="child in settings.filter((f) => !f.type)"> | ||
<h2 :id="child.key"> | ||
<code>{{ child.key }}</code> | ||
<a :href="`#${child.key}`" class="header-anchor"></a> | ||
</h2> | ||
<Setting | ||
v-for="setting in child.settings" | ||
:setting="setting" | ||
:key="setting.key" | ||
:level="level + 1" | ||
/> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
# Settings | ||
|
||
<script setup> | ||
import { data } from '/settings.data.ts'; | ||
import Setting from '/components/setting.vue'; | ||
import Settings from '/components/settings.vue'; | ||
</script> | ||
|
||
The following is a list of all of mise's settings. These can be set via `mise settings set`, | ||
by directly modifying `~/.config/mise/config.toml` or local config, or via environment variables. | ||
|
||
Some of them also can be set via global CLI flags. | ||
|
||
<Setting v-for="setting in data.filter(f => f.type)" :setting="setting" :key="setting.key" :level="2" /> | ||
|
||
<div v-for="child in data.filter(f => !f.type)"> | ||
<h2><code>{{ child.key }}</code></h2> | ||
<Setting v-for="setting in child.settings" :setting="setting" :key="setting.key" :level="3" /> | ||
</div> | ||
<Settings :level="2" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters