From ae8517597a3a4ebe7fd352b5f96325bf5a9e9c0c Mon Sep 17 00:00:00 2001 From: Ronald Landheer-Cieslak Date: Sun, 28 Oct 2007 13:12:16 -0400 Subject: [PATCH] Fixed layouting of the future project site --- doc/index.css | 43 ++++++++++++++- doc/index.html | 165 +++++++++++++++++++++++++++++++++------------------------ doc/main.html | 60 +++++++++++++++++++++ 3 files changed, 199 insertions(+), 69 deletions(-) rewrite doc/index.html (80%) create mode 100644 doc/main.html diff --git a/doc/index.css b/doc/index.css index a040317..2837116 100644 --- a/doc/index.css +++ b/doc/index.css @@ -2,9 +2,15 @@ font-family: Arial, Helvetica, sans-serif; } +body { + height: 100%; +} + div, td, -p { +p, +ul, +li { font-size:12px; line-height:18px; color:#333333; @@ -56,6 +62,7 @@ li { position: relative; float: left; width: 660px; + height: 100%; } h1 { @@ -97,3 +104,37 @@ li { list-style-position: outside; } +.buttons { + background: #f0f0f0; + border: dotted black 1px; + margin: 10px auto; +} + +.button { + text-align: center; + font-size: 14px; + margin: 0 auto; + border: dotted black 1px; +} + +.button:hover { + background: #e0e0e0; +} + +a.button, +a.button:link, +a.button:active, +a.button:visited { + text-decoration:none; + font-weight: bold; + color:#000000; + border: 0; + width: 100%; +} + +a.button:hover { + text-decoration:underline; + width: 100%; + background: #e0e0e0; +} + diff --git a/doc/index.html b/doc/index.html dissimilarity index 80% index d81015b..d2031df 100644 --- a/doc/index.html +++ b/doc/index.html @@ -1,68 +1,97 @@ - - - - - Yara: Yet Anoter RSS Aggregator - - - - - - - - - -
-
- -
-
-

Yara: Yet Another RSS Aggregator

-

Yara is a fast, embeddable RSS aggregator and parser. It is written in C++ and exposes a very simple API in C.
- For the time being, the C API consists of the following functions:
-

- /* returns 0 on success */
- int Yara_render(
-     const char * target_filename /* name of the file to render into */,
-     const char * template_filename /* compiled template to use */,
-     const char * rss_xml /* RSS stream to parse and render */);
-
- /* returns 0 on success */
- int Yara_compileTemplate(
-     const char * target_filename /* name of the file to save the compiled template to */,
-     const char * header_filename /* name of the file with the header template */,
-     const char * footer_filename /* name of the file with the footer template */,
-     const char * item_filename /* name of the file with the item template */);
-
- /* returns a pointer to the most recent error message */
- const char * Yara_getLastError();
-
- /* pops the most recent error message and returns nothing */
- void Yara_popLastError(); - -
-

-

Yara is designed to be as fast as possible, yet be usable and maintainable. Some of the choices for the parser and the renderer were made uniquely for speed: -

    -
  • Yara uses the Expat XML parser, which is the fastest XML parser I know.
    - Though Expat is neither a SAX nor a DOM parser, it suits its purpose exactly and is the de-facto standard for fast XML parsing.
  • -
  • Yara uses templates for rendering, in which it replaces tags with the contents of what it found in the RSS stream.
    - To render an RSS stream, it searches in the template for tags that look like this: $$__tagname__$$. It then - uses a perfect hash, generated by GNU gperf, to look up the function to use to insert whatever the tag corresponds to, and inserts - whatever needs inserting.
    - This means that this RSS renderer doesn't necessarily render RSS into HTML: you could, if you wanted, use it to generate C code that - statically contains the RSS feed.
  • -
-

-

Parsing is done in two steps: first, the RSS stream is parsed, then the template is used to generate a header, each item found in the stream, - and a footer. The template therefore consists of a template text for all three.

-

Yara will not download the stream for you: most RAD tools, frameworks, etc. come with easy-to-use methods to download files from the internet, - so I didn't see an immediate need to implement this.

-

Yara comes with an example application, which is a stand-alone RSS viewer written in Turbo C++. The viewer loads the parser/renderer DLL - dynamically, which is intended to demonstrate not only that the DLL can be compiled with a different C++ compiler, but that it can be used as - a plug-in for your applications.

-
-
- - - + + + + + Yara: Yet Anoter RSS Aggregator + + + + + + + + + + +
+
+ + +
+
+ +
+
+ + + diff --git a/doc/main.html b/doc/main.html new file mode 100644 index 0000000..0717a49 --- /dev/null +++ b/doc/main.html @@ -0,0 +1,60 @@ + + + + + Yara: Yet Anoter RSS Aggregator + + + + + + + + + +

Yara: Yet Another RSS Aggregator

+

Yara is a fast, embeddable RSS aggregator and parser. It is written in C++ and exposes a very simple API in C.
+ For the time being, the C API consists of the following functions:
+

+ /* returns 0 on success */
+ int Yara_render(
+     const char * target_filename /* name of the file to render into */,
+     const char * template_filename /* compiled template to use */,
+     const char * rss_xml /* RSS stream to parse and render */);
+
+ /* returns 0 on success */
+ int Yara_compileTemplate(
+     const char * target_filename /* name of the file to save the compiled template to */,
+     const char * header_filename /* name of the file with the header template */,
+     const char * footer_filename /* name of the file with the footer template */,
+     const char * item_filename /* name of the file with the item template */);
+
+ /* returns a pointer to the most recent error message */
+ const char * Yara_getLastError();
+
+ /* pops the most recent error message and returns nothing */
+ void Yara_popLastError(); +
+

+

Yara is designed to be as fast as possible, yet be usable and maintainable. Some of the choices for the parser and the renderer were made uniquely for speed: +

+

+

Parsing is done in two steps: first, the RSS stream is parsed, then the template is used to generate a header, each item found in the stream, + and a footer. The template therefore consists of a template text for all three.

+

Yara will not download the stream for you: most RAD tools, frameworks, etc. come with easy-to-use methods to download files from the internet, + so I didn't see an immediate need to implement this.

+

Yara comes with an example application, which is a stand-alone RSS viewer written in Turbo C++. The viewer loads the parser/renderer DLL + dynamically, which is intended to demonstrate not only that the DLL can be compiled with a different C++ compiler, but that it can be used as + a plug-in for your applications.

+ + + -- 2.11.4.GIT