1
0
mirror of synced 2025-12-20 02:19:14 -05:00

migrate away from AWS S3 (#17669)

This commit is contained in:
Rachael Sewell
2021-02-12 10:25:45 -08:00
committed by GitHub
parent 2df6837969
commit 01e52046f0
414 changed files with 1035 additions and 637 deletions

View File

@@ -12,7 +12,7 @@ const remarkCodeExtra = require('remark-code-extra')
const codeHeader = require('./plugins/code-header')
const rewriteLocalLinks = require('./plugins/rewrite-local-links')
const useEnglishHeadings = require('./plugins/use-english-headings')
const rewriteAssetPathsToS3 = require('./plugins/rewrite-asset-paths-to-s3')
const rewriteLegacyAssetPaths = require('./plugins/rewrite-legacy-asset-paths')
const wrapInElement = require('./plugins/wrap-in-element')
module.exports = function createProcessor (context) {
@@ -26,7 +26,7 @@ module.exports = function createProcessor (context) {
.use(autolinkHeadings, { behavior: 'wrap' })
.use(highlight, { languages: { graphql }, subset: false })
.use(raw)
.use(rewriteAssetPathsToS3, context)
.use(rewriteLegacyAssetPaths, context)
.use(wrapInElement, { selector: 'ol > li img', wrapper: 'div.procedural-image-wrapper' })
.use(rewriteLocalLinks, { languageCode: context.currentLanguage, version: context.currentVersion })
.use(html)