Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
homepage
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
homepage
Commits
8b76753d
Commit
8b76753d
authored
Mar 04, 2016
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upd
parent
a50d1791
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
177 additions
and
0 deletions
+177
-0
cook_wiki.sh
TracArchive/cook_wiki.sh
+64
-0
fetch_wiki.sh
TracArchive/fetch_wiki.sh
+21
-0
wiki.css
TracArchive/static/css/wiki.css
+92
-0
No files found.
TracArchive/cook_wiki.sh
0 → 100644
View file @
8b76753d
#!/bin/sh
mkdir
-p
Dest/wiki
rm
-rf
Dest/wiki/
*
for
i
in
`
cd
RawWiki
&&
find
.
-name
'*.html'
-print
`
do
d
=
`
dirname
$i
`
b
=
`
echo
$i
|
sed
's/[.]html$//'
`
if
[
-d
RawWiki/
$b
]
;
then
b
=
$b
/index.html
fi
# echo $i "---" $b
d
=
`
dirname
$b
`
mkdir
-p
Dest/wiki/
$d
done
for
i
in
`
cd
RawWiki
&&
find
.
-name
'*.html'
-print
|
grep
-v
'[?]'
`
do
d
=
`
dirname
$i
`
b
=
`
echo
$i
|
sed
's/[.]html$//'
`
if
[
-d
Dest/wiki/
$b
]
;
then
b
=
$b
/index.html
fi
echo
$i
"---"
$b
sed
'
s/static.varnish_trac.css/trac\/static\/css\/varnish_trac.css/
s/static.logo-v2/trac\/&/
s/<script type="text.javascript" src="[^"]*"><.script>//g
s/javascript/INTERCAL/g
/link rel="search"/d
/link rel="prev"/d
/link rel="next"/d
/link rel="up"/d
/link rel="last"/d
/link rel="help"/d
/link rel="alternate"/d
/link rel="start"/d
/link rel="first"/d
/link rel="shortcut icon"/d
/link rel="icon"/d
/link type="application.opensearchdescription"/d
/<form id="search"/,+6d
/Login.*Preferences.*Help.*Guide.*About/d
/Wiki.*Timeline.*Roadmap.*Browse Source/d
/<div id="pagepath/,+2d
/<div id="altlinks/,+7d
/<div id="ctxtnav/,+6d
/<div once="true" id="footer"/,+7d
/cdn.blix.eu/d
s/<a class="timeline.*title="\([^ ]*\) in Timeline[^<]*<\/a>/\1/
/mainnav/a\
<h1>NB: This is a frozen copy of the wiki page from Trac</h1>
'
RawWiki/
$i
>
Dest/wiki/
$b
done
ln
-s
TitleIndex Dest/wiki/index.html
TracArchive/fetch_wiki.sh
0 → 100644
View file @
8b76753d
set
-e
#fetch -o __wikiindex https://www.varnish-cache.org/trac/wiki/TitleIndex
mkdir
-p
Raw
sed
'
s/href/\
href/g
'
__wikiindex |
sed
'
/^href/!d
/trac\/wiki\//!d
s/trac\/wiki\///
s/^href="//
s/".*//
'
|
sort
-u
|
while
read
p
do
d
=
`
dirname
RawWiki/
$p
`
mkdir
-p
$d
fetch
-o
RawWiki/
${
p
}
.html https://www.varnish-cache.org/trac/wiki
$p
done
TracArchive/static/css/wiki.css
0 → 100644
View file @
8b76753d
@import
url(code.css)
;
#info
{
margin
:
0
0
1em
0
}
#wikipage
{
clear
:
both
}
/* Styles for the path of hierarchical pages */
#pagepath
{
font-size
:
10px
;
/* same as .nav ul in trac.css */
float
:
left
;
}
#pagepath
:link
,
#pagepath
:visited
{
margin
:
0
.2em
}
#pagepath
.first
:link
,
#pagepath
.first
:visited
{
color
:
#998
}
#pagepath
.sep
{
color
:
#666
;
padding
:
0
.1em
}
#pagepath
.pathentry
{
float
:
left
}
/* Styles for the page editing form */
.preview-right
{
float
:
right
;
width
:
50%
;
display
:
block
;
margin
:
0
0
0
1em
;
}
.sidebyside
>
h2
{
margin
:
.4em
0
;
}
.sidebyside
#preview
{
margin
:
0
0
1em
0
;
}
#edit
{
margin-top
:
.5em
}
#edit
#rows
{
float
:
right
;
font-size
:
80%
;
margin
:
.4em
0
0
0
;
}
#edit
#rows
select
{
font-size
:
90%
}
#edit
fieldset
{
margin-left
:
1px
;
margin-right
:
1px
}
#edit
#text
{
clear
:
both
;
margin-left
:
-1px
;
margin-right
:
-1px
;
padding
:
0
;
width
:
100%
;
min-height
:
10em
;
resize
:
vertical
;
}
#edit
.wikitoolbar
{
float
:
left
;
margin-left
:
-1px
}
#edit
div
.trac-resizable
{
clear
:
both
;
width
:
100%
}
#changeinfo
{
padding
:
.5em
}
#changeinfo
.field
{
float
:
left
;
margin
:
0
1em
.5em
0
}
#changeinfo
{
clear
:
both
}
#changeinfo
br
{
clear
:
left
}
#changeinfo
.options
{
padding
:
0
0
1em
1em
}
#changeinfo
.options
,
#changeinfo
.buttons
{
clear
:
left
}
#delete
,
#rename
,
#save
{
margin-left
:
3em
}
#preview
{
background
:
#f8f8f8
url(../draft.png)
;
margin
:
1em
0
2em
;
overflow
:
auto
;
}
#template
{
vertical-align
:
middle
;
padding-top
:
1em
;
}
/* Diff view */
#overview
.multi
{
color
:
#999
}
#overview
.ipnr
{
color
:
#999
;
font-size
:
80%
}
#overview
.comment
{
padding
:
1em
0
0
}
@media
print
{
th
.diff
,
td
.diff
{
display
:
none
}
}
/* Styles for the TracGuideToc wikimacro */
.wiki-toc
{
padding
:
.5em
1em
;
margin
:
0
0
2em
1em
;
float
:
right
;
border
:
1px
outset
#ddc
;
background
:
#ffd
;
font-size
:
85%
;
position
:
relative
;
}
.wiki-toc
h4
{
font-size
:
12px
;
margin
:
0
}
.wiki-toc
ul
,
.wiki-toc
ol
{
list-style
:
none
;
padding
:
0
;
margin
:
0
}
.wiki-toc
ul
ul
,
.wiki-toc
ol
ol
{
padding-left
:
1.2em
}
.wiki-toc
li
{
margin
:
0
;
padding
:
0
}
.wiki-toc
.active
{
background
:
#ff9
;
position
:
relative
;
}
div
.trac-modifiedby
{
margin
:
.3em
.5em
;
color
:
#888
;
font-size
:
80%
;
font-style
:
italic
;
text-align
:
right
;
float
:
right
;
}
div
.trac-modifiedby
:link
,
div
.trac-modifiedby
:visited
{
color
:
inherit
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment