From 7448568234c542842bf9007f5f70ef044aa2b3f6 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Tue, 4 Dec 2018 22:03:25 -0800 Subject: [PATCH] build full page list, don't exit(1) on diff --- docs/before.txt | 110 ++++++++++++++++++++++++++++++------------------ docs/test.sh | 13 ++++-- 2 files changed, 80 insertions(+), 43 deletions(-) diff --git a/docs/before.txt b/docs/before.txt index b9a7fc41..7ee97d92 100644 --- a/docs/before.txt +++ b/docs/before.txt @@ -1,48 +1,78 @@ -./whats_new/changelog.md -./objects/grid.md -./objects/table-object.md -./objects/layout.md -./utilities/marketing-filters.md -./utilities/marketing-padding.md -./utilities/marketing-margin.md -./utilities/marketing-layout.md -./utilities/details.md -./utilities/padding.md -./utilities/flexbox.md -./utilities/marketing-borders.md -./utilities/animations.md -./utilities/box-shadow.md -./utilities/typography.md -./utilities/marketing-type.md -./utilities/margin.md -./utilities/layout.md -./utilities/borders.md -./components/page-headers.md -./components/markdown.md -./components/buttons.md -./components/tables.md -./components/forms.md -./components/blankslate.md -./components/marketing-buttons.md -./components/popover.md -./components/pagination.md -./components/progress.md -./components/branch-name.md -./components/navigation.md -./components/subhead.md -./components/avatars.md -./components/tooltips.md ./components/alerts.md +./components/avatars.md +./components/blankslate.md +./components/box-overlay.md ./components/box.md +./components/boxed-groups.md +./components/branch-name.md ./components/breadcrumb.md +./components/buttons.md +./components/dropdown.md +./components/flash-banner.md +./components/forms.md +./components/index.md ./components/labels.md -./components/truncate.md +./components/markdown.md +./components/marketing-buttons.md +./components/navigation.md +./components/octicons.md +./components/page-headers.md ./components/page-sections.md -./support/marketing-variables.md +./components/pagehead.md +./components/pagination.md +./components/popover.md +./components/progress.md +./components/select-menu.md +./components/subhead.md +./components/tables.md +./components/tooltips.md +./components/truncate.md +./getting_started/contributing.md +./getting_started/index.md +./objects/grid.md +./objects/index.md +./objects/layout.md +./objects/table-object.md +./packages/primer-core.md +./packages/primer-marketing.md +./packages/primer-product.md +./packages/primer.md +./principles/HTML.md +./principles/SCSS.md +./principles/accessibility.md +./principles/index.md ./support/breakpoints.md +./support/color-system.md +./support/index.md +./support/marketing-variables.md ./support/spacing.md ./support/typography.md -./packages/primer-core.md -./packages/primer.md -./packages/primer-product.md -./packages/primer-marketing.md +./tools/atom-packages.md +./tools/docset.md +./tools/index.md +./tools/linting.md +./tools/local-primer.md +./tools/prototyping.md +./tools/sketch-templates.md +./tools/testing.md +./utilities/animations.md +./utilities/borders.md +./utilities/box-shadow.md +./utilities/colors.md +./utilities/details.md +./utilities/flexbox.md +./utilities/index.md +./utilities/layout.md +./utilities/margin.md +./utilities/marketing-borders.md +./utilities/marketing-filters.md +./utilities/marketing-layout.md +./utilities/marketing-margin.md +./utilities/marketing-padding.md +./utilities/marketing-type.md +./utilities/padding.md +./utilities/typography.md +./whats_new/changelog.md +./whats_new/changelog/archived_changelog.md +./whats_new/index.md +./whats_new/status-key.md diff --git a/docs/test.sh b/docs/test.sh index 1a41369b..64f15e2d 100755 --- a/docs/test.sh +++ b/docs/test.sh @@ -4,12 +4,19 @@ cwd=`pwd` if [[ ! -e before.txt ]]; then pushd ../../../github/styleguide/src/_primer > /dev/null - find . -name '*.md' > $cwd/before.txt + find . -name '*.md' | sort -u > $cwd/tmp.txt popd > /dev/null + pushd ../../../github/styleguide/src/primer > /dev/null + find . -name '*.md' | sort -u >> $cwd/tmp.txt + popd > /dev/null + cat tmp.txt | sort -u > before.txt + rm tmp.txt fi pushd pages/css > /dev/null -find . -name '*.md' > $cwd/after.txt +find . -name '*.md' | sort -u > $cwd/after.txt popd > /dev/null -diff before.txt after.txt +diff before.txt after.txt || { + echo "There was a diff, but it's probably not a big deal?" +}