tools/Makefile/hecat: fix markdown build procedure

- add hecat step configuration file
- update makefile target, rename target build -> export
This commit is contained in:
nodiscc 2022-08-05 22:52:54 +02:00
parent 5586d5a9a1
commit 064b263264
No known key found for this signature in database
GPG key ID: 067FC4266A4B6909
3 changed files with 22 additions and 5 deletions

View file

@ -17,5 +17,5 @@ jobs:
uses: actions/checkout@v3
- name: process
run: make process
- name: build
run: make build
- name: export
run: make export

17
.hecat.export.yml Normal file
View file

@ -0,0 +1,17 @@
steps:
- name: export YAML data to awesome-selfhosted markdown
module: exporters/markdown_singlepage
module_options:
source_directory: ./
output_directory: awesome-selfhosted
output_file: README.md
# authors_file: AUTHORS.md # optional, default no authors file
exclude_licenses:
- '⊘ Proprietary'
- 'BUSL-1.1'
- 'CC-BY-NC-4.0'
- 'CC-BY-NC-SA-3.0'
- 'CC-BY-ND-3.0'
- 'Commons-Clause'
- 'DPL'
- 'SSPL-1.0'

View file

@ -22,11 +22,11 @@ process: install
source .venv/bin/activate && \
hecat --config .hecat.process.yml
.PHONY: build # build markdown singlepage document from yaml data
build: install
.PHONY: export # export markdown singlepage document from yaml data
export: install
rm -rf awesome-selfhosted && git clone https://github.com/awesome-selfhosted/awesome-selfhosted
source .venv/bin/activate && \
hecat export --source-directory ./ --output-directory awesome-selfhosted --output-file README.md
hecat --config .hecat.export.yml
cd awesome-selfhosted && git diff --color=always
.PHONY: help # generate list of targets with descriptions