diff --git a/.coderabbit.yml b/.coderabbit.yml index 581a865..20120d7 100644 --- a/.coderabbit.yml +++ b/.coderabbit.yml @@ -13,7 +13,7 @@ reviews: collapse_walkthrough: false sequence_diagrams: true path_filters: [ - "!*.txt" + "!**/*.ptxt" ] path_instructions: [ { diff --git a/.gitattributes b/.gitattributes index b927e5f..b8fc5e9 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -*.txt binary +*.ptxt binary diff --git a/Makefile b/Makefile index f42a0b9..33420e8 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,13 @@ DRAFTS := $(wildcard drafts/*.md) -PUBLISHED := $(DRAFTS:drafts/%.md=published/%.txt) +PUBLISHED := $(DRAFTS:drafts/%.md=published/%.ptxt) all: $(PUBLISHED) .git/hooks/pre-commit -drafts/template.md: template.txt +drafts/template.md: template.ptxt @echo "Creating draft from template" src/convert-to-md.sh template.txt drafts/template.md -published/%.txt: drafts/%.md +published/%.ptxt: drafts/%.md @echo "Converting $< to $@" @mkdir -p $(dir $@) src/convert-from-md.sh $< $@ diff --git a/published/template.txt b/published/template.ptxt similarity index 100% rename from published/template.txt rename to published/template.ptxt diff --git a/src/convert-all.sh b/src/convert-all.sh index c7317f8..a921596 100755 --- a/src/convert-all.sh +++ b/src/convert-all.sh @@ -5,6 +5,6 @@ mkdir -p published for file in drafts/*.md; do echo "converting $file" - output_file="published/$(basename "${file%.md}.txt")" + output_file="published/$(basename "${file%.md}.ptxt")" src/convert-from-md.sh "$file" "$output_file" done diff --git a/template.txt b/template.ptxt similarity index 100% rename from template.txt rename to template.ptxt