Added youtube embeds and dates to release notes

This commit is contained in:
Mitchell McCaffrey 2020-07-01 20:03:48 +10:00
parent 9be997799d
commit 7538e65d0c
9 changed files with 58 additions and 2 deletions

View File

@ -1,9 +1,15 @@
import React from "react";
import { Text, Image as UIImage, Link, Message } from "theme-ui";
import {
Text,
Image as UIImage,
Link as UILink,
Message,
Embed,
} from "theme-ui";
import ReactMarkdown from "react-markdown";
function Paragraph(props) {
return <Text as="p" variant="body2" {...props} />;
return <Text variant="body2" {...props} />;
}
function Heading({ level, ...props }) {
@ -93,6 +99,16 @@ function TableCell({ children }) {
);
}
function Link({ href, children }) {
const linkText = children[0].props.value;
if (linkText === "embed:") {
return <Embed src={href} />;
} else {
console.log(href);
return <UILink href={href}>{children}</UILink>;
}
}
function Markdown({ source }) {
const renderers = {
paragraph: Paragraph,

View File

@ -1,3 +1,5 @@
[embed:](https://www.youtube.com/embed/aOTvQOrpNo4)
## Major Changes
### Drawing
@ -19,3 +21,7 @@ To access options for the brush with the brush tool selected click it once more
- With the added colours for map drawing the token status rings have more colour options
[Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/g5d00w/beta_v110_release_drawing_and_fog_of_war/)
---
Apr 22 2020

View File

@ -1,3 +1,5 @@
[embed:](https://www.youtube.com/embed/IhSS24d4zlM)
## Major Changes
### Saved Maps
@ -34,3 +36,7 @@ The third tool is a new shape tool, hopefully this should be more precise then t
- Fixed a bug that would prevent maps from being sent to others, hopefully this should fix blank screen issues for some. I'm still trying to track these issues down but this should help some cases.
[Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/gavu2g/beta_v120_release_saved_maps_and_reworked_drawing/)
---
May 01 2020

View File

@ -6,3 +6,7 @@
- Added a new release notes page on the site which shows all the release notes in one place.
[Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/ggyiz8/beta_v121_release_connection_issues_and_map/)
---
May 11 2020

View File

@ -1,3 +1,5 @@
[embed:](https://www.youtube.com/embed/Y7sEgoopz4E)
## Major Changes
### Dice Rolling
@ -37,3 +39,7 @@ Map, tokens, drawing and fog have all been unified into one system which leads t
- A new visual display and method for deleting tokens from the map.
[Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/gshfrz/beta_v130_release_dice_rolling_and_custom_tokens/)
---
May 29 2020

View File

@ -7,3 +7,7 @@
- Added the ability to erase multiple shapes at a time by dragging over a shape with the eraser tool. This works for fog erase and toggle as well.
[Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/gtvwh9/beta_v131_release_bug_fixes_and_map_grids/)
---
Jun 01 2020

View File

@ -3,3 +3,7 @@
- Fixed a bug when loading a large amount of stored maps.
[Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/gy3st9/beta_v132_release_bug_fix/)
---
Jun 07 2020

View File

@ -5,3 +5,7 @@
[Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/ha301n/beta_v133_release_bug_fix_and_auto_reconnect/)
[Twitter](https://twitter.com/OwlbearRodeo/status/1272868031014727680?s=20)
---
Jun 17 2020

View File

@ -1,3 +1,5 @@
[embed:](https://www.youtube.com/embed/vtNpj-449B8)
## Major Changes
### Reworked Fog Tools
@ -69,3 +71,7 @@ When interacting with the map we now support keyboard shortcuts for quickly swit
[Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/hhbezp/beta_v140_release_new_fog_tools_and_shortcuts/)
[Twitter](https://twitter.com/OwlbearRodeo/status/1277169108958629888?s=20)
---
Jun 29 2020