treecutter.git
13 years agoAdding mapping Sitemap -> Link -> Page to deal with Content-Language
Fredrik Unger [Wed, 6 Apr 2011 20:04:38 +0000 (22:04 +0200)]
Adding mapping Sitemap -> Link -> Page to deal with Content-Language
and other representation of a page at the same link.

Tree does not have an iterator, hence the link set will not currently work.
The Page object will do conversion, and templating, preparing menues
as all that work is language dependant. Link matches sitemap.txt entries
and matches the Directory object.

13 years agoInitial refactoring to use objects. Simple trie implementation to better
Fredrik Unger [Sun, 3 Apr 2011 19:26:57 +0000 (21:26 +0200)]
Initial refactoring to use objects. Simple trie implementation to better
support the sitemap structure. Initial tests of the objects but
still keeping the initial working code.

13 years agoProperly indenting the code, using /usr/share/doc/python2.6/examples/Tools/scripts...
Fredrik Unger [Mon, 28 Mar 2011 07:55:24 +0000 (09:55 +0200)]
Properly indenting the code, using /usr/share/doc/python2.6/examples/Tools/scripts/reindent.py

13 years agoAdding initial sitemap, differentiate class directive in tree building.
Fredrik Unger [Mon, 28 Mar 2011 07:36:02 +0000 (09:36 +0200)]
Adding initial sitemap, differentiate class directive in tree building.

13 years agoFixing regexp to treat /xx special.
Fredrik Unger [Mon, 28 Mar 2011 07:27:16 +0000 (09:27 +0200)]
Fixing regexp to treat /xx special.

13 years agorsync also removes target files that should not be there.
Fredrik Unger [Mon, 28 Mar 2011 07:26:19 +0000 (09:26 +0200)]
rsync also removes target files that should not be there.

13 years agoAdding functionality to publish linked documents. link xlink:href and imagedata fileref.
Fredrik Unger [Mon, 21 Mar 2011 23:04:41 +0000 (00:04 +0100)]
Adding functionality to publish linked documents. link xlink:href and imagedata fileref.

13 years agoChanges due to that rsync does not create target with mkdir -p
Fredrik Unger [Thu, 17 Mar 2011 20:01:55 +0000 (21:01 +0100)]
Changes due to that rsync does not create target with mkdir -p

Added a staged publish function in /tmp to be able to provide
a simple rsync target functionality. This to enable output exported
over ssh at a later stage.

13 years agoImproving status report, changing to rsync by adding function publish for output.
Fredrik Unger [Tue, 8 Mar 2011 13:56:28 +0000 (14:56 +0100)]
Improving status report, changing to rsync by adding function publish for output.

13 years agoChanging css references to /css, and js to /js as relative linking does not work...
Fredrik Unger [Tue, 8 Mar 2011 13:55:25 +0000 (14:55 +0100)]
Changing css references to /css, and js to /js as relative linking does not work with deeper levels.

13 years agoChanging the references to images to /images as relative linking does not work
Fredrik Unger [Tue, 8 Mar 2011 13:54:02 +0000 (14:54 +0100)]
Changing the references to images to /images as relative linking does not work
with deeper levels.

13 years agoWhitespace and indetation changes.
Fredrik Unger [Mon, 7 Mar 2011 20:17:39 +0000 (21:17 +0100)]
Whitespace and indetation changes.

13 years agoAdding argparse to arguments --style and --output.
Fredrik Unger [Mon, 7 Mar 2011 20:16:26 +0000 (21:16 +0100)]
Adding argparse to arguments --style and --output.

13 years agoRemove $site, in favour for site. site should not be a template variable.
Fredrik Unger [Fri, 4 Mar 2011 21:11:01 +0000 (22:11 +0100)]
Remove $site, in favour for site. site should not be a template variable.

13 years agoInitial docbook.xsl a copy of style/freggies/docbook.xsl
Fredrik Unger [Fri, 4 Mar 2011 20:48:47 +0000 (21:48 +0100)]
Initial docbook.xsl a copy of style/freggies/docbook.xsl

13 years agoAdd docbook extension stylsheet to controll the apearance of the docbook
Fredrik Unger [Fri, 4 Mar 2011 20:46:57 +0000 (21:46 +0100)]
Add docbook extension stylsheet to controll the apearance of the docbook
document.

Currently it just takes and forward the root, dropping the <html>
declarations leaving only the original article.

13 years agoRenamed index.html to index.en.html.tmpl and adding templatestrings.
Fredrik Unger [Fri, 4 Mar 2011 20:41:55 +0000 (21:41 +0100)]
Renamed index.html to index.en.html.tmpl and adding templatestrings.

13 years agoRemoving the x bit from license.txt
Fredrik Unger [Thu, 3 Mar 2011 20:37:55 +0000 (21:37 +0100)]
Removing the x bit from license.txt

13 years agoMoving css to a separate directory.
Fredrik Unger [Thu, 3 Mar 2011 20:36:50 +0000 (21:36 +0100)]
Moving css to a separate directory.

13 years agoMoving stylesheets to a separate directory.
Fredrik Unger [Thu, 3 Mar 2011 20:26:36 +0000 (21:26 +0100)]
Moving stylesheets to a separate directory.

13 years agoRemoving example article text and example navigation.
Fredrik Unger [Wed, 2 Mar 2011 07:34:35 +0000 (08:34 +0100)]
Removing example article text and example navigation.

13 years agoCorrected indent and whitespace. Validates now with nxml html5.rnc rules.
Fredrik Unger [Wed, 2 Mar 2011 07:13:44 +0000 (08:13 +0100)]
Corrected indent and whitespace. Validates now with nxml html5.rnc rules.

13 years agoFixed invalid range check of index.
Fredrik Unger [Thu, 24 Feb 2011 10:37:29 +0000 (11:37 +0100)]
Fixed invalid range check of index.

13 years agoFixed the problem of index overflow when no lesser level exist at the end.
Fredrik Unger [Thu, 24 Feb 2011 10:23:05 +0000 (11:23 +0100)]
Fixed the problem of index overflow when no lesser level exist at the end.

13 years agoWhitespace fixes (emacs mode detected and fixed them)
Fredrik Unger [Thu, 24 Feb 2011 10:15:04 +0000 (11:15 +0100)]
Whitespace fixes (emacs mode detected and fixed them)

13 years agoAdapting tree-cutter.py to deal with language codes in the filenames.
Fredrik Unger [Thu, 24 Feb 2011 10:14:31 +0000 (11:14 +0100)]
Adapting tree-cutter.py to deal with language codes in the filenames.

13 years agoAdded template from http://www.freehtml5templates.com/bluenightsky-html5-and-css3...
Fredrik Unger [Tue, 15 Feb 2011 21:51:48 +0000 (22:51 +0100)]
Added template from freehtml5templates.com/bluenightsky-html5-and-css3-template/

13 years agoAdding template from http://www.freehtml5templates.com/adropabove-html5-css3-and...
Fredrik Unger [Tue, 15 Feb 2011 21:51:13 +0000 (22:51 +0100)]
Adding template from freehtml5templates.com/adropabove-html5-css3-and-jquery-template/

13 years agoAdding template from http://www.freehtml5templates.com/turquoiseswirls-html5-and...
Fredrik Unger [Tue, 15 Feb 2011 21:50:20 +0000 (22:50 +0100)]
Adding template from freehtml5templates.com/turquoiseswirls-html5-and-css3-template/

13 years agoAdded template from http://www.freehtml5templates.com/freggies-html5-and-css3-template/
Fredrik Unger [Tue, 15 Feb 2011 21:49:27 +0000 (22:49 +0100)]
Added template from freehtml5templates.com/freggies-html5-and-css3-template/

13 years agoTemporarilly fixed the directory problem. runs in doc, with style and htdocs ..
Fredrik Unger [Tue, 15 Feb 2011 17:14:06 +0000 (18:14 +0100)]
Temporarilly fixed the directory problem. runs in doc, with style and htdocs ..

Should be made configurable and a standard path should be decided..

13 years agoAdded xsltproc test, 10x faster. Need to check output.
Fredrik Unger [Tue, 15 Feb 2011 16:53:12 +0000 (17:53 +0100)]
Added xsltproc test, 10x faster. Need to check output.

13 years agoInitial version of the tree-cutter.py script
Fredrik Unger [Tue, 15 Feb 2011 16:48:38 +0000 (17:48 +0100)]
Initial version of the tree-cutter.py script

Working with a test structure of articles, using docbook and a
changed bluenightsky template. Language support missing.
Menu generation can be improved.