Skip to content

Commit

Permalink
Fix internal links on landing page of website
Browse files Browse the repository at this point in the history
  • Loading branch information
nstrayer committed Nov 13, 2023
1 parent a904975 commit 4335d84
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inst/website/src/assets/markdown/landing.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Image } from "astro:assets";
import InternalLink from "@/components/InternalLink.astro";

The goal of the Shiny Ui Editor is to allow people to build the broad-level UI for their Shiny app without writing code. The editor is intended for those who may not be comfortable with the HTML-style code of Shiny's UI functions or who simply don't want to fiddle with sizes to get things laid out correctly.

Expand Down Expand Up @@ -55,7 +56,7 @@ The things most useful for feedback at this stage are:

## Getting help

If the UI is confusing, there's a tour mode that walks you through the various components of the Ui Editor. Simple click the button titled "Tour App" to enter the tour mode. Also check out the [FAQs section](FAQs) and the ["How To" page](how-to).
If the UI is confusing, there's a tour mode that walks you through the various components of the Ui Editor. Simple click the button titled "Tour App" to enter the tour mode. Also check out the <InternalLink href="FAQs">FAQs section</InternalLink> and the <InternalLink href="how-to">"How To" page.</InternalLink>

## Trouble installing

Expand Down
18 changes: 18 additions & 0 deletions inst/website/src/components/InternalLink.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
interface Props {
href: string;
}
const { href } = Astro.props;
import { internalLink } from "@/lib/utils";
---


<a href={internalLink(href)}>
<slot />
</a>

0 comments on commit 4335d84

Please sign in to comment.