From 4da36a9ef1c0e56864fd518fbb8dd36bf9ff5c78 Mon Sep 17 00:00:00 2001 From: SG Date: Mon, 10 Oct 2022 08:14:39 -0600 Subject: [PATCH] exclusions for documentation --- _config.yml | 37 ++++++++++++++++++++-------------- scripts/documentation_build.sh | 4 ++-- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/_config.yml b/_config.yml index 01d9f15ab..ae52df67f 100644 --- a/_config.yml +++ b/_config.yml @@ -35,6 +35,17 @@ relative_links: enabled: true collections: true exclude: + - .dockerignore + - .envrc + - .git + - .github + - .gitignore + - .ldap_config_defaults + - .opensearch.primary.curlrc + - .opensearch.secondary.curlrc + - .tmp + - .travis.yml + - .trigger_workflow_build - api - arkime - arkime-logs @@ -44,37 +55,29 @@ exclude: - dashboards - docker-compose-standalone.yml - docker-compose.yml - - docs/images/hedgehog/logo/font + - Dockerfiles - docs/images/font + - docs/images/hedgehog/logo/font - docs/quick-start - docs/slides - docs/stix - docs/web - - Dockerfiles - - .dockerignore - - .envrc - - filebeat - file-monitor - file-upload + - filebeat - freq-server - - .git - - .github - - .gitignore - Gemfile - Gemfile.lock - host-map.txt - htadmin - - .ldap_config_defaults - logstash - malcolm-iso - name-map-ui - - netbox - net-map.json + - netbox - nginx - opensearch - opensearch-backup - - .opensearch.primary.curlrc - - .opensearch.secondary.curlrc - pcap - pcap-capture - pcap-monitor @@ -83,9 +86,13 @@ exclude: - shared - suricata - suricata-logs - - .tmp - - .travis.yml - - .trigger_workflow_build - yara - zeek - zeek-logs + - "**/*.ai" + - "**/*.eps" + - "**/*.odg" + - "**/*.ppt*" + - "**/*.pdf" + - "**/*.svg" + - "**/*.xcf" diff --git a/scripts/documentation_build.sh b/scripts/documentation_build.sh index 2fc59febc..3a849c752 100755 --- a/scripts/documentation_build.sh +++ b/scripts/documentation_build.sh @@ -95,7 +95,7 @@ cp $VERBOSE_FLAG -r README.md _includes _layouts _config.yml Gemfile docs "$WORK pushd "$WORKDIR" >/dev/null 2>&1 # if the revision commit has been specified, replace references to site.github.build_revision with it -[[ -n "$REVISION" ]] && find . -type f -name "*.md" -exec sed -i "s/{{[[:space:]]*site.github.build_revision[[:space:]]*}}/$REVISION/g" "{}" \; +[[ -n "$REVISION" ]] && $FIND . -type f -name "*.md" -exec $SED -i "s/{{[[:space:]]*site.github.build_revision[[:space:]]*}}/$REVISION/g" "{}" \; # pass GitHub API token through to Jekyll if it's available if [[ -n "${TOKEN:-}" ]]; then @@ -107,7 +107,7 @@ fi $DOCKER_BIN run --rm -v "$(pwd)":/site "${TOKEN_ARGS[@]}" --entrypoint="docker-entrypoint.sh" ghcr.io/mmguero-dev/jekyll:latest bundle exec jekyll build # clean up some files no longer needed -find ./_site/ -type f -name "*.md" -delete +$FIND ./_site/ -type f -name "*.md" -delete # TODO: can we get this to run mapping UID so it doesn't have to be sudo'd? $SUDO_CMD chown -R $(id -u):$(id -g) ./_site/