tools/hecat: switch to new configuration format/command-line

This commit is contained in:
nodiscc 2022-07-31 19:45:17 +02:00
parent 7ef7700086
commit 756aa52807
No known key found for this signature in database
GPG key ID: 067FC4266A4B6909
3 changed files with 20 additions and 2 deletions

6
.hecat.import.yml Normal file
View file

@ -0,0 +1,6 @@
steps:
- name: import awesome-selfhosted markdown to YAML
module: importers/markdown_awesome
module_options:
source_file: awesome-selfhosted/README.md
output_directory: ./

12
.hecat.process.yml Normal file
View file

@ -0,0 +1,12 @@
steps:
- name: update metadata form Github API
module: processors/github_metadata
module_options:
source_directory: awesome-selfhosted-data
gh_metadata_only_missing: True
- name: check data against awesome-selfhosted guidelines
module: processors/awesome_lint
module_options:
source_directory: ./
items_in_delegate_to_fatal: False

View file

@ -15,12 +15,12 @@ import: install
rm -rf tags/ software/ platforms/
mkdir -p tags/ software/ platforms/
source .venv/bin/activate && \
hecat import --source-file awesome-selfhosted/README.md --output-directory ./
hecat --config .hecat.import.yml
.PHONY: process # apply automatic processing (gather github metadata)
process: install
source .venv/bin/activate && \
hecat process --processors github_metadata --source-directory ./ --options=gh-metadata-only-missing
hecat --config .hecat.process.yml
.PHONY: build # build markdown singlepage document from yaml data
build: install