Add links to the markdown reference on the docs (#1254)

This commit is contained in:
Emma
2023-08-02 17:02:51 -04:00
committed by GitHub
parent 6509d726b3
commit 0d15024bd2
5 changed files with 18 additions and 21 deletions

View File

@@ -524,26 +524,17 @@
.text-link { .text-link {
color: var(--color-link); color: var(--color-link);
text-decoration: underline;
&:focus-visible, &:focus-visible,
&:hover { &:hover {
color: var(--color-link-hover); color: var(--color-link-hover);
cursor: pointer; cursor: pointer;
text-decoration: underline;
} }
&:active { &:active {
color: var(--color-link-active); color: var(--color-link-active);
} }
&.no-underline {
text-decoration: none;
&:hover,
&:focus-visible {
text-decoration: underline;
}
}
} }
.title-link { .title-link {

View File

@@ -5,9 +5,9 @@
<p> <p>
Modding should be safe for everyone, so we take abuse and malicious intent seriously at Modding should be safe for everyone, so we take abuse and malicious intent seriously at
Modrinth. We want to hear about harmful content on the site that violates our Modrinth. We want to hear about harmful content on the site that violates our
<nuxt-link to="/legal/terms"> ToS </nuxt-link> and <nuxt-link class="text-link" to="/legal/terms">ToS</nuxt-link> and
<nuxt-link to="/legal/rules"> Rules </nuxt-link>. Rest assured, well keep your <nuxt-link class="text-link" to="/legal/rules">Rules</nuxt-link>. Rest assured, well keep
identifying information private. your identifying information private.
</p> </p>
<p v-if="itemType === 'project' || itemType === 'version'"> <p v-if="itemType === 'project' || itemType === 'version'">
Please <strong>do not</strong> use this to report bugs with the project itself. This form Please <strong>do not</strong> use this to report bugs with the project itself. This form
@@ -33,7 +33,15 @@
/> />
<label class="report-label" for="additional-information"> <label class="report-label" for="additional-information">
<strong>Additional information</strong> <strong>Additional information</strong>
<span> Include links and images if possible. Markdown formatting is supported. </span> <span>
Include links and images if possible. This editor supports
<a
class="text-link"
href="https://docs.modrinth.com/docs/tutorials/markdown/"
target="_blank"
>Markdown formatting</a
>.
</span>
</label> </label>
<div class="textarea-wrapper"> <div class="textarea-wrapper">
<Chips v-model="bodyViewType" class="separator" :items="['source', 'preview']" /> <Chips v-model="bodyViewType" class="separator" :items="['source', 'preview']" />

View File

@@ -119,7 +119,7 @@
<VersionIcon /> <VersionIcon />
<nuxt-link <nuxt-link
:to="getVersionLink(notif.extra_data.project, notif.extra_data.version)" :to="getVersionLink(notif.extra_data.project, notif.extra_data.version)"
class="text-link no-underline" class="text-link"
> >
{{ notif.extra_data.version.name }} {{ notif.extra_data.version.name }}
</nuxt-link> </nuxt-link>

View File

@@ -7,10 +7,9 @@
You can type an extended description of your mod here. This editor supports You can type an extended description of your mod here. This editor supports
<a <a
class="text-link" class="text-link"
href="https://guides.github.com/features/mastering-markdown/" href="https://docs.modrinth.com/docs/tutorials/markdown/"
target="_blank" target="_blank"
rel="noopener" >Markdown formatting</a
>Markdown</a
>. HTML can also be used inside your description, not including styles, scripts, and >. HTML can also be used inside your description, not including styles, scripts, and
iframes (though YouTube iframes are allowed). iframes (though YouTube iframes are allowed).
<span class="label__subdescription"> <span class="label__subdescription">

View File

@@ -206,10 +206,9 @@
>This editor supports >This editor supports
<a <a
class="text-link" class="text-link"
href="https://guides.github.com/features/mastering-markdown/" href="https://docs.modrinth.com/docs/tutorials/markdown/"
target="_blank" target="_blank"
rel="noopener" >Markdown formatting</a
>Markdown</a
>. HTML can also be used inside your changelog, not including styles, scripts, and >. HTML can also be used inside your changelog, not including styles, scripts, and
iframes. iframes.
</span> </span>