diff --git a/.gitignore b/.gitignore index aaa99d325..59b996de8 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ *.XLSX ## Non user files allowed to be commited +!app/assets/pdf/tcpa_overview.pdf !tests/test_pdf_files/no_eof_marker.pdf !tests/test_pdf_files/multi_page_pdf.pdf !tests/test_pdf_files/big.pdf diff --git a/app/assets/pdf/tcpa_overview.pdf b/app/assets/pdf/tcpa_overview.pdf new file mode 100644 index 000000000..61bf4a835 Binary files /dev/null and b/app/assets/pdf/tcpa_overview.pdf differ diff --git a/app/templates/views/best-practices/rules-and-regulations.html b/app/templates/views/best-practices/rules-and-regulations.html index 5fe753c73..c9a95a122 100644 --- a/app/templates/views/best-practices/rules-and-regulations.html +++ b/app/templates/views/best-practices/rules-and-regulations.html @@ -42,7 +42,7 @@ }, { "url_link": - "images/TCPA_Overview.pdf", + "pdf/tcpa_overview.pdf", "url_text":"Download and share our overview of the TCPA with your legal counsel", "is_downloadable": true, "p_text": 'It provides a baseline diff --git a/gulpfile.js b/gulpfile.js index ee8da9fe9..26a3a5720 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -113,11 +113,19 @@ const copyImages = () => { ); }; +// Task to copy images +const copyPDF = () => { + return src(paths.src + 'pdf/**/*', { encoding: false }).pipe( + dest(paths.dist + 'pdf/') + ); +}; + // Configure USWDS paths uswds.settings.version = 3; uswds.paths.dist.css = paths.dist + 'css'; uswds.paths.dist.js = paths.dist + 'js'; uswds.paths.dist.img = paths.dist + 'img'; +uswds.paths.dist.pdf = paths.dist + 'pdf'; uswds.paths.dist.fonts = paths.dist + 'fonts'; uswds.paths.dist.theme = paths.src + 'sass/uswds'; @@ -164,6 +172,7 @@ exports.default = series( copyGtmHead, copySetTimezone, copyImages, + copyPDF, copyAssets ); exports.backstopTest = backstopTest;