From 43b1ee6aa1535e2a8d0ccdba3033644d8eb897f7 Mon Sep 17 00:00:00 2001 From: justint Date: Thu, 24 Feb 2011 02:59:04 +0000 Subject: Added a comment: Continuing discussion... --- .../comment_7_bdc5c96022fdb8826b57d68a41ef6ca0._comment | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/forum/TMPL__95__VAR_IS__95__ADMIN/comment_7_bdc5c96022fdb8826b57d68a41ef6ca0._comment (limited to 'doc/forum') diff --git a/doc/forum/TMPL__95__VAR_IS__95__ADMIN/comment_7_bdc5c96022fdb8826b57d68a41ef6ca0._comment b/doc/forum/TMPL__95__VAR_IS__95__ADMIN/comment_7_bdc5c96022fdb8826b57d68a41ef6ca0._comment new file mode 100644 index 000000000..79fd8516f --- /dev/null +++ b/doc/forum/TMPL__95__VAR_IS__95__ADMIN/comment_7_bdc5c96022fdb8826b57d68a41ef6ca0._comment @@ -0,0 +1,8 @@ +[[!comment format=mdwn + username="justint" + ip="24.182.207.250" + subject="Continuing discussion..." + date="2011-02-24T02:59:04Z" + content=""" +Ok, I'll go over to the [[bugs/logout_in_ikiwiki]] page. Thank you for your help. +"""]] -- cgit v1.2.3 From 2149dd4ac0e7dd29fdcc11a063f9835f7111ebed Mon Sep 17 00:00:00 2001 From: fmarier Date: Thu, 24 Feb 2011 08:48:25 +0000 Subject: --- .../Setting_up_a_development_environment.mdwn | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 doc/forum/Setting_up_a_development_environment.mdwn (limited to 'doc/forum') diff --git a/doc/forum/Setting_up_a_development_environment.mdwn b/doc/forum/Setting_up_a_development_environment.mdwn new file mode 100644 index 000000000..94f022e22 --- /dev/null +++ b/doc/forum/Setting_up_a_development_environment.mdwn @@ -0,0 +1,26 @@ +Hi, + +I'm trying to setup a development environment to hack on the comments plugin and I'm having problems getting my Ikiwiki CGI to use my git checkout as the libdir and templatedir instead of the system one. + +My .setup contains: + + srcdir => '/home/francois/wiki/testblog', + destdir => '/var/www/testblog', + url => 'http://localhost/testblog', + cgiurl => 'http://localhost/testblog/ikiwiki.cgi', + cgi_wrapper => '/var/www/testblog/ikiwiki.cgi', + templatedir => '/home/francois/devel/remote/ikiwiki/templates', + underlaydir => '/home/francois/devel/remote/ikiwiki/doc', + libdir => '/home/francois/devel/remote/ikiwiki', + ENV => {}, + git_wrapper => '/home/francois/wiki/testblog.git/hooks/post-update', + +Now, if I modify ~/devel/remote/ikiwiki/templates/comment.tmpl, my changes don't appear when I add a comment to a blog post. On the other hand, if I hack /usr/share/ikiwiki/templates/comment.tmpl and cause the page to be rebuilt by adding a new comment then that does have an effect. + +The same is true for ~/devel/remote/ikiwiki/Ikiwiki/Plugin/comments.pm (doesn't appear to be used) and /usr/share/perl5/Ikiwiki/Plugin/comments.pm (my hacks affect pages as they are recompiled). + +I must be missing something obvious, but the [[ikiwiki development environment tips]] didn't help me... + +Cheers, + +[[Francois|fmarier]] -- cgit v1.2.3 From 3a0504ddf9994d1dfc8f7a99d158146b5b4da030 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 24 Feb 2011 10:09:04 +0100 Subject: My solution to working with ikiwiki from git --- .../Setting_up_a_development_environment.mdwn | 6 ++++++ .../ikiwiki_development_environment_tips.mdwn | 24 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) (limited to 'doc/forum') diff --git a/doc/forum/Setting_up_a_development_environment.mdwn b/doc/forum/Setting_up_a_development_environment.mdwn index 94f022e22..0b4e555c1 100644 --- a/doc/forum/Setting_up_a_development_environment.mdwn +++ b/doc/forum/Setting_up_a_development_environment.mdwn @@ -24,3 +24,9 @@ I must be missing something obvious, but the [[ikiwiki development environment t Cheers, [[Francois|fmarier]] + +> I updated the [[ikiwiki development environment tips]] page with my +> approach to running ikiwiki from the git checkout (with changes). For +> the templates, also make sure that you do not have custom templates in +> your src dir as they will be used instead of those from the template +> dir if found. --GB diff --git a/doc/forum/ikiwiki_development_environment_tips.mdwn b/doc/forum/ikiwiki_development_environment_tips.mdwn index 91ccc6d6e..f9c584159 100644 --- a/doc/forum/ikiwiki_development_environment_tips.mdwn +++ b/doc/forum/ikiwiki_development_environment_tips.mdwn @@ -42,3 +42,27 @@ Does anyone have a comfortable setup or tips they would like to share? -- [[Jon] > needed, since it is preconfigured to use the templates and underlays > from ikiwiki's source repository. > --[[Joey]] + +> I work with Ikiwiki from the git checkout directory the following way. +> +> * instead of running ikiwiki, I wrote the following `mykiwiki` shell script, +> that also allows me to use my custom lib-ifited multimarkdown: + + #!/bin/sh + + MMDSRC="$HOME/src/multimarkdown/lib" + IKIWIKISRC="$HOME/src/ikiwiki" + PLUGINS="$HOME/src/ikiplugins" + + /usr/bin/perl -I"$MMDSRC" -I"$IKIWIKISRC/blib/lib" -I"$PLUGINS" "$IKIWIKISRC/ikiwiki.out" -libdir "$IKIWIKISRC" "$@" + +> * I also have an installed ikiwiki from Debian unstable, from which I only use the base wiki, so my `.setup` has the following configs: + + # additional directory to search for template files + templatedir => '/home/oblomov/src/ikiwiki/templates', + # base wiki source location + underlaydir => '/usr/share/ikiwiki/basewiki', + # extra library and plugin directory + libdir => '/home/oblomov/src/ikiwiki', + +> Hope that helps --GB -- cgit v1.2.3