Skip to content

Commit efaf5f8

Browse files
authored
remove legacy asset plugin (github#23588)
1 parent e5f8d1c commit efaf5f8

File tree

3 files changed

+1
-51
lines changed

3 files changed

+1
-51
lines changed

content/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ Just add a hyphen on either the left, right, or both sides to indicate that ther
334334
{%- ifversion fpt %}
335335
```
336336

337-
## Links and image paths
337+
## Links
338338

339339
Links to docs in the `docs-internal` repository must start with a product ID (like `/actions` or `/admin`) and contain the entire filepath, but not the file extension. For example, `/actions/creating-actions/about-custom-actions`.
340340

@@ -356,8 +356,6 @@ and when viewed on GitHub Enterprise Server docs, the version is included as wel
356356
/en/[email protected]/github/writing-on-github/creating-a-saved-reply
357357
```
358358

359-
There are transformations for image paths in GitHub Enterprise Server (versions 2.20-3.0) only. Once those versions are deprecation, there will no longer be any transformations for image paths. For more information, see [/assets/images/enterprise/legacy-format/README.md](/assets/images/enterprise/legacy-format/README.md).
360-
361359
### Preventing transformations
362360

363361
Sometimes you want to link to a Dotcom-only article in Enterprise content and you don't want the link to be Enterprise-ified. To prevent the transformation, include the preferred version in the path.

lib/render-content/create-processor.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import codeHeader from './plugins/code-header.js'
2020
import rewriteLocalLinks from './plugins/rewrite-local-links.js'
2121
import rewriteImgSources from './plugins/rewrite-asset-urls.js'
2222
import useEnglishHeadings from './plugins/use-english-headings.js'
23-
import rewriteLegacyAssetPaths from './plugins/rewrite-legacy-asset-paths.js'
2423
import wrapInElement from './plugins/wrap-in-element.js'
2524
import doctocatLinkIcon from './doctocat-link-icon.js'
2625
const graphql = HighlightjsGraphql.definer
@@ -52,7 +51,6 @@ export default function createProcessor(context) {
5251
subset: false,
5352
})
5453
.use(raw)
55-
.use(rewriteLegacyAssetPaths, context)
5654
.use(wrapInElement, { selector: 'ol > li img', wrapper: 'span.procedural-image-wrapper' })
5755
.use(DISABLE_REWRITE_ASSET_URLS ? null : rewriteImgSources)
5856
.use(rewriteLocalLinks, {

lib/render-content/plugins/rewrite-legacy-asset-paths.js

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)