summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Fredrik Unger [Mon, 2 Apr 2012 19:41:54 +0000 (21:41 +0200)]
Fixing the def main function, properly calling it from treecutter.
There are several ways to do this in python and it can be that
it has to be redone. seems to work for now.
Fredrik Unger [Mon, 2 Apr 2012 18:34:17 +0000 (20:34 +0200)]
Adding initial bin/treecutter, and setup.py and package files.
Fredrik Unger [Mon, 2 Apr 2012 14:48:17 +0000 (16:48 +0200)]
Refactoring, using const, removing global variables, passing some new arguments.
This phase was to clean up the use of output and style in several places.
Now passed as arguments to the sections where it is needed.
Tempfile creation also localized.
Fredrik Unger [Mon, 2 Apr 2012 14:44:34 +0000 (16:44 +0200)]
Refactoring, cleaining up imports, setting filemode
Fredrik Unger [Mon, 2 Apr 2012 14:32:55 +0000 (16:32 +0200)]
Refactoring out every class into separate files. main,tools and const are not classes.
Fredrik Unger [Mon, 2 Apr 2012 14:01:30 +0000 (16:01 +0200)]
Preparing refactoring the single source into a python structure
Fredrik Unger [Thu, 8 Mar 2012 16:02:51 +0000 (17:02 +0100)]
Initial support for providing command line arguments to scripts via xpointer.
Accept-Language is also used to provide the script with the wanted language.
For calendar server in first line. For example the language of the country tag.
Roads and telephone numbers are pretty language independant, but country names not.
There might be other tags as well that has different value per language.
The xpointer is "abused" to provide a pointer into the run script.
Fredrik Unger [Thu, 8 Mar 2012 16:02:11 +0000 (17:02 +0100)]
Adding omit_xml_declaration=True to amara call, but does not yet work, considering to move to lxml or similar.
Fredrik Unger [Mon, 6 Feb 2012 21:22:16 +0000 (22:22 +0100)]
Added missing ) to ssh_cmd call
Fredrik Unger [Mon, 6 Feb 2012 21:17:29 +0000 (22:17 +0100)]
Adding target directory and readability with ssh_cmd
Making sure that the target directory exists and that it is
readable after rsync. ssh_cmd added to simplify the call, but is
currently limited to commands with two arguments plus directory.
Can be generalized. subroutine call used to not need to add extra
dependencies at this point.
Fredrik Unger [Mon, 6 Feb 2012 21:17:06 +0000 (22:17 +0100)]
Adding initial support for html forms.
Fredrik Unger [Mon, 6 Feb 2012 14:35:19 +0000 (15:35 +0100)]
Chaning & to xml representation.
Fredrik Unger [Mon, 6 Feb 2012 14:04:19 +0000 (15:04 +0100)]
Adding docbook.xsl for tree-cutter processing
Fredrik Unger [Mon, 6 Feb 2012 12:15:07 +0000 (13:15 +0100)]
Converting the template to work with tree-cutter, adjusting paths, adding template variables.
Fredrik Unger [Mon, 6 Feb 2012 11:12:40 +0000 (12:12 +0100)]
Moving css files to a subdirectory, renaming index.html to template file.
Fredrik Unger [Mon, 6 Feb 2012 11:09:35 +0000 (12:09 +0100)]
Change execute permission on index.html and style.html
Fredrik Unger [Mon, 6 Feb 2012 11:00:47 +0000 (12:00 +0100)]
Reindent css and convert from DOS format to unix format.
Fredrik Unger [Mon, 6 Feb 2012 10:56:57 +0000 (11:56 +0100)]
Reindent html and convert from DOS format to unix format.
Fredrik Unger [Mon, 6 Feb 2012 08:25:06 +0000 (09:25 +0100)]
Added template from freehtml5templates.com/awesomesauce-html5-and-css3-template/
Fredrik Unger [Tue, 3 May 2011 20:39:38 +0000 (22:39 +0200)]
Removed the initial version of tree-cutter.py after refactoring to use objects.
Added total timings.
The removed part has not been in use for quite some time and this was the final cleanup.
Fredrik Unger [Tue, 3 May 2011 20:22:11 +0000 (22:22 +0200)]
Using translated cheetah templates, allowing - in filenames.
Fredrik Unger [Tue, 3 May 2011 20:21:20 +0000 (22:21 +0200)]
Adding shutil for the copying.
Fredrik Unger [Tue, 3 May 2011 20:20:33 +0000 (22:20 +0200)]
Fixing sitemap generation, language menus and resource copying.
Fredrik Unger [Thu, 14 Apr 2011 08:04:08 +0000 (10:04 +0200)]
Adding a css mark for the top menu.
Fredrik Unger [Sun, 10 Apr 2011 19:55:25 +0000 (21:55 +0200)]
Fixing script execution path for current directory, fixing missing page printout.
Fredrik Unger [Sun, 10 Apr 2011 19:49:58 +0000 (21:49 +0200)]
Adding initial language menu support. Adding method lang_menu. Changing templates.
Link needs to be properly intergrated to the html href, translation
started earlier in sitemap and saved per language.
'en' special case as it is the original language of iso_639_3.xml
Updating templates with a Language menu item instead of a Level name
Levelname can be maintained in the template, translations are dynamic
as more pages in other languages gets created.
Problems will arrise when a language page is missing. This is first tests.. :)
Fredrik Unger [Sun, 10 Apr 2011 18:22:37 +0000 (20:22 +0200)]
Fixing missed namechange of variable.
Fredrik Unger [Sun, 10 Apr 2011 14:33:19 +0000 (16:33 +0200)]
Added total timing to compare old for loop to Sitemap process method.
Fredrik Unger [Sun, 10 Apr 2011 14:32:18 +0000 (16:32 +0200)]
Adding method process and publish to mimic the old scripts stages to publish.
Timing added to make sure that the Sitemap class is not slower.
Fredrik Unger [Sun, 10 Apr 2011 14:30:42 +0000 (16:30 +0200)]
Adding method to write a sitemap.txt and writing it when something changed.
missing & removed sets controll if we need a new sitemap.txt
Fredrik Unger [Sun, 10 Apr 2011 14:29:43 +0000 (16:29 +0200)]
Adding gen_menu method also in Sitemap.
Fredrik Unger [Sun, 10 Apr 2011 14:24:37 +0000 (16:24 +0200)]
Implementing generation of a menu, currently only the full menu with and without Page marker.
Fredrik Unger [Sun, 10 Apr 2011 14:22:52 +0000 (16:22 +0200)]
Fixing the inorder iterator. Did not recurse deep enough before.
Fredrik Unger [Sun, 10 Apr 2011 14:21:44 +0000 (16:21 +0200)]
Adding several stage methods in Link that propagates to the Page below.
Fredrik Unger [Sun, 10 Apr 2011 14:20:13 +0000 (16:20 +0200)]
Adding some getters and setters to Class Page.
Fredrik Unger [Sun, 10 Apr 2011 14:18:41 +0000 (16:18 +0200)]
Moving the creation of tmp directory to before the new Class structure.
To be imbedded later.
Fredrik Unger [Sun, 10 Apr 2011 13:44:53 +0000 (15:44 +0200)]
Adjusted references to doc to self._doc.
Fredrik Unger [Wed, 6 Apr 2011 20:52:02 +0000 (22:52 +0200)]
Commenting out printing of the digraph for sitemap.
Will need a cleanup once decided on how graphviz will be used.
Fredrik Unger [Wed, 6 Apr 2011 20:51:03 +0000 (22:51 +0200)]
Adding a simple iterator to the Trie class, now the set operations
on the links in the tree works again.
Fredrik Unger [Wed, 6 Apr 2011 20:20:07 +0000 (22:20 +0200)]
Added gen_menu stub in sitemap that will generate menues from a prepared sitemap.
Fredrik Unger [Wed, 6 Apr 2011 20:09:52 +0000 (22:09 +0200)]
Initial layout of what work the Page object has to do, based on non object version.
prepare method to collect all information from the bindery, and to splice in
results from scripts on the page.
render method to do the xsl stylesheet conversion of the docbook xml to html
template method to create html menues and merge the text into the template.
from order, the template for one page can not run before all pages have
run prepare. (sitemap does not have all titles before that)
Solution for language menu and how to deal with a missing page for
a language has to be implemented.
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.
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.
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
Fredrik Unger [Mon, 28 Mar 2011 07:36:02 +0000 (09:36 +0200)]
Adding initial sitemap, differentiate class directive in tree building.
Fredrik Unger [Mon, 28 Mar 2011 07:27:16 +0000 (09:27 +0200)]
Fixing regexp to treat /xx special.
Fredrik Unger [Mon, 28 Mar 2011 07:26:19 +0000 (09:26 +0200)]
rsync also removes target files that should not be there.
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.
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.
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.
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.
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.
Fredrik Unger [Mon, 7 Mar 2011 20:17:39 +0000 (21:17 +0100)]
Whitespace and indetation changes.
Fredrik Unger [Mon, 7 Mar 2011 20:16:26 +0000 (21:16 +0100)]
Adding argparse to arguments --style and --output.
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.
Fredrik Unger [Fri, 4 Mar 2011 20:48:47 +0000 (21:48 +0100)]
Initial docbook.xsl a copy of style/freggies/docbook.xsl
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.
Fredrik Unger [Fri, 4 Mar 2011 20:41:55 +0000 (21:41 +0100)]
Renamed index.html to index.en.html.tmpl and adding templatestrings.
Fredrik Unger [Thu, 3 Mar 2011 20:37:55 +0000 (21:37 +0100)]
Removing the x bit from license.txt
Fredrik Unger [Thu, 3 Mar 2011 20:36:50 +0000 (21:36 +0100)]
Moving css to a separate directory.
Fredrik Unger [Thu, 3 Mar 2011 20:26:36 +0000 (21:26 +0100)]
Moving stylesheets to a separate directory.
Fredrik Unger [Wed, 2 Mar 2011 07:34:35 +0000 (08:34 +0100)]
Removing example article text and example navigation.
Fredrik Unger [Wed, 2 Mar 2011 07:13:44 +0000 (08:13 +0100)]
Corrected indent and whitespace. Validates now with nxml html5.rnc rules.
Fredrik Unger [Thu, 24 Feb 2011 10:37:29 +0000 (11:37 +0100)]
Fixed invalid range check of index.
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.
Fredrik Unger [Thu, 24 Feb 2011 10:15:04 +0000 (11:15 +0100)]
Whitespace fixes (emacs mode detected and fixed them)
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.
Fredrik Unger [Tue, 15 Feb 2011 21:51:48 +0000 (22:51 +0100)]
Added template from freehtml5templates.com/bluenightsky-html5-and-css3-template/
Fredrik Unger [Tue, 15 Feb 2011 21:51:13 +0000 (22:51 +0100)]
Adding template from freehtml5templates.com/adropabove-html5-css3-and-jquery-template/
Fredrik Unger [Tue, 15 Feb 2011 21:50:20 +0000 (22:50 +0100)]
Adding template from freehtml5templates.com/turquoiseswirls-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/
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..
Fredrik Unger [Tue, 15 Feb 2011 16:53:12 +0000 (17:53 +0100)]
Added xsltproc test, 10x faster. Need to check output.
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.