forked from Velocidex/velociraptor-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (37 loc) · 1.41 KB
/
Makefile
File metadata and controls
51 lines (37 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Rebuild the reference index.
references:
python3 scripts/vql_reference.py --config scripts/vql_reference_config.yaml ~/projects/velociraptor/docs/references/vql.yaml --reference_data static/reference/data.json
python3 scripts/descriptions.py content/vql_reference/
config_references:
cd ./scripts/config_reference/ && go run . ~/projects/velociraptor/docs/references/server.config.yaml > ../../content/docs/deployment/references/_index.md
artifact_references:
python3 scripts/artifact_reference_index.py ~/projects/velociraptor/
python scripts/descriptions.py content/
exchange:
python3 scripts/exchange_index.py
kb:
python3 scripts/knowledge_base.py
blog:
python3 scripts/blog_index.py
highlight_js:
cd ../highlight.js && node tools/build.js -t browser python yaml sql json bash powershell vql text shell
cp ../highlight.js/build/highlight.min.js static/js/
serve:
hugo serve
clean_all:
rm -rf ./public/ ./content/artifact_references/pages/*
find ./content/vql_reference/ -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} \;
clean:
rm -rf ./public/
build:
hugo
index:
rm -rf /tmp/index/
cd ./velociraptor-site-search/ && go run ./cmd/ build ../content/ /tmp/index/ && cd -
cd /tmp/index && zip -r ../index.zip * && cd -
mkdir -p ./static/docs_index/
mv /tmp/index.zip ./static/docs_index/docs_index_v1.zip
comparisons:
python3 scripts/comparisons.py
descriptions:
python3 scripts/descriptions.py content/