File:  [NetBSD Developer Wiki] / wikisrc / wiki / cvs.mdwn
Revision 1.7: download - view: text, annotated - select for diffs
Sat Jul 3 20:53:49 2010 UTC (3 years, 9 months ago) by schmonz
Branches: MAIN
CVS tags: HEAD
Wrap lines. Demonstrate a page title containing spaces and capital
letters.  Provide instructions for non-developers. Note that saving
a web edit results in a commit.

#### Getting `wikisrc`

    $ cvs -d <username>@wiki.netbsd.org:/cvsroot get wikisrc

#### Creating page "Foo Bar"

    $ cd .../wikisrc
    $ echo '\[[!meta title="Foo Bar, or, A Nice-Looking Title"]]' > foo_bar.mdwn
    $ $EDITOR foo_bar.mdwn
    $ cvs add foo_bar.mdwn
    $ cvs commit -m "all about Foo Bar" foo_bar.mdwn

#### Editing page "Foo Bar"

    $ cd .../wikisrc
    $ $EDITOR foo_bar.mdwn
    $ cvs commit -m "more about Foo Bar" foo_bar.mdwn

When you commit to `wikisrc`, the pages affected by your edit are
automatically regenerated. Your change will be displayed in
[[RecentChanges]] as type _cvs_.

#### Previewing your changes

For a somewhat representative rendering, without benefit of the
wiki's config file:

    $ cd .../pkgsrc/www/ikiwiki && make install clean
    $ cd .../wikisrc && ikiwiki `pwd` /dev/null --render foo_bar.mdwn | less

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb