mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-09 14:45:00 -05:00
pdf added
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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
|
||||
|
||||
BIN
app/assets/pdf/tcpa_overview.pdf
Normal file
BIN
app/assets/pdf/tcpa_overview.pdf
Normal file
Binary file not shown.
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user