Documentation fixes

This commit is contained in:
Elio Struyf
2021-08-31 11:55:08 +02:00
parent a554705cab
commit bb1ea17d95
3 changed files with 9 additions and 4 deletions
+4 -3
View File
@@ -9,9 +9,6 @@ export interface IMarkdownProps {
}
export const Markdown: React.FunctionComponent<IMarkdownProps> = ({content}: React.PropsWithChildren<IMarkdownProps>) => {
if (!content) {
return null;
}
const getTitle = (props: any) => {
const title = props?.children.length > 0 ? `${props?.children[0] as string}` : "";
@@ -32,6 +29,10 @@ export const Markdown: React.FunctionComponent<IMarkdownProps> = ({content}: Rea
}
}
}, ['']);
if (!content) {
return null;
}
return (
<div className={`markdown`}>
+1 -1
View File
@@ -26,7 +26,7 @@ export const PageInfo: React.FunctionComponent<IPageInfoProps> = ({page}: React.
}
<div className="mt-2 text-sm">
<p>Did you spot an issue in our documentation, or want to contribute? Edit this page on <a className={`text-teal-500 hover:text-teal-900`} href={`${Extension.githubLink}/edit/main/docs/content/docs/${page.fileName}.md`} target="_blank">Github</a>!</p>
<p>Did you spot an issue in our documentation, or want to contribute? Edit this page on <a className={`text-teal-500 hover:text-teal-900`} href={`${Extension.githubLink}/edit/main/docs/content/docs/${page.fileName}.md`} target="_blank" rel={`noopener noreferrer`}>Github</a>!</p>
</div>
</div>
);
+4
View File
@@ -1,5 +1,9 @@
# Change Log
## [3.0.2] - 2021-08-31
- [#82](https://github.com/estruyf/vscode-front-matter/issues/82): Hide the register and unregister commands from the command palette
## [3.0.1] - 2021-08-30
- [#79](https://github.com/estruyf/vscode-front-matter/issues/79): Fix scrollbar not visible on the welcome screen