Compare commits
6 Commits
2a4d8189e9
...
d7a7af38d1
Author | SHA1 | Date | |
---|---|---|---|
d7a7af38d1 | |||
d13be06e60 | |||
f88cee59c7 | |||
7003b0030e | |||
309f496642 | |||
ec257b615e |
|
@ -2,16 +2,14 @@ root=true
|
||||||
[*]
|
[*]
|
||||||
charset=utf-8
|
charset=utf-8
|
||||||
end_of_line=lf
|
end_of_line=lf
|
||||||
|
indent_size=4
|
||||||
trim_trailing_whitespace=true
|
trim_trailing_whitespace=true
|
||||||
insert_final_newline=true
|
insert_final_newline=true
|
||||||
[{Makefile,*.s[ac]ss}]
|
[{Makefile,*.s[ac]ss}]
|
||||||
indent_style=tab
|
indent_style=tab
|
||||||
indent_size=1
|
|
||||||
[{ignore.txt,*.csv,m4/*}]
|
[{ignore.txt,*.csv,m4/*}]
|
||||||
insert_final_newline=false
|
insert_final_newline=false
|
||||||
[*.rb]
|
[*.rb]
|
||||||
indent_style=space
|
indent_style=tab
|
||||||
indent_size=2
|
|
||||||
[*.sh]
|
[*.sh]
|
||||||
indent_style=tab
|
indent_style=tab
|
||||||
indent_size=1
|
|
||||||
|
|
|
@ -1,4 +1,15 @@
|
||||||
@import "extra.scss"
|
@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
|
body
|
||||||
@include font("sans")
|
@include font("sans")
|
||||||
.header
|
.header
|
||||||
|
|
2
in/img/extlink.svg
Normal file
2
in/img/extlink.svg
Normal file
|
@ -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'
|
require 'find'
|
||||||
ignore=!File.file?('dat/ignore.txt') ? [] : File.readlines('dat/ignore.txt')
|
ignore=!File.file?('dat/ignore.txt') ? [] : File.readlines('dat/ignore.txt')
|
||||||
if ignore != []
|
if ignore != []
|
||||||
ignore.map! do |i|
|
ignore.map! { |i| "in/#{i}" }
|
||||||
"in/#{i}"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
class Enumerator
|
class Enumerator
|
||||||
def collect
|
def collect
|
||||||
out=Array.new
|
out=Array.new
|
||||||
for i in self
|
for i in self
|
||||||
out.push(i)
|
out.push(i)
|
||||||
end
|
end
|
||||||
return out
|
return out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
list=Find.find('in')
|
list=Find.find('in')
|
||||||
l=list.collect
|
l=list.collect
|
||||||
case ARGV.first
|
case ARGV.first
|
||||||
when "doc"
|
when "doc"
|
||||||
for i in l do
|
for i in l do
|
||||||
next if ignore.include?(i) or /\.v.html/.match?(i)
|
next if ignore.include?(i) or /\.v.html/.match?(i)
|
||||||
if /\.(txti|org|md|html)$/.match?(i)
|
if /\.(txti|org|md|html)$/.match?(i)
|
||||||
print i
|
print i
|
||||||
print ' ' unless i==l.last
|
print ' ' unless i==l.last
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
when "sass"
|
when "sass"
|
||||||
for i in l do
|
for i in l do
|
||||||
next if ignore.include?(i)
|
next if ignore.include?(i)
|
||||||
if /\.s[ac]ss$/.match?(i)
|
if /\.s[ac]ss$/.match?(i)
|
||||||
print i
|
print i
|
||||||
print ' ' unless i==l.last
|
print ' ' unless i==l.last
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
when "dir"
|
when "dir"
|
||||||
for i in l do
|
for i in l do
|
||||||
next if ignore.include?(i)
|
next if ignore.include?(i)
|
||||||
if File.directory?(i)
|
if File.directory?(i)
|
||||||
print i
|
print i
|
||||||
print ' ' unless i==l.last
|
print ' ' unless i==l.last
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
when "rest"
|
when "rest"
|
||||||
for i in l do
|
for i in l do
|
||||||
next if ignore.include?(i)
|
next if ignore.include?(i)
|
||||||
unless /\.(s[ac]ss|txti|org|md)$/.match?(i) or File.directory(i)
|
unless /\.(s[ac]ss|txti|org|md|html)$/.match?(i) or File.directory?(i)
|
||||||
print i
|
print i
|
||||||
print ' ' unless i==l.last
|
print ' ' unless i==l.last
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
end
|
end
|
||||||
|
|
14
render.sh
14
render.sh
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# render.sh: part of the tape-and-string framework.
|
# render.sh: part of the tape-and-string framework.
|
||||||
# v3.4-p6
|
# v3.5-p0
|
||||||
#B: Load
|
#B: Load
|
||||||
enable -f /usr/lib/bash/csv csv
|
enable -f /usr/lib/bash/csv csv
|
||||||
declare -A title
|
declare -A title
|
||||||
|
@ -64,12 +64,10 @@ function sass {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
function other {
|
function other {
|
||||||
if ! test -d out; then
|
local other=`./pfiles.rb rest`
|
||||||
err "Cannot render, directory 'out' does not exist, run ./render.sh dir"
|
for i in $other; do
|
||||||
return 1
|
ln -v $i ${i/in/out}
|
||||||
fi
|
done
|
||||||
inf "Copying other files..."
|
|
||||||
cp -rv 'in'/* out/
|
|
||||||
}
|
}
|
||||||
function sitemap {
|
function sitemap {
|
||||||
./gensimap.sh
|
./gensimap.sh
|
||||||
|
@ -124,7 +122,7 @@ case $1 in
|
||||||
doc) docs;;
|
doc) docs;;
|
||||||
docs) docs;;
|
docs) docs;;
|
||||||
s[ac]ss) sass;;
|
s[ac]ss) sass;;
|
||||||
other) other;;
|
other) dirs; other;;
|
||||||
rest) other;;
|
rest) other;;
|
||||||
info) info;;
|
info) info;;
|
||||||
sitemap) sitemap;;
|
sitemap) sitemap;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user