Add targets to most of the doc links (#50)

* Add targets to most of the doc links. Should fix #49

* Prettified Code!

Co-authored-by: graywolf336 <graywolf336@users.noreply.github.com>
This commit is contained in:
Bradley Hilton
2021-02-26 14:38:55 -06:00
committed by GitHub
parent 3b69b59c0d
commit 5f1cacf093
12 changed files with 108 additions and 23 deletions

View File

@@ -104,15 +104,25 @@ export default function EditInstanceDetails() {
initialValue={instanceDetails.logo}
onChange={handleFieldChange}
/>
{instanceDetails.logo && <img src={'/logo'} alt="uploaded logo" className="logo-preview" />}
{instanceDetails.logo && <img src="/logo'" alt="uploaded logo" className="logo-preview" />}
<br />
<p className="description">
Increase your audience by appearing in the{' '}
<a href="https://directory.owncast.online" target="_blank" rel="noreferrer">
<strong>Owncast Directory</strong>
</a>. This is an external service run by the Owncast project. <a href="https://owncast.online/docs/directory/">Learn more</a>.
{!yp.instanceUrl && <div><br/>You must set your server URL above to enable the directory.</div>}
</a>
. This is an external service run by the Owncast project.{' '}
<a href="https://owncast.online/docs/directory/" target="_blank" rel="noopener noreferrer">
Learn more
</a>
.
{!yp.instanceUrl && (
<div>
<br />
You must set your server URL above to enable the directory.
</div>
)}
</p>
<div className="config-yp-container">

View File

@@ -91,7 +91,14 @@ export default function EditPageContent() {
<p className="description">
Edit the content of your page by using simple{' '}
<a href="https://www.markdownguide.org/basic-syntax/">Markdown syntax</a>.
<a
href="https://www.markdownguide.org/basic-syntax/"
target="_blank"
rel="noopener noreferrer"
>
Markdown syntax
</a>
.
</p>
<MdEditor

View File

@@ -107,7 +107,13 @@ export default function VideoLatency() {
<p className="description">
For interactive live streams you may want to experiment with a lower latency, for
non-interactive broadcasts you may want to increase it.{' '}
<a href="https://owncast.online/docs/encoding#latency-buffer">Read to learn more.</a>
<a
href="https://owncast.online/docs/encoding#latency-buffer"
target="_blank"
rel="noopener noreferrer"
>
Read to learn more.
</a>
</p>
<div className="segment-slider-container">

View File

@@ -173,8 +173,10 @@ export default function VideoVariantForm({
return (
<div className="config-variant-form">
<p className="description">
<a href="https://owncast.online/docs/video">Learn more</a> about how each of these settings
can impact the performance of your server.
<a href="https://owncast.online/docs/video" target="_blank" rel="noopener noreferrer">
Learn more
</a>{' '}
about how each of these settings can impact the performance of your server.
</p>
<Row gutter={16}>
@@ -187,7 +189,13 @@ export default function VideoVariantForm({
disabled={dataState.videoPassthrough}
/>
<p className="read-more-subtext">
<a href="https://owncast.online/docs/video/#cpu-usage">Read more about CPU usage.</a>
<a
href="https://owncast.online/docs/video/#cpu-usage"
target="_blank"
rel="noopener noreferrer"
>
Read more about CPU usage.
</a>
</p>
</div>
</Col>
@@ -216,7 +224,13 @@ export default function VideoVariantForm({
<p className="selected-value-note">{selectedVideoBRnote()}</p>
</div>
<p className="read-more-subtext">
<a href="https://owncast.online/docs/video/#bitrate">Read more about bitrates.</a>
<a
href="https://owncast.online/docs/video/#bitrate"
target="_blank"
rel="noopener noreferrer"
>
Read more about bitrates.
</a>
</p>
</div>
</Col>
@@ -231,7 +245,11 @@ export default function VideoVariantForm({
Resizing your content will take additional resources on your server. If you wish
to optionally resize your content for this stream output then you should either
set the width <strong>or</strong> the height to keep your aspect ratio.{' '}
<a href="https://owncast.online/docs/video/#resolution">
<a
href="https://owncast.online/docs/video/#resolution"
target="_blank"
rel="noopener noreferrer"
>
Read more about resolutions.
</a>
</p>
@@ -266,7 +284,11 @@ export default function VideoVariantForm({
used.
</p>
<p>
<a href="https://owncast.online/docs/video/#video-passthrough">
<a
href="https://owncast.online/docs/video/#video-passthrough"
target="_blank"
rel="noopener noreferrer"
>
Read the documentation before enabling, as it impacts your stream.
</a>
</p>
@@ -314,7 +336,13 @@ export default function VideoVariantForm({
<p className="selected-value-note">{selectedFramerateNote()}</p>
</div>
<p className="read-more-subtext">
<a href="https://owncast.online/docs/video/#framerate">Read more about framerates.</a>
<a
href="https://owncast.online/docs/video/#framerate"
target="_blank"
rel="noopener noreferrer"
>
Read more about framerates.
</a>
</p>
</div>
</Panel>

View File

@@ -204,7 +204,9 @@ export default function MainLayout(props) {
<Content className="main-content-container">{children}</Content>
<Footer className="footer-container">
<a href="https://owncast.online/">About Owncast v{versionNumber}</a>
<a href="https://owncast.online/" target="_blank" rel="noopener noreferrer">
About Owncast v{versionNumber}
</a>
</Footer>
</Layout>
</Layout>