use toggles
parent
6b30ddaafb
commit
41efccf490
|
@ -21,12 +21,16 @@ This tutorial will walk you through setting up a wiki with ikiwiki.
|
|||
cd $SRCDIR
|
||||
$EDITOR index.mdwn
|
||||
|
||||
In the editor, you could start by entering a simple page like this one:
|
||||
In the editor, you could start by entering a simple page like
|
||||
[[toggle id=page text="this one"]].
|
||||
|
||||
[[toggleable id=page text="""
|
||||
Welcome to your new wiki.
|
||||
All wikis are supposed to have a [[SandBox]], so this one does too.
|
||||
All wikis are supposed to have a [[SandBox]],
|
||||
so this one does too.
|
||||
----
|
||||
This wiki is powered by [ikiwiki](http://ikiwiki.kitenet.net).
|
||||
"""]]
|
||||
|
||||
See [[HelpOnFormatting]] for details about the markup language.
|
||||
|
||||
|
@ -85,16 +89,19 @@ This tutorial will walk you through setting up a wiki with ikiwiki.
|
|||
|
||||
There's little that's ikiwiki specific about these instructions; this is
|
||||
just how you put a directory under revision control using the various
|
||||
systems ikiwiki supports:
|
||||
systems that ikiwiki supports.
|
||||
|
||||
# Subversion
|
||||
[[toggle id=subversion text="Subversion"]]
|
||||
[[toggleable id=subversion text="""
|
||||
REPOSITORY=~/wikirepo
|
||||
svnadmin create $REPOSITORY
|
||||
svn import $SRCDIR file://$REPOSITORY/trunk -m "initial import"
|
||||
rm -rf $SRCDIR
|
||||
svn co file://$REPOSITORY/trunk $SRCDIR
|
||||
"""]]
|
||||
|
||||
# Git
|
||||
[[toggle id=git text="Git"]]
|
||||
[[toggleable id=git text="""
|
||||
REPOSITORY=~/wikirepo
|
||||
mkdir $REPOSITORY
|
||||
cd $REPOSITORY
|
||||
|
@ -104,8 +111,10 @@ This tutorial will walk you through setting up a wiki with ikiwiki.
|
|||
git commit -m "initial import" -a
|
||||
rm -rf $SRCDIR
|
||||
git clone -l -s $REPOSITORY $SRCDIR
|
||||
"""]]
|
||||
|
||||
# TLA
|
||||
[[toggle id=tla text="TLA"]]
|
||||
[[toggleable id=tla text="""
|
||||
REPOSITORY=~/wikirepo
|
||||
tla make-archive me@localhost--wiki $REPOSITORY
|
||||
tla my-id "<me@localhost>"
|
||||
|
@ -116,10 +125,13 @@ This tutorial will walk you through setting up a wiki with ikiwiki.
|
|||
# line to add the .ikiwiki directory to the regexp.
|
||||
tla add *
|
||||
tla import
|
||||
"""]]
|
||||
|
||||
# Mercurial
|
||||
[[toggle id=mercurial text="Mercurial"]]
|
||||
[[toggleable id=mercurial text="""
|
||||
REPOSITORY=$SRCDIR
|
||||
hg init $REPOSITORY
|
||||
"""]]
|
||||
|
||||
9. Configure ikiwiki to use revision control.
|
||||
|
||||
|
|
Loading…
Reference in New Issue