Compare commits
6 Commits
2a4d8189e9
...
d7a7af38d1
Author | SHA1 | Date |
---|---|---|
Atlas Cove | d7a7af38d1 | |
Atlas Cove | d13be06e60 | |
Atlas Cove | f88cee59c7 | |
Atlas Cove | 7003b0030e | |
Atlas Cove | 309f496642 | |
Atlas Cove | ec257b615e |
|
@ -2,16 +2,14 @@ root=true
|
|||
[*]
|
||||
charset=utf-8
|
||||
end_of_line=lf
|
||||
indent_size=4
|
||||
trim_trailing_whitespace=true
|
||||
insert_final_newline=true
|
||||
[{Makefile,*.s[ac]ss}]
|
||||
indent_style=tab
|
||||
indent_size=1
|
||||
[{ignore.txt,*.csv,m4/*}]
|
||||
insert_final_newline=false
|
||||
[*.rb]
|
||||
indent_style=space
|
||||
indent_size=2
|
||||
indent_style=tab
|
||||
[*.sh]
|
||||
indent_style=tab
|
||||
indent_size=1
|
||||
|
|
|
@ -1,4 +1,15 @@
|
|||
@import "extra.scss"
|
||||
a[href^="http"] //external links
|
||||
color: var(--extlink,lightblue)
|
||||
::after
|
||||
content: ""
|
||||
width: 11px
|
||||
height: 11px
|
||||
background-image: url(var(--extimg, "/img/extlink.svg"))
|
||||
background-position: center
|
||||
background-repeat: no-repeat
|
||||
background-size: contain
|
||||
display: inline-block
|
||||
body
|
||||
@include font("sans")
|
||||
.header
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'><path fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/><path fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/></svg>
|
After Width: | Height: | Size: 549 B |
74
pfiles.rb
74
pfiles.rb
|
@ -4,53 +4,51 @@
|
|||
require 'find'
|
||||
ignore=!File.file?('dat/ignore.txt') ? [] : File.readlines('dat/ignore.txt')
|
||||
if ignore != []
|
||||
ignore.map! do |i|
|
||||
"in/#{i}"
|
||||
end
|
||||
ignore.map! { |i| "in/#{i}" }
|
||||
end
|
||||
class Enumerator
|
||||
def collect
|
||||
out=Array.new
|
||||
for i in self
|
||||
out.push(i)
|
||||
end
|
||||
return out
|
||||
end
|
||||
def collect
|
||||
out=Array.new
|
||||
for i in self
|
||||
out.push(i)
|
||||
end
|
||||
return out
|
||||
end
|
||||
end
|
||||
list=Find.find('in')
|
||||
l=list.collect
|
||||
case ARGV.first
|
||||
when "doc"
|
||||
for i in l do
|
||||
next if ignore.include?(i) or /\.v.html/.match?(i)
|
||||
if /\.(txti|org|md|html)$/.match?(i)
|
||||
print i
|
||||
print ' ' unless i==l.last
|
||||
end
|
||||
end
|
||||
for i in l do
|
||||
next if ignore.include?(i) or /\.v.html/.match?(i)
|
||||
if /\.(txti|org|md|html)$/.match?(i)
|
||||
print i
|
||||
print ' ' unless i==l.last
|
||||
end
|
||||
end
|
||||
when "sass"
|
||||
for i in l do
|
||||
next if ignore.include?(i)
|
||||
if /\.s[ac]ss$/.match?(i)
|
||||
print i
|
||||
print ' ' unless i==l.last
|
||||
end
|
||||
end
|
||||
for i in l do
|
||||
next if ignore.include?(i)
|
||||
if /\.s[ac]ss$/.match?(i)
|
||||
print i
|
||||
print ' ' unless i==l.last
|
||||
end
|
||||
end
|
||||
when "dir"
|
||||
for i in l do
|
||||
next if ignore.include?(i)
|
||||
if File.directory?(i)
|
||||
print i
|
||||
print ' ' unless i==l.last
|
||||
end
|
||||
end
|
||||
for i in l do
|
||||
next if ignore.include?(i)
|
||||
if File.directory?(i)
|
||||
print i
|
||||
print ' ' unless i==l.last
|
||||
end
|
||||
end
|
||||
when "rest"
|
||||
for i in l do
|
||||
next if ignore.include?(i)
|
||||
unless /\.(s[ac]ss|txti|org|md)$/.match?(i) or File.directory(i)
|
||||
print i
|
||||
print ' ' unless i==l.last
|
||||
end
|
||||
end
|
||||
for i in l do
|
||||
next if ignore.include?(i)
|
||||
unless /\.(s[ac]ss|txti|org|md|html)$/.match?(i) or File.directory?(i)
|
||||
print i
|
||||
print ' ' unless i==l.last
|
||||
end
|
||||
end
|
||||
else
|
||||
end
|
||||
|
|
14
render.sh
14
render.sh
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
# render.sh: part of the tape-and-string framework.
|
||||
# v3.4-p6
|
||||
# v3.5-p0
|
||||
#B: Load
|
||||
enable -f /usr/lib/bash/csv csv
|
||||
declare -A title
|
||||
|
@ -64,12 +64,10 @@ function sass {
|
|||
fi
|
||||
}
|
||||
function other {
|
||||
if ! test -d out; then
|
||||
err "Cannot render, directory 'out' does not exist, run ./render.sh dir"
|
||||
return 1
|
||||
fi
|
||||
inf "Copying other files..."
|
||||
cp -rv 'in'/* out/
|
||||
local other=`./pfiles.rb rest`
|
||||
for i in $other; do
|
||||
ln -v $i ${i/in/out}
|
||||
done
|
||||
}
|
||||
function sitemap {
|
||||
./gensimap.sh
|
||||
|
@ -124,7 +122,7 @@ case $1 in
|
|||
doc) docs;;
|
||||
docs) docs;;
|
||||
s[ac]ss) sass;;
|
||||
other) other;;
|
||||
other) dirs; other;;
|
||||
rest) other;;
|
||||
info) info;;
|
||||
sitemap) sitemap;;
|
||||
|
|
Loading…
Reference in New Issue