Commit Graph

12723 Commits (932fc0c25ffa1da6c6eb5d398752372ba7f80165)

Author SHA1 Message Date
Javier Rojas c4db8d89a5 new forum post 2010-02-03 22:47:26 -05:00
Javier Rojas 261dcd0475 response 2010-02-03 21:59:38 -05:00
David Riebenbauer da5d29f95f fix bugs in `find_src_files()`.
Use `_` to avoid superfluous stat.

Check for `defined $file`, instead of just `$file`.

Add spaces after commas.

Change return values of `verify_src_file()` to not return the tainted filename.
Rename `$f` to `$file_untainted in `verify_src_file()`.
$f changes to `$file` in `find_src_files()`.

This attempts to fix commit f3abeac919.
For discussion see
<http://ikiwiki.info/todo/auto-create_tag_pages_according_to_a_template/>
2010-02-03 07:34:04 +01:00
David Riebenbauer bd1e29b8c4 Revert "Make srcfile() return undef, if the file isn't there."
This reverts commit 1bde208ec9b915db0187030c33450b5accb4892c.
2010-02-03 07:34:04 +01:00
Joey Hess 6b98269aa3 partial review 2010-02-02 13:31:07 -05:00
David Riebenbauer 9330b91703 fix typo in autotag.tmpl 2010-02-02 16:29:27 +01:00
David Riebenbauer 1febfda911 also tag 'patch/core', considering that over half of the changes are there 2010-02-02 14:50:01 +01:00
David Riebenbauer c6f27f9dfa add git repository 'davrieb' and document branch on userpage 2010-02-02 14:32:51 +01:00
David Riebenbauer 25741100b0 Export add_autofile() for use in Plugins. 2010-02-02 14:04:39 +01:00
David Riebenbauer f58f3e1bec Revert the effects of find_del_files() for (re)autoadded files.
This also means that if autoadded files are deleted they will just be
recreated.
2010-02-02 14:04:39 +01:00
David Riebenbauer a8d313aba1 Use add_autofile() in tag.pm
to make the automatically created tagpages render.
2010-02-02 14:04:29 +01:00
David Riebenbauer f3c59ed3e5 Process files from @autofiles in refresh().
To make automatically added files render they have to be added to the $files,
$pages, $new, and $changed variables.

After that scan() is called on them.
2010-02-02 14:04:28 +01:00
David Riebenbauer b18fde2bde Add a function add_autofiles().
The objective is to provide a sensible way to let plugins add files during the
"scan stage" of the build.

Currently does a little verification and adds the file to the global array
@add_autofiles.
2010-02-02 14:04:28 +01:00
David Riebenbauer f35d35abe3 Automatically create tag pages,
if "tag_autocreate=1" is set in the configuration. The pages will be created in
tagbase, if and only if they do not exist in the srcdir yet. Tag pages will be create from
"autotag.tmpl".

At this stage a second refresh is needed for the tag pages to be rendered.

Add autotag.tmpl template.
2010-02-02 14:04:28 +01:00
David Riebenbauer f3abeac919 Code deduplication fin find_src_files()
This also has the advantage that I can use the resulting new function
elsewhere.
2010-02-02 14:04:28 +01:00
David Riebenbauer 4af4d26582 Make srcfile() return undef, if the file isn't there.
This has the advantage that it's now possible to check for the existence of a
sourcefile with that function.
2010-02-02 14:04:28 +01:00
David Riebenbauer 05b99e3cfa Document git branch for automatically creating tag pages. 2010-02-02 13:54:51 +01:00
Josh Triplett deb0bc8bd5 New todo item for wrapperuser configuration option 2010-02-02 02:56:06 -08:00
Joey Hess b30fd63279 thanks schmonz for your kind donation 2010-02-01 16:06:51 -05:00
Joey Hess f963700a4f ready to pull, and thoughts 2010-02-01 15:34:10 -05:00
Joey Hess 49d8c5b821 setup automator: Configure Term::Readline to use bold for prompt, rather than default underline. Closes: #517656 2010-02-01 15:18:53 -05:00
Joey Hess 4a1518ceba Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2010-02-01 15:17:13 -05:00
https://www.google.com/accounts/o8/id?id=AItOawn1lGvpPZ8dpuLSPLPa-jqpMef2KqeB1qI 438cb249a3 2010-02-01 14:32:21 +00:00
http://jmtd.livejournal.com/ 541406818b also potwiki 2010-02-01 11:09:27 +00:00
Joey Hess 1e0b724bac document that state variables are not available in the checkconfig hook 2010-01-31 14:03:19 -05:00
Javier Rojas 03bb16cf18 moved discussion to the forum main page 2010-01-31 11:35:33 -05:00
Javier Rojas 91cb8d75de missing signature 2010-01-30 21:38:47 -05:00
Javier Rojas a4611bdebd reply to forum discussion 2010-01-30 21:35:12 -05:00
Javier Rojas e9b349fdb0 testing push 2010-01-30 21:30:14 -05:00
Joey Hess a2ee2aa9c7 note on filtering 2010-01-29 16:05:45 -05:00
Joey Hess ca76d8f38b oh, we didn't convert this one yet. 2010-01-28 22:43:23 -05:00
Joey Hess 3f822ed95f iainmclaren.com not using ikiwiki now 2010-01-28 22:41:35 -05:00
Joey Hess 5ba9a0ae97 added Anna and Mark's bevvy of websites 2010-01-28 22:41:06 -05:00
Joey Hess f91d79f469 img: Fix a bug that could taint @links with undef values. 2010-01-28 21:07:23 -05:00
Joey Hess 7f462b6589 revert spam 2010-01-28 05:23:28 -05:00
MariaJackson bcf74bd8f8 2010-01-28 09:58:20 +00:00
Joey Hess e269fbd7af new repo 2010-01-28 04:35:58 -05:00
Joey Hess 73253d6925 template: Preprocess parameters before htmlizing.
Consider a template like:

[[!template type=note text="""
[[!inline pages="*foo*"]]
"""]]

The text parameter is htmlized before being passed into the template (in
case the template wraps it in a <span> that prevents markdown from
htmlizing it later).

But, when markdown sees "*foo*", it turns that into <em>foo</em>.
Later, when preprocessing the inline directive, that leads to suprising
results.

To fix this, I made template parameters be preprocessed (and filtered)
before being htmlized.

Note that I left in the preprocessing (and filtering) of the template
output at the end. That's still relevant when the template itself contains
preprocessor directives.
2010-01-26 22:33:46 -05:00
Joey Hess f89b6f49d0 Revert spam 2010-01-24 23:32:19 -05:00
HelenOliver 2f4ae4fa05 added references 2010-01-25 04:21:27 +00:00
http://kerravonsen.dreamwidth.org/ e9ee3d7d85 note new version of getfield 2010-01-24 09:41:44 +00:00
http://kerravonsen.dreamwidth.org/ f6b2edef64 new release of getfield; can now get values from other pages as well as current page 2010-01-24 09:38:40 +00:00
http://kerravonsen.dreamwidth.org/ 29c475af4d link to site 2010-01-24 03:06:06 +00:00
http://kerravonsen.dreamwidth.org/ 27d2d7115d note that report is now released 2010-01-24 02:59:11 +00:00
http://kerravonsen.dreamwidth.org/ bcde9b7412 new report plugin 2010-01-24 02:52:57 +00:00
Joey Hess 4affa37f8b response 2010-01-23 21:13:29 -05:00
http://www.google.com/profiles/gsvick 5bcbb58413 2010-01-24 00:03:08 +00:00
Joey Hess 58eaf27137 response 2010-01-23 18:33:13 -05:00
http://www.google.com/profiles/gsvick c301ce26a4 2010-01-23 20:46:58 +00:00
Joey Hess ce64321282 response 2010-01-23 15:26:12 -05:00