diff --git a/doc/workbook/readme.md b/doc/workbook/readme.md index 5274bf87..7b3183be 100644 --- a/doc/workbook/readme.md +++ b/doc/workbook/readme.md @@ -1,4 +1,56 @@ -The [Workbook](./workbook.md) lets you discover the EiffelWeb framework. +# EWF Workbook -[Enter the documentation](./workbook.md) - +##### Table of Contents +* [EWF Core](#core) +* [EWF Introduction](#introduction) +* [Handling Requests: Form/Query Parameter](#form_query_parameters) +* [Handling Requests: Header Fields](#header_fields) +* [Generating Responses](#generating_responses) +* [Handling Cookies](#handling_cookies) +* [Web User Interface](#wui) +* [EWF Deployment](#deployment) + + + +# EWF Core +Before reading (or walking throught) the workbook, to get a quick overview of EWF, it is recommended to read the following articles: + +* [Getting Started with EWF](http://eiffelwebframework.github.io/EWF/getting-started/) +* [EWF Documentation](http://eiffelwebframework.github.io/EWF/workbook/workbook) +* [EWF Application Lifecyle](https://github.com/EiffelWebFramework/ewf_examples/wiki/Application-Lifecycle) + + + + +## Introduction +[Basic Concepts](./basics/basics.md). + + + +## Handling Requests: Form/Query Parameter +[Handling Requests: Form/Query Parameter](./handling_request/form.md). + + + +## Handling Requests: Header Fields +[Handling Requests: Header Fields](./handling_request/headers.md). + + + +## Generating Response +[Generating Responses](./generating_response/generating_response.md) + + + +## Web User Interface +[Web User Interface](./wui/readme.md) + + + +## Handling Cookies +[Handling Cookies](./handling_cookies/handling_cookies.md) + + + +## EWF Deployment +[EWF Deployment](./deployment/readme.md) diff --git a/doc/workbook/workbook.md b/doc/workbook/workbook.md index 7b3183be..558f2fde 100644 --- a/doc/workbook/workbook.md +++ b/doc/workbook/workbook.md @@ -1,56 +1,2 @@ -# EWF Workbook +See [README](./readme.md) -##### Table of Contents -* [EWF Core](#core) -* [EWF Introduction](#introduction) -* [Handling Requests: Form/Query Parameter](#form_query_parameters) -* [Handling Requests: Header Fields](#header_fields) -* [Generating Responses](#generating_responses) -* [Handling Cookies](#handling_cookies) -* [Web User Interface](#wui) -* [EWF Deployment](#deployment) - - - -# EWF Core -Before reading (or walking throught) the workbook, to get a quick overview of EWF, it is recommended to read the following articles: - -* [Getting Started with EWF](http://eiffelwebframework.github.io/EWF/getting-started/) -* [EWF Documentation](http://eiffelwebframework.github.io/EWF/workbook/workbook) -* [EWF Application Lifecyle](https://github.com/EiffelWebFramework/ewf_examples/wiki/Application-Lifecycle) - - - - -## Introduction -[Basic Concepts](./basics/basics.md). - - - -## Handling Requests: Form/Query Parameter -[Handling Requests: Form/Query Parameter](./handling_request/form.md). - - - -## Handling Requests: Header Fields -[Handling Requests: Header Fields](./handling_request/headers.md). - - - -## Generating Response -[Generating Responses](./generating_response/generating_response.md) - - - -## Web User Interface -[Web User Interface](./wui/readme.md) - - - -## Handling Cookies -[Handling Cookies](./handling_cookies/handling_cookies.md) - - - -## EWF Deployment -[EWF Deployment](./deployment/readme.md) diff --git a/docs/.scripts/update.sh b/docs/.scripts/update.sh new file mode 100755 index 00000000..8842daed --- /dev/null +++ b/docs/.scripts/update.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +#./update_wiki.py +\rm -rf ./workbook +cp -rf ../doc/workbook . +.scripts/update_workbook.py diff --git a/docs/.scripts/update_workbook.py b/docs/.scripts/update_workbook.py new file mode 100755 index 00000000..f6e9b9c4 --- /dev/null +++ b/docs/.scripts/update_workbook.py @@ -0,0 +1,65 @@ +#!/usr/bin/env python +# -*- encoding: utf-8 -*- + +"Update the workbook pages to work with Jekyll" + +import os + +HEADER = """--- +layout: default +title: %s +base_url: %s +--- +""" + +def process_dir (dn,base,rel): + s = '
+ You can stay up to date on releases, new developments, and project news by following + @EiffelWeb on Twitter +
+ Follow @EiffelWeb ++ Development takes place on Github. + Come here for issue tracking, code reviews, and patches. +
++ The Google Group is the preferred channel for EWF discussions so future users can learn from the archive. Support requests, suggestions, project announcements, and all other commentaries related to EWF are welcome here. +
+This page will help you to get started with EWF. + We will first see how to install EWF and then how to compile and run the venerable Hello World example.
+Latest EiffelStudio release comes with latest EWF version: there is nothing to do in this case.
+If you are using an older version of EiffelStudio, we recommand to download the latest EWF version ({{ site.version }} as of this writing) instead of using the one that comes with EiffelStudio.
+Follow these steps to download and install EWF on your computer:
+The source code is available on Github. + You can get it by running the command:
+git clone git://github.com/EiffelWebFramework/EWF.git
+ The hello world example is located in the directory $ISE_EIFFEL/contrib/examples/web/ewf/simple. + Just double click on the simple.ecf file and select the simple target or if you prefer the command line, run the command:
+estudio -config simple.ecf -target simple
+ Once the project is compiled, you can launch the application and point your browser to http://localhost:9090. + You should now see a simple page with Hello World.
+