From f9f863103a64204372c2713d364754012499223a Mon Sep 17 00:00:00 2001 From: Vlad Filippov Date: Mon, 12 Feb 2018 14:41:49 -0500 Subject: [PATCH] refactor(docs): link the policy page to the different doc (#5901) r=@vbudhram --- grunttasks/replace.js | 9 +++++++++ grunttasks/yeoman.js | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/grunttasks/replace.js b/grunttasks/replace.js index 12a0bca73..ff7fdf27b 100644 --- a/grunttasks/replace.js +++ b/grunttasks/replace.js @@ -14,6 +14,15 @@ module.exports = function (grunt) { { from: /^#\s.*?\n$/m, to: '' + }, + { + // sometimes provided legal docs have extra indent before links and headings + // such as ` [`, this creates a block when parsed by remarkable + // to avoid that we remove the indent spaces + + // ref: https://github.com/mozilla/legal-docs/blob/master/firefox_privacy_notice/en-US.md + from: /^ {4}/gm, + to: '' } ], src: [ diff --git a/grunttasks/yeoman.js b/grunttasks/yeoman.js index 85d5989e3..8d2e54968 100644 --- a/grunttasks/yeoman.js +++ b/grunttasks/yeoman.js @@ -15,7 +15,7 @@ module.exports = function (grunt) { page_template_dist: TEMPLATE_ROOT + '/pages/dist', page_template_src: TEMPLATE_ROOT + '/pages/src', pp_html_dest: TEMPLATE_ROOT + '/pages/dist/privacy', - pp_md_src: TOS_PP_REPO_ROOT + '/firefox_cloud_services_PrivacyNotice/', + pp_md_src: TOS_PP_REPO_ROOT + '/firefox_privacy_notice/', server: 'server', strings_dist: 'locale', strings_src: 'fxa-content-server-l10n/locale',