Introduction to rest2webA Gentle Introduction to the Site BuilderA rest2web Site
Subdirectories have their own index page - that index page will be link to from the 'directory' above. Your website structure is modelled on the directory structure. This is the hierarchy of sections and subsections. Every text file ('.txt' extension) in a directory will be scanned. If the file starts with a restindex, then it will be processed. If you want links to some prebuilt files on an index page, then you can put a relevant text file in the directory with the details (target name, link title, page description, etc) and set build: No. This allows you to use rest2web to just build part of a website - but still include in the index pages that it doesn't build. [1] For a good introduction, read the tutorial - Creating a Site. You can also peruse the Test Site included with this documentation. It illustrates most features of rest2web. Every page can also have a set of uservalues that will be inserted into the template. This is another way of putting dynamic values into a template. An obvious use of this system is for providing a website in several different languages. Downloading
Source Distributionrest2web is a pure Python programme. If you have Python installed you don't need to compile anything to use the source distribution. Download restweb (1.9mb) from rest2web-0.4.0alpha.zip Executable DistributionDownload the executable version of restweb (3.5mb) from rest2web-0.4.0alpha-EXE.zip Subversion RepositoryYou can browse (or download using SVN) the latest development version over at the SVN Repository. [2] The version in SVN is often more up to date than the latest release version - and I try not to break the version in SVN (but no guarantees). The full command is : svn co https://svn.rest2web.python-hosting.com/trunk/ [3] Sourceforgerest2web can also be downloaded from the Sourceforge rest2web Project Page. Installing
rest2web itself shouldn't actually need installing. You can place the 'rest2web' directory in your 'site-packages' folder if you want to. You should then be able to run 'rest2web.py' from anywhere. You can test rest2web by just double clicking on it. This should build the docs and example site as html, in the docs_html directory. It will generate a log of the process in 'log.txt'. If there are any problems then they will be recorded in the log. Please report any bugs to the rest2web Mailing List. rest2web uses the Pythonutils module. This has the modules for reading the config file and generating the log etc. rest2web comes with these modules included. If you install Pythonutils properly, then you can delete the pythonutils folder from your distribution. At the Heartrest2web and docutils are both projects written in a language called Python. In order to use the source version you will need Python installed. Hint If you don't want to (or can't) install Python, then you can use the pre-built executable version instead. This does limit slightly what you can do with macros and embedded code in the templates. (Basically you can only use the modules that come included or that you create yourself). The templates and macros are also done using Python code. If you've never used Python before, don't let this put you off. It's a very easy language to learn and you can learn the basics very quickly. The main Python website has distributions for most platforms available for download, as well as links to tutorials and resources for learning Python. Useful Links
Footnotes
Return to Top |
|||||||||||||
|