Skip to content

Commit

Permalink
exclusions for documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Oct 10, 2022
1 parent dfcccc9 commit 4da36a9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 17 deletions.
37 changes: 22 additions & 15 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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"
4 changes: 2 additions & 2 deletions scripts/documentation_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/
Expand Down

0 comments on commit 4da36a9

Please sign in to comment.