rest2web-develop Mailing List for rest2web (Page 8)
Brought to you by:
mjfoord
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(74) |
Aug
(71) |
Sep
(6) |
Oct
(6) |
Nov
(3) |
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(8) |
Feb
(17) |
Mar
(16) |
Apr
(48) |
May
(9) |
Jun
|
Jul
(7) |
Aug
(93) |
Sep
(18) |
Oct
(17) |
Nov
(22) |
Dec
(11) |
2007 |
Jan
(11) |
Feb
|
Mar
(61) |
Apr
(14) |
May
(3) |
Jun
|
Jul
(13) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(6) |
2008 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(7) |
Oct
(2) |
Nov
(7) |
Dec
(7) |
2009 |
Jan
(2) |
Feb
|
Mar
(4) |
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2010 |
Jan
(1) |
Feb
(1) |
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
|
2011 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(14) |
Sep
(2) |
Oct
(1) |
Nov
(3) |
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(5) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(2) |
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
(2) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(4) |
2016 |
Jan
(2) |
Feb
(5) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Michael F. <fuz...@vo...> - 2007-03-09 14:48:58
|
Eur Ing Chris Green wrote: > A request 'for the next release' maybe. > > Can the configuration/layout be changed so that the templates and > stylesheets are in the same place? It makes sense because they are > closely related and one nearly always wants to edit them both, or at > least refer to one while you're editing the other. > > Simply making the default directory for the template.txt file being > the stylesheets directory would be OK. It might be even better to > make this directory configurable in the .ini file. > Except rest2web itself has no knowledge of CSS - you can store your CSS files wherever you want. If you are using force mode there is no way of specifying where your template file is other than the command line. To make this more convenient you could create a batch file which runs rest2web with the correct command line options set to keep your template file there. Fuzzyman http://www.voidspace.org.uk/python/articles.shtml |
From: Eur I. C. G. <cl...@is...> - 2007-03-09 14:39:40
|
A request 'for the next release' maybe. Can the configuration/layout be changed so that the templates and stylesheets are in the same place? It makes sense because they are closely related and one nearly always wants to edit them both, or at least refer to one while you're editing the other. Simply making the default directory for the template.txt file being the stylesheets directory would be OK. It might be even better to make this directory configurable in the .ini file. -- Chris Green |
From: Michael F. <fuz...@vo...> - 2007-03-09 13:36:03
|
Eur Ing Chris Green wrote: > On Fri, Mar 09, 2007 at 12:30:21PM +0000, Michael Foord wrote: > >> Eur Ing Chris Green wrote: >> >>> On Thu, Mar 08, 2007 at 09:39:04PM +0000, Eur Ing Chris Green wrote: >>> >>> >>>> Well there I was thinking that the force option would be useful for >>>> me, but there's one issue for me. >>>> >>>> I have start_directory set to the same value as target_directory >>>> since the web server I am using is on the machine where I'm running >>>> rest2web. If you do this r2w.py tries to process the template.txt >>>> file, which doesn't work very well. >>>> >>>> Is there any way to either move the template.txt file out of the >>>> start_directory or to give it a different name? >>>> >>>> >>>> >>> Once again RTFM, the -t option of r2w.py allows one to specify where >>> the template.txt file is. However I do think that changing its name >>> to something other than a .txt file might be a good idea. >>> >>> >> What I can do in the next release is have rest2web ignore 'template.txt' >> in force mode. >> >> > Yes, good idea. > > Is there a 'wish list' for rest2web anywhere by the way? > Only this list and my email archive I'm afraid. Fuzzyman http://www.voidspace.org.uk/python/articles.shtml |
From: Michael F. <fuz...@vo...> - 2007-03-09 13:35:14
|
Eur Ing Chris Green wrote: > By the way, having played with rest2web for a few days now and having > started to use it for my personal notes and documentation tree I'm > finding it excellent, almost perfect for what I want. > > With a bit of tuning (and one macro so far) I have got it to 'wrap > itself around' my existing tree of notes etc. quite easily. > > Also, as I said in another list recently, I'm finding that applications > written in python seem to fit my ideas and requirements rather well. > I'm beginning to think that python will become my scripting language > of choice (I am fairly familiar with sed/awk and shell scripts and have > dabbled in perl). The macro I wrote wasn't too painful which is > surprising since I was learning python as well finding my way about > rest2web. > > So a big thank you for rest2web - and my frequent questions will > probably die down soon. :-) > > No problem - and thank you for your comments. Fuzzyman |
From: Eur I. C. G. <cl...@is...> - 2007-03-09 13:24:31
|
By the way, having played with rest2web for a few days now and having started to use it for my personal notes and documentation tree I'm finding it excellent, almost perfect for what I want. With a bit of tuning (and one macro so far) I have got it to 'wrap itself around' my existing tree of notes etc. quite easily. Also, as I said in another list recently, I'm finding that applications written in python seem to fit my ideas and requirements rather well. I'm beginning to think that python will become my scripting language of choice (I am fairly familiar with sed/awk and shell scripts and have dabbled in perl). The macro I wrote wasn't too painful which is surprising since I was learning python as well finding my way about rest2web. So a big thank you for rest2web - and my frequent questions will probably die down soon. :-) -- Chris Green |
From: Eur I. C. G. <cl...@is...> - 2007-03-09 13:17:11
|
On Fri, Mar 09, 2007 at 12:48:26PM +0000, Michael Foord wrote: > Eur Ing Chris Green wrote: > > I have been trying to 'tidy' up my use of rest2web so I have created > > different .ini files for different projects. Thus I have created a > > .ini file for the rest2web documentation tree which I have called > > (surprise!) docs.ini. > > > > If you enter:- > > > > r2w.py docs.ini > > > > It starts up OK but fails as follows:- > > > > ... > > ... > > ... > > Building functions.html > > Skipping "functions.html". Identical file exists. > > Building introduction.html > > Skipping "introduction.html". Identical file exists. > > Building macros.html > > [err] Traceback (most recent call last): > > [err] File "./r2w.py", line 170, in ? > > [err] count = main(options, config) > > [err] File "./r2w.py", line 103, in main > > [err] return processor.walk() > > [err] File > > "/usr/lib/python2.4/site-packages/rest2web/restprocessor.py", line 473, in walk > > [err] errorcheck = self.execute_safely(self.buildsection) > > [err] File > > "/usr/lib/python2.4/site-packages/rest2web/restprocessor.py", line 218, in execute_safely > > [err] val = function(*args, **keywargs) > > [err] File > > "/usr/lib/python2.4/site-packages/rest2web/restprocessor.py", line 1452, in buildsection > > [err] namespace['body'] = textmacros.replace_all( > > [err] File > > "/usr/lib/python2.4/site-packages/rest2web/textmacros.py", line 207, in replace_all > > [err] return tm.expand(text) > > [err] File > > "/usr/lib/python2.4/site-packages/rest2web/textmacros.py", line 202, in expand > > [err] return self.expand_tree(tree) > > [err] File > > "/usr/lib/python2.4/site-packages/rest2web/textmacros.py", line 147, in expand_tree > > [err] expanded = self.eval_macro(text) > > [err] File > > "/usr/lib/python2.4/site-packages/rest2web/textmacros.py", line 184, in eval_macro > > [err] return str(f(*args)) > > [err] File > > "/usr/lib/python2.4/site-packages/rest2web/defaultmacros.py", line 120, in include > > [err] data = open(os.path.expanduser(filename), 'r').read() > > [err] IOError: [Errno 2] No such file or directory: 'r2w.ini' > > [err] > > > > > > Note that if you happen to have just copied r2w.ini to docs.ini and > > the r2w.ini still exists you don't get the error of course. It only > > happens when there's no r2w.ini at all. > > > > It looks as if there's a "r2w.ini" hard coded somewhere that it > > shouldn't be I guess. > > > > > Right - this is just an example of the 'include' macro - which includes > the config file inside a page. > > If you just grep for 'r2w.ini' in the docs you should be able to find it > and edit it. > Aha, yes I see, it's just a consequence of that being the documentation and actually doing an include of r2w.ini as an example. -- Chris Green |
From: Eur I. C. G. <cl...@is...> - 2007-03-09 13:10:02
|
On Fri, Mar 09, 2007 at 12:30:26PM +0000, Michael Foord wrote: > Eur Ing Chris Green wrote: > > Apart from the obvious putting r2w.py in my PATH that is. > > > > If I want to maintain more than one set of web pages (call it a > > 'project') using rest2web what do I need to do to make it available > > from anywhere? > > > > Obviously each set of web pages will have a home directory of some > > sort which will have the r2w.ini file in it, this can then tell r2w.py > > where to find all the project specific stuff. > > > > So what else from the unpacked rest2web-0.5.1.tar.gz do I need to put > > somewhere so that it can be found? > > > > I have put r2w.py in a directory on my PATH. > > I have put the rest2web sub-directory in my Python site-packages > > What about macros.py and macros.pyc, do I need copy these anywhere? > > > > > Well... :-) > > If you have r2w.py on your path then you're pretty much there. rest2web > now has the default macros built in (thanks to some inspiration from > Martin), so you *only* need to use the 'macros.py' file if you are > implementing your own macros. > > In this case you specify the path to the macros file in your site config > file. > OK, thanks. I have written myself one macro, so need the macros.py path in the .ini file, very simple! -- Chris Green |
From: Eur I. C. G. <cl...@is...> - 2007-03-09 13:07:38
|
On Fri, Mar 09, 2007 at 12:30:21PM +0000, Michael Foord wrote: > Eur Ing Chris Green wrote: > > On Thu, Mar 08, 2007 at 09:39:04PM +0000, Eur Ing Chris Green wrote: > > > >> Well there I was thinking that the force option would be useful for > >> me, but there's one issue for me. > >> > >> I have start_directory set to the same value as target_directory > >> since the web server I am using is on the machine where I'm running > >> rest2web. If you do this r2w.py tries to process the template.txt > >> file, which doesn't work very well. > >> > >> Is there any way to either move the template.txt file out of the > >> start_directory or to give it a different name? > >> > >> > > Once again RTFM, the -t option of r2w.py allows one to specify where > > the template.txt file is. However I do think that changing its name > > to something other than a .txt file might be a good idea. > > > What I can do in the next release is have rest2web ignore 'template.txt' > in force mode. > Yes, good idea. Is there a 'wish list' for rest2web anywhere by the way? -- Chris Green |
From: Eur I. C. G. <cl...@is...> - 2007-03-09 13:06:14
|
On Fri, Mar 09, 2007 at 12:55:49PM +0000, Michael Foord wrote: > Eur Ing Chris Green wrote: > > Where is the "Index for" that is used in force mode defined? I'd like > > to change it. > > > > > It is in the 'provide_default_index' of the restprocessor. > (restprocessor.py). I should make this configurable. When I have > finished my book... > > def provide_default_index(self, filename=None): > """Provide defaults for a missing index page.""" > if filename is None: > page_title = split(self.dir.rstrip('/\\'))[1] > else: > page_title = splitext(split(filename)[1])[0].replace('_', ' > ').title() > content = self._default_index > restindex = { > 'page-title': 'Index for %s' % (page_title > or self._top_level_name), > 'format': 'rest' > } > return restindex, content > Excellent, thank you, I didn't grep quite far enough down to find it! Yes, ultimately, it would be nice for it to be configurable (my wife is writing a book too). -- Chris Green |
From: Michael F. <fuz...@vo...> - 2007-03-09 12:55:54
|
Eur Ing Chris Green wrote: > Where is the "Index for" that is used in force mode defined? I'd like > to change it. > > It is in the 'provide_default_index' of the restprocessor. (restprocessor.py). I should make this configurable. When I have finished my book... def provide_default_index(self, filename=None): """Provide defaults for a missing index page.""" if filename is None: page_title = split(self.dir.rstrip('/\\'))[1] else: page_title = splitext(split(filename)[1])[0].replace('_', ' ').title() content = self._default_index restindex = { 'page-title': 'Index for %s' % (page_title or self._top_level_name), 'format': 'rest' } return restindex, content Fuzzyman http://www.voidspace.org.uk/python/articles.shtml |
From: Michael F. <fuz...@vo...> - 2007-03-09 12:48:33
|
Eur Ing Chris Green wrote: > I have been trying to 'tidy' up my use of rest2web so I have created > different .ini files for different projects. Thus I have created a > .ini file for the rest2web documentation tree which I have called > (surprise!) docs.ini. > > If you enter:- > > r2w.py docs.ini > > It starts up OK but fails as follows:- > > ... > ... > ... > Building functions.html > Skipping "functions.html". Identical file exists. > Building introduction.html > Skipping "introduction.html". Identical file exists. > Building macros.html > [err] Traceback (most recent call last): > [err] File "./r2w.py", line 170, in ? > [err] count = main(options, config) > [err] File "./r2w.py", line 103, in main > [err] return processor.walk() > [err] File > "/usr/lib/python2.4/site-packages/rest2web/restprocessor.py", line 473, in walk > [err] errorcheck = self.execute_safely(self.buildsection) > [err] File > "/usr/lib/python2.4/site-packages/rest2web/restprocessor.py", line 218, in execute_safely > [err] val = function(*args, **keywargs) > [err] File > "/usr/lib/python2.4/site-packages/rest2web/restprocessor.py", line 1452, in buildsection > [err] namespace['body'] = textmacros.replace_all( > [err] File > "/usr/lib/python2.4/site-packages/rest2web/textmacros.py", line 207, in replace_all > [err] return tm.expand(text) > [err] File > "/usr/lib/python2.4/site-packages/rest2web/textmacros.py", line 202, in expand > [err] return self.expand_tree(tree) > [err] File > "/usr/lib/python2.4/site-packages/rest2web/textmacros.py", line 147, in expand_tree > [err] expanded = self.eval_macro(text) > [err] File > "/usr/lib/python2.4/site-packages/rest2web/textmacros.py", line 184, in eval_macro > [err] return str(f(*args)) > [err] File > "/usr/lib/python2.4/site-packages/rest2web/defaultmacros.py", line 120, in include > [err] data = open(os.path.expanduser(filename), 'r').read() > [err] IOError: [Errno 2] No such file or directory: 'r2w.ini' > [err] > > > Note that if you happen to have just copied r2w.ini to docs.ini and > the r2w.ini still exists you don't get the error of course. It only > happens when there's no r2w.ini at all. > > It looks as if there's a "r2w.ini" hard coded somewhere that it > shouldn't be I guess. > > Right - this is just an example of the 'include' macro - which includes the config file inside a page. If you just grep for 'r2w.ini' in the docs you should be able to find it and edit it. Fuzzyman http://www.voidspace.org.uk/python/index.shtml |
From: Michael F. <fuz...@vo...> - 2007-03-09 12:30:33
|
Eur Ing Chris Green wrote: > Apart from the obvious putting r2w.py in my PATH that is. > > If I want to maintain more than one set of web pages (call it a > 'project') using rest2web what do I need to do to make it available > from anywhere? > > Obviously each set of web pages will have a home directory of some > sort which will have the r2w.ini file in it, this can then tell r2w.py > where to find all the project specific stuff. > > So what else from the unpacked rest2web-0.5.1.tar.gz do I need to put > somewhere so that it can be found? > > I have put r2w.py in a directory on my PATH. > I have put the rest2web sub-directory in my Python site-packages > What about macros.py and macros.pyc, do I need copy these anywhere? > > Well... :-) If you have r2w.py on your path then you're pretty much there. rest2web now has the default macros built in (thanks to some inspiration from Martin), so you *only* need to use the 'macros.py' file if you are implementing your own macros. In this case you specify the path to the macros file in your site config file. Fuzzyman http://www.voidspace.org.uk/python/articles.shtml |
From: Michael F. <fuz...@vo...> - 2007-03-09 12:30:29
|
Eur Ing Chris Green wrote: > On Thu, Mar 08, 2007 at 09:39:04PM +0000, Eur Ing Chris Green wrote: > >> Well there I was thinking that the force option would be useful for >> me, but there's one issue for me. >> >> I have start_directory set to the same value as target_directory >> since the web server I am using is on the machine where I'm running >> rest2web. If you do this r2w.py tries to process the template.txt >> file, which doesn't work very well. >> >> Is there any way to either move the template.txt file out of the >> start_directory or to give it a different name? >> >> > Once again RTFM, the -t option of r2w.py allows one to specify where > the template.txt file is. However I do think that changing its name > to something other than a .txt file might be a good idea. > What I can do in the next release is have rest2web ignore 'template.txt' in force mode. Fuzzyman http://www.voidspace.org.uk/python/articles.shtml |
From: Eur I. C. G. <cl...@is...> - 2007-03-09 12:14:59
|
Where is the "Index for" that is used in force mode defined? I'd like to change it. -- Chris Green |
From: Eur I. C. G. <cl...@is...> - 2007-03-09 11:05:14
|
I have been trying to 'tidy' up my use of rest2web so I have created different .ini files for different projects. Thus I have created a .ini file for the rest2web documentation tree which I have called (surprise!) docs.ini. If you enter:- r2w.py docs.ini It starts up OK but fails as follows:- ... ... ... Building functions.html Skipping "functions.html". Identical file exists. Building introduction.html Skipping "introduction.html". Identical file exists. Building macros.html [err] Traceback (most recent call last): [err] File "./r2w.py", line 170, in ? [err] count = main(options, config) [err] File "./r2w.py", line 103, in main [err] return processor.walk() [err] File "/usr/lib/python2.4/site-packages/rest2web/restprocessor.py", line 473, in walk [err] errorcheck = self.execute_safely(self.buildsection) [err] File "/usr/lib/python2.4/site-packages/rest2web/restprocessor.py", line 218, in execute_safely [err] val = function(*args, **keywargs) [err] File "/usr/lib/python2.4/site-packages/rest2web/restprocessor.py", line 1452, in buildsection [err] namespace['body'] = textmacros.replace_all( [err] File "/usr/lib/python2.4/site-packages/rest2web/textmacros.py", line 207, in replace_all [err] return tm.expand(text) [err] File "/usr/lib/python2.4/site-packages/rest2web/textmacros.py", line 202, in expand [err] return self.expand_tree(tree) [err] File "/usr/lib/python2.4/site-packages/rest2web/textmacros.py", line 147, in expand_tree [err] expanded = self.eval_macro(text) [err] File "/usr/lib/python2.4/site-packages/rest2web/textmacros.py", line 184, in eval_macro [err] return str(f(*args)) [err] File "/usr/lib/python2.4/site-packages/rest2web/defaultmacros.py", line 120, in include [err] data = open(os.path.expanduser(filename), 'r').read() [err] IOError: [Errno 2] No such file or directory: 'r2w.ini' [err] Note that if you happen to have just copied r2w.ini to docs.ini and the r2w.ini still exists you don't get the error of course. It only happens when there's no r2w.ini at all. It looks as if there's a "r2w.ini" hard coded somewhere that it shouldn't be I guess. -- Chris Green |
From: Eur I. C. G. <cl...@is...> - 2007-03-08 22:03:16
|
On Thu, Mar 08, 2007 at 09:39:04PM +0000, Eur Ing Chris Green wrote: > Well there I was thinking that the force option would be useful for > me, but there's one issue for me. > > I have start_directory set to the same value as target_directory > since the web server I am using is on the machine where I'm running > rest2web. If you do this r2w.py tries to process the template.txt > file, which doesn't work very well. > > Is there any way to either move the template.txt file out of the > start_directory or to give it a different name? > Once again RTFM, the -t option of r2w.py allows one to specify where the template.txt file is. However I do think that changing its name to something other than a .txt file might be a good idea. -- Chris Green |
From: Eur I. C. G. <cl...@is...> - 2007-03-08 21:39:09
|
Well there I was thinking that the force option would be useful for me, but there's one issue for me. I have start_directory set to the same value as target_directory since the web server I am using is on the machine where I'm running rest2web. If you do this r2w.py tries to process the template.txt file, which doesn't work very well. Is there any way to either move the template.txt file out of the start_directory or to give it a different name? -- Chris Green |
From: Eur I. C. G. <cl...@is...> - 2007-03-08 15:52:09
|
On Thu, Mar 08, 2007 at 03:48:16PM +0000, Eur Ing Chris Green wrote: > I'm (trying to) write a macro, or maybe some python to go in a > template, which needs access to the 'current' directory, i.e. the > directory where r2w.py is currently creating HTML files. > > Is there any available variable for macros/templates which has this > information? > > By the way is there any reason for choosing a macro rather than > <#....#> code in a template? Is it just that it's easier to use it in > more than one place with a macro? > Oops, I should RTFM, sorry. The variable I need is 'pagepath'. Is this available in macros or only in python executed in a template? -- Chris Green |
From: Eur I. C. G. <cl...@is...> - 2007-03-08 15:48:22
|
I'm (trying to) write a macro, or maybe some python to go in a template, which needs access to the 'current' directory, i.e. the directory where r2w.py is currently creating HTML files. Is there any available variable for macros/templates which has this information? By the way is there any reason for choosing a macro rather than <#....#> code in a template? Is it just that it's easier to use it in more than one place with a macro? -- Chris Green |
From: Eur I. C. G. <cl...@is...> - 2007-03-08 12:18:37
|
On Thu, Mar 08, 2007 at 01:14:55PM +0100, martin f krafft wrote: > also sprach Eur Ing Chris Green <cl...@is...> [2007.03.08.1309 +0100]: > > Apart from the obvious putting r2w.py in my PATH that is. > > Are you running Debian? If so, install the package. > No, not Debian, Slackware. -- Chris Green |
From: Eur I. C. G. <cl...@is...> - 2007-03-08 12:09:21
|
Apart from the obvious putting r2w.py in my PATH that is. If I want to maintain more than one set of web pages (call it a 'project') using rest2web what do I need to do to make it available from anywhere? Obviously each set of web pages will have a home directory of some sort which will have the r2w.ini file in it, this can then tell r2w.py where to find all the project specific stuff. So what else from the unpacked rest2web-0.5.1.tar.gz do I need to put somewhere so that it can be found? I have put r2w.py in a directory on my PATH. I have put the rest2web sub-directory in my Python site-packages What about macros.py and macros.pyc, do I need copy these anywhere? -- Chris Green |
From: Eur I. C. G. <cl...@is...> - 2007-03-08 11:07:26
|
On Thu, Mar 08, 2007 at 11:55:44AM +0100, martin f krafft wrote: > also sprach Michael Foord <ar...@vo...> [2007.03.07.2228 +0100]: > > Few users have made rest2web templates public - although I believe I > > have one sitting around somewhere (donated by a user) that when I have > > time will become part of the rest2web distribution. > > My templates are all public: > > http://svn.madduck.net/pub/debian/web/people.debian.org--madduck/ > http://svn.madduck.net/pub/web/martin-krafft.net/ (in preparation) > http://svn.madduck.net/pub/cv/ > http://svn.madduck.net/phd/web/ > OK, thank you, there are a few more ideas there to play with. -- Chris Green |
From: martin f k. <ma...@ma...> - 2007-03-08 10:56:07
|
also sprach Michael Foord <ar...@vo...> [2007.03.07.2228 +0100= ]: > Few users have made rest2web templates public - although I believe I=20 > have one sitting around somewhere (donated by a user) that when I have=20 > time will become part of the rest2web distribution. My templates are all public: http://svn.madduck.net/pub/debian/web/people.debian.org--madduck/ http://svn.madduck.net/pub/web/martin-krafft.net/ (in preparation) http://svn.madduck.net/pub/cv/ http://svn.madduck.net/phd/web/ Cheers, --=20 martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck =20 spamtraps: mad...@ma... =20 "a woman is like your shadow; follow her, she flies; fly from her, she follows." -- s=E9bastien-roch-nicolas chamfort |
From: Eur I. C. G. <cl...@is...> - 2007-03-07 21:53:42
|
On Wed, Mar 07, 2007 at 09:50:07PM +0000, Michael Foord wrote: > Eur Ing Chris Green wrote: > > On Wed, Mar 07, 2007 at 09:32:08PM +0000, Michael Foord wrote: > > > > Actually, for my requirements I think it could make sense to have the > > start_directory and target_directory set to the same directory. The > > idea is to have documentation and notes that I can read as text files > > (i.e. the reST format files) and as HTML web pages using the apache > > server running on the computer. The HTML doesn't have to be exported > > anywhere. Will this cause any issues? > > > > > Shouldn't do. > OK, good, thanks. -- Chris Green |
From: Michael F. <fuz...@vo...> - 2007-03-07 21:49:54
|
Eur Ing Chris Green wrote: > On Wed, Mar 07, 2007 at 09:32:08PM +0000, Michael Foord wrote: > >> Eur Ing Chris Green wrote: >> >>> I'm considering using rest2web for maintaining my personal web of >>> documents and other stuff that I keep on my home linux box. >>> >>> I have been writing some notes in reST already and have been using >>> rst2html.py to convert them to HTML. Since rest2web can automate this >>> process and add menus etc. it seems like it may help me. >>> >>> However I'm not quite sure how to manage other information and >>> documents like PDF files, I really want to keep this in the same >>> directory hierarchy as the information. E.g. I have a workshop manual >>> for my motorbike in PDF format and would like to keep this in the >>> motorbike directory along with a couple of HTML files created by >>> res2web. >>> >>> I don't see any clean/easy way to do this, it might be possible by >>> adding lines to the individual restindex sections if the index.txt >>> files but this seems a bit clumsy. What I really want is for rest2web >>> only to build the files it needs to and to leave the existing >>> directory hierarchy of the output in place. Or am I confused and it >>> does that already? >>> >>> E.g. if I have a directory somewhere down the output hierarchy called >>> motorbikes and it has a file zzr1200.pdf in it will rest2web delete >>> that file when I run r2w.py or will it only delete/overwrite the HTML >>> files it creates from .txt files? >>> >>> >>> >> rest2web *never* deletes files from the output directory (except when it >> has to overwrite them with a newer version). >> >> > OK, thanks, excellent! > > > >> Additionally you can use the 'file' keyword in the restindex to copy >> files from the source directory into the output directory. >> >> > Ah, I had seen that but hadn't really understood what it did. > > > Actually, for my requirements I think it could make sense to have the > start_directory and target_directory set to the same directory. The > idea is to have documentation and notes that I can read as text files > (i.e. the reST format files) and as HTML web pages using the apache > server running on the computer. The HTML doesn't have to be exported > anywhere. Will this cause any issues? > > Shouldn't do. Fuzzyman |