Remove static images, fix api link parser
|
@ -7,6 +7,7 @@ module.exports = {
|
||||||
plugins: [
|
plugins: [
|
||||||
`gatsby-plugin-react-helmet`,
|
`gatsby-plugin-react-helmet`,
|
||||||
`gatsby-plugin-sass`,
|
`gatsby-plugin-sass`,
|
||||||
|
`gatsby-plugin-sharp`,
|
||||||
{
|
{
|
||||||
resolve: `gatsby-source-filesystem`,
|
resolve: `gatsby-source-filesystem`,
|
||||||
options: {
|
options: {
|
||||||
|
@ -37,6 +38,13 @@ module.exports = {
|
||||||
options: {
|
options: {
|
||||||
plugins: [
|
plugins: [
|
||||||
'gatsby-remark-prismjs',
|
'gatsby-remark-prismjs',
|
||||||
|
`gatsby-remark-copy-linked-files`,
|
||||||
|
{
|
||||||
|
resolve: `gatsby-remark-images`,
|
||||||
|
options: {
|
||||||
|
maxWidth: 850,
|
||||||
|
},
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const cleanApiTags = (html: string): string => {
|
const cleanApiTags = (html: string): string => {
|
||||||
return html.replace(
|
return html.replace(
|
||||||
/\[api:(.*?)\]\s/,
|
/\[api:(.*?)\][^(]/,
|
||||||
(_, query) => `<a href="${query}">${query}</a> `
|
(_, query) => `<a href="${query}">${query}</a> `
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
Before Width: | Height: | Size: 327 KiB |
Before Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 110 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 27 KiB |