mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted-data.git
synced 2026-03-11 08:55:24 +00:00
tools/hecat: switch to new configuration format/command-line
This commit is contained in:
parent
7ef7700086
commit
756aa52807
3 changed files with 20 additions and 2 deletions
6
.hecat.import.yml
Normal file
6
.hecat.import.yml
Normal 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
12
.hecat.process.yml
Normal 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
|
||||
4
Makefile
4
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue