diff --git a/.changeset/techdocs-keep-it-on-the-download.md b/.changeset/techdocs-keep-it-on-the-download.md new file mode 100644 index 0000000000..20a6c4718f --- /dev/null +++ b/.changeset/techdocs-keep-it-on-the-download.md @@ -0,0 +1,7 @@ +--- +'@backstage/plugin-techdocs': patch +--- + +TechDocs now respects the `download` attribute on anchor tags in generated +markup, allowing documentation authors to bundle downloadable files with their +documentation. diff --git a/plugins/techdocs/src/reader/transformers/addBaseUrl.test.ts b/plugins/techdocs/src/reader/transformers/addBaseUrl.test.ts index 4311de5dae..afed2eff73 100644 --- a/plugins/techdocs/src/reader/transformers/addBaseUrl.test.ts +++ b/plugins/techdocs/src/reader/transformers/addBaseUrl.test.ts @@ -37,6 +37,7 @@ const fixture = `
+ Download Now