update documentation
This commit is contained in:
parent
454d304df6
commit
4e976dc645
2 changed files with 32 additions and 22 deletions
|
|
@ -1,3 +1,11 @@
|
|||
<link rel="stylesheet" href="css/style.css"/>
|
||||
<link href="https://fonts.cdnfonts.com/css/montserrat" rel="stylesheet"/>
|
||||
> version 1.0.0
|
||||
|
||||
date: 2023-03-31T19:37:02+0200 (generated by `./make doc`)
|
||||
|
||||
[](https://github.com/coderofsalvation/xrfragment/actions)
|
||||
|
||||
|
||||
|
||||
# `://foo.com/my3d.asset#pos=1,0,0&prio=-5`
|
||||
|
|
|
|||
46
make
46
make
|
|
@ -33,30 +33,32 @@ tests(){
|
|||
|
||||
doc(){
|
||||
{
|
||||
echo '<link rel="stylesheet" href="css/style.css"/>'
|
||||
echo '<link href="https://fonts.cdnfonts.com/css/montserrat" rel="stylesheet"/>'
|
||||
echo "> version $VERSION"
|
||||
echo "\ndate: $(date +"%Y-%m-%dT%H:%M:%S%z") (generated by \`./make doc\`)\n"
|
||||
echo "[](https://github.com/coderofsalvation/xrfragment/actions)\n"
|
||||
cat src/xrfragment/URI.hx
|
||||
cat src/xrfragment/Parser.hx
|
||||
} | awk '
|
||||
echo '<link rel="stylesheet" href="css/style.css"/>'
|
||||
echo '<link href="https://fonts.cdnfonts.com/css/montserrat" rel="stylesheet"/>'
|
||||
echo "> version $VERSION"
|
||||
echo "\ndate: $(date +"%Y-%m-%dT%H:%M:%S%z") (generated by \`./make doc\`)\n"
|
||||
echo "[](https://github.com/coderofsalvation/xrfragment/actions)\n"
|
||||
{
|
||||
cat src/xrfragment/URI.hx
|
||||
cat src/xrfragment/Parser.hx
|
||||
} | awk '
|
||||
|
||||
/\/\/ / {
|
||||
gsub(".*// ","",$0);
|
||||
gsub("# ","\n# ",$0);
|
||||
if( match($0,/^#code /) ){ print "```\n"; system("cat "$2); print "```\n"; next; }
|
||||
if( match($0,/^#sh /) ){ $1=""; system($0); next; }
|
||||
if( match($0,/#include /) ) {
|
||||
o=$0; gsub(/.*#include/,"#include",$0); f=$2; $0=o;
|
||||
cmd="cat "f
|
||||
cmd | getline text; close(cmd)
|
||||
gsub(/#include \w/, text)
|
||||
}
|
||||
print $0;
|
||||
}
|
||||
/\/\/ / {
|
||||
gsub(".*// ","",$0);
|
||||
gsub("# ","\n# ",$0);
|
||||
if( match($0,/^#code /) ){ print "```\n"; system("cat "$2); print "```\n"; next; }
|
||||
if( match($0,/^#sh /) ){ $1=""; system($0); next; }
|
||||
if( match($0,/#include /) ) {
|
||||
o=$0; gsub(/.*#include/,"#include",$0); f=$2; $0=o;
|
||||
cmd="cat "f
|
||||
cmd | getline text; close(cmd)
|
||||
gsub(/#include \w/, text)
|
||||
}
|
||||
print $0;
|
||||
}
|
||||
|
||||
' > doc/RFC.md
|
||||
'
|
||||
} > doc/RFC.md
|
||||
}
|
||||
|
||||
test -z $1 && { try rm dist/* ; haxe build.hxml; sed -i 's|.*nonlocal .*||g' dist/xrfragment.py; exit $?; }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue