Remove static images, fix api link parser

This commit is contained in:
Aaron Carlino 2019-11-14 12:00:41 +13:00
parent 3588d07729
commit 8195e9f7a7
16 changed files with 10 additions and 2 deletions

View File

@ -7,6 +7,7 @@ module.exports = {
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sass`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-source-filesystem`,
options: {
@ -37,6 +38,13 @@ module.exports = {
options: {
plugins: [
'gatsby-remark-prismjs',
`gatsby-remark-copy-linked-files`,
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 850,
},
},
]
}
},

View File

@ -1,6 +1,6 @@
const cleanApiTags = (html: string): string => {
const cleanApiTags = (html: string): string => {
return html.replace(
/\[api:(.*?)\]\s/,
/\[api:(.*?)\][^(]/,
(_, query) => `<a href="${query}">${query}</a> `
)
};

Binary file not shown.

Before

Width:  |  Height:  |  Size: 327 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB