Skip to content

Commit

Permalink
add SVG files
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-demin committed Nov 29, 2024
1 parent 0433bc1 commit 9f80c4a
Show file tree
Hide file tree
Showing 62 changed files with 2,186 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pandoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Pandoc
run: sudo apt-get update && sudo apt-get -yq install pandoc
- name: Install packages
run: sudo apt-get update && sudo apt-get -yq install inkscape pandoc pngquant
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
Expand Down
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ SITE = _site

FILES = $(shell find md -type f -name \*.md)
PAGES = $(patsubst %.md, %/index.html, $(patsubst %/index.md, %/index.html, $(FILES)))

IMAGES = $(patsubst svg/%.svg, img/%.png, $(wildcard svg/*.svg))
CONTENT = $(addprefix $(SITE)/, css etc img) $(patsubst md/%, $(SITE)/%, $(PAGES))

PANDOC = pandoc -d defaults.yml -M base_url=$(BASE_URL) -M base_path=$(BASE_PATH)
INKSCAPE = inkscape --export-area-page --export-dpi=144 --export-type=png --export-filename=-

MKDIR = mkdir -p
CP = cp -r
RM = rm -rf

all: $(CONTENT)
all: $(IMAGES) $(CONTENT)

$(SITE)/%: %
@echo ">> Copying $<"
Expand All @@ -25,8 +28,12 @@ $(SITE)/%.html $(SITE)/%/index.html: md/%.md
@$(MKDIR) $(@D)
@$(PANDOC) -M page=$* -o $@ $<

img/%.png: svg/%.svg
@echo ">> Converting $<"
@$(INKSCAPE) $< | pngquant - > $@

serve:
@python3 -m http.server --bind 127.0.0.1 --directory $(SITE)

clean:
@$(RM) $(SITE)
@$(RM) $(IMAGES) $(SITE)
Binary file removed img/antenna.png
Binary file not shown.
Binary file removed img/application-structure.png
Binary file not shown.
Binary file removed img/input-buffer.png
Binary file not shown.
Binary file removed img/interface-buffers.png
Binary file not shown.
Binary file removed img/mcpha-gen.png
Binary file not shown.
Binary file removed img/mcpha.png
Binary file not shown.
Binary file removed img/output-buffer.png
Binary file not shown.
Binary file removed img/output-buffers-dsp48.png
Binary file not shown.
Binary file removed img/playground.png
Binary file not shown.
Binary file removed img/pulsed-nmr-122-88.png
Binary file not shown.
Binary file removed img/pulsed-nmr.png
Binary file not shown.
Binary file removed img/scanner.png
Binary file not shown.
Binary file removed img/scripts.png
Binary file not shown.
Binary file removed img/sdr-receiver-ft8-122-88.png
Binary file not shown.
Binary file removed img/sdr-receiver-ft8.png
Binary file not shown.
Binary file removed img/sdr-receiver-hpsdr-ddc.png
Binary file not shown.
Binary file removed img/sdr-receiver-wspr-122-88.png
Binary file not shown.
Binary file removed img/sdr-receiver-wspr.png
Binary file not shown.
Binary file removed img/sdr-smem.png
Binary file not shown.
Binary file removed img/sdr-transceiver-122-88.png
Binary file not shown.
Binary file removed img/sdr-transceiver-hpsdr-alex-interface.png
Binary file not shown.
Binary file removed img/sdr-transceiver-hpsdr-ddc-122-88.png
Binary file not shown.
Binary file removed img/sdr-transceiver-hpsdr-ddc.png
Binary file not shown.
Binary file removed img/sdr-transceiver-hpsdr-duc-122-88.png
Binary file not shown.
Binary file removed img/sdr-transceiver-hpsdr-duc.png
Binary file not shown.
Binary file removed img/sdr-transceiver-hpsdr-e1-pins.png
Diff not rendered.
Binary file removed img/sdr-transceiver-wide.png
Diff not rendered.
Binary file removed img/sdr-transceiver.png
Diff not rendered.
Binary file removed img/vna-122-88.png
Diff not rendered.
Binary file removed img/vna.png
Diff not rendered.
64 changes: 64 additions & 0 deletions svg/antenna.svg
60 changes: 60 additions & 0 deletions svg/application-structure.svg
Loading

0 comments on commit 9f80c4a

Please sign in to comment.