-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3497770
commit 7c477e8
Showing
43 changed files
with
199 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
BASE = | ||
SITE = _site | ||
|
||
PAGES = $(filter-out index, $(basename $(notdir $(wildcard md/*.md)))) | ||
CONTENT = $(addprefix $(SITE)/, etc css img index.html $(addsuffix /index.html, $(PAGES))) | ||
|
||
PANDOC = pandoc --defaults defaults.yml --metadata base=$(abspath $(BASE)) | ||
|
||
MKDIR = mkdir -p | ||
CP = cp -r | ||
RM = rm -rf | ||
|
||
all: $(SITE) $(CONTENT) | ||
|
||
$(SITE): | ||
@$(MKDIR) $@ | ||
|
||
$(SITE)/%: % | ||
@echo ">> Copying $^" | ||
@$(MKDIR) $(@D) | ||
@$(CP) $^ $@ | ||
|
||
$(SITE)/%.html $(SITE)/%/index.html: md/%.md | ||
@echo ">> Converting $^" | ||
@$(MKDIR) $(@D) | ||
@$(PANDOC) --metadata page=$* --output $@ $^ | ||
|
||
serve: | ||
@python3 -m http.server --bind 127.0.0.1 --directory $(SITE) | ||
|
||
clean: | ||
@$(RM) $(SITE) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
standalone: true | ||
template: page.html | ||
|
||
reader: markdown-implicit_figures | ||
writer: html | ||
|
||
highlight-style: null | ||
wrap: none | ||
|
||
metadata-file: metadata.yml | ||
filters: [filters.lua] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
local meta = {} | ||
local title = nil | ||
local stringify = pandoc.utils.stringify | ||
|
||
function get_title(h) | ||
if h.level == 1 and not title then | ||
title = h.content | ||
return h | ||
end | ||
end | ||
|
||
function change_meta(m) | ||
meta = m | ||
if m.page == "index" then | ||
m.canonical = stringify(m.baseurl) .. "/" | ||
else | ||
m.canonical = stringify(m.baseurl) .. "/" .. m.page .. "/" | ||
end | ||
m.title = title or m.site_title | ||
return m | ||
end | ||
|
||
function change_link_target(l) | ||
if meta[l.target] then | ||
l.target = stringify(meta[l.target]) | ||
elseif l.target:sub(1, 1) == "/" then | ||
l.target = meta.base .. l.target | ||
end | ||
return l | ||
end | ||
|
||
function change_image_src(i) | ||
if i.src:sub(1, 1) == "/" then | ||
i.src = meta.base .. i.src | ||
end | ||
return i | ||
end | ||
|
||
return {{Header = get_title, Meta = change_meta}, {Link = change_link_target, Image = change_image_src}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
--- | ||
title: AXI4 hub | ||
--- | ||
# AXI4 hub | ||
|
||
## Requirements | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
--- | ||
title: Direct memory access | ||
--- | ||
# Direct memory access | ||
|
||
## Introduction | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
--- | ||
permalink: / | ||
--- | ||
|
||
![My Red Pitaya](/img/my-red-pitaya.jpg) | ||
|
||
1. [List of components](/components/) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
--- | ||
title: LED blinker | ||
--- | ||
# LED blinker | ||
|
||
## Introduction | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
--- | ||
title: Links | ||
--- | ||
# Links | ||
|
||
- [Red Pitaya Documentation](https://redpitaya.readthedocs.io) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.