mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted-data.git
synced 2026-03-11 08:55:24 +00:00
tools/Makefile/hecat: fix markdown build procedure
- add hecat step configuration file - update makefile target, rename target build -> export
This commit is contained in:
parent
5586d5a9a1
commit
064b263264
3 changed files with 22 additions and 5 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -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
17
.hecat.export.yml
Normal 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'
|
||||
6
Makefile
6
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue