-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move pandoc outside of go command and page setup from deploy script
We now generate the markdown comment from `usage` command, and call pandoc from a script to handle generating HTML.
- Loading branch information
Zachary Scott
committed
Aug 5, 2018
1 parent
a47d082
commit 0cfb929
Showing
5 changed files
with
27 additions
and
48 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 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,18 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# generate markdown docs | ||
go run main.go usage | ||
|
||
# setup output dir | ||
mkdir -p out | ||
|
||
# pandoc markdown to html into out dir | ||
for f in docs/*.md; do | ||
pandoc "$f" -s -o "out/$(basename ${f%.md}.html)"; | ||
done | ||
|
||
# move index and update links | ||
mv out/circleci.html out/index.html | ||
sed -i -- 's#<a href="circleci.html">#<a href="index.html">#g' out/*.html |
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ circleci-cli | |
coverage.txt | ||
dist/ | ||
docs/ | ||
out/ | ||
.vscode |
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