forked from snabbco/snabb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request snabbco#66 from dpino/lwaftr_nutmeg_move_docs_make
Add a Makefile rule to build snabb-lwaftr documentation
- Loading branch information
Showing
6 changed files
with
100 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Q= @ | ||
E= @echo | ||
|
||
# For verbose command line output, uncomment these lines: | ||
#Q= | ||
#E= @: | ||
|
||
snabb-lwaftr: | ||
$(Q) (cd ../../; make snabb-lwaftr; ln -sf ../../$@ program/snabb_lwaftr/$@) | ||
|
||
snabb-lwaftr-doc: doc/snabb-lwaftr.pdf doc/snabb-lwaftr.html doc/snabb-lwaftr.epub | ||
|
||
doc/snabb-lwaftr.md: | ||
(cd doc; ./genbook.sh) > $@ | ||
|
||
doc/snabb-lwaftr.pdf: doc/snabb-lwaftr.md | ||
$(E) "PANDOC $@" | ||
$(Q) (cd doc; pandoc -S --toc --chapters -o snabb-lwaftr.pdf snabb-lwaftr.md) | ||
|
||
doc/snabb-lwaftr.html: doc/snabb-lwaftr.md | ||
$(E) "PANDOC $@" | ||
$(Q) (cd doc; pandoc --self-contained --css="../../../doc/style.css" -S -s --toc --chapters -o snabb-lwaftr.html snabb-lwaftr.md) | ||
|
||
doc/snabb-lwaftr.epub: doc/snabb-lwaftr.md | ||
$(E) "PANDOC $@" | ||
$(Q) (cd doc; pandoc --self-contained --css="../../../doc/style.css" -S -s --toc --chapters -o snabb-lwaftr.epub snabb-lwaftr.md) | ||
|
||
CLEAN = snabb-lwaftr doc/snabb-lwaftr.* | ||
|
||
clean: | ||
$(E) "RM $(CLEAN)" | ||
$(Q)-rm -rf $(CLEAN) | ||
$(Q) (cd ../../; make clean) | ||
|
||
.PHONY: clean snabb-lwaftr |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Welcome to Snabb-lwaftr! | ||
|
||
Here is how to get started with it. | ||
|
||
This document assumes that `${SNABB_LW_DIR}` is the location where your checkout | ||
of the **snabb-lwaftr** project. | ||
|
||
## Current status | ||
|
||
Snabb-lwaftr is alpha/prototype software. It can run 2 10-Gbit NICs at over 90% | ||
of line speed, and it is believed to be [RFC 7596](https://tools.ietf.org/html/rfc7596) compliant. | ||
It is ready for experimentation, but not recommended for production use yet. |
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,46 @@ | ||
#!/bin/bash | ||
|
||
# This shell scripts generates the top-level Markdown structure of the | ||
# Snabb Switch lwAFTR manual. | ||
# | ||
# The authors list is automatically generated from Git history, | ||
# ordered from most to least commits. | ||
|
||
# Script based on src/doc/genbook.sh | ||
|
||
lwaftr_app=../../../apps/lwaftr/ | ||
|
||
cat <<EOF | ||
% Snabb Switch lwAFTR Manual | ||
% $(git log --pretty="%an" $lwaftr_app | \ | ||
grep -v -e '^root$' | \ | ||
sort | uniq -c | sort -nr | sed 's/^[0-9 ]*//' | \ | ||
awk 'BEGIN { first=1; } | ||
(NF >= 2) { if (first) { first=0 } else { printf("; ") }; | ||
printf("%s", $0) } | ||
END { print("") }') | ||
% Version $(git log -n1 --format="format:%h, %ad%n") | ||
$(cat README.welcome.md) | ||
$(cat README.build.md) | ||
$(cat README.running.md) | ||
$(cat README.testing.md) | ||
$(cat README.troubleshooting.md) | ||
$(cat README.bindingtable.md) | ||
$(cat README.configuration.md) | ||
$(cat README.rfccompliance.md) | ||
$(cat README.benchmarking.md) | ||
$(cat README.performance.md) | ||
$(cat README.virtualization.md) | ||
EOF |