From 6f5bf2c05c5aaa9eb2f7df56645d179c038aa11a Mon Sep 17 00:00:00 2001 From: Chris Warrick Date: Mon, 20 Jul 2015 15:12:38 +0200 Subject: [PATCH] tidy up html input Signed-off-by: Chris Warrick --- stories/features/index.html | 120 +++++++++--------------------------- stories/index.html | 46 ++++++-------- tidy-config-for-input.ini | 6 ++ 3 files changed, 53 insertions(+), 119 deletions(-) create mode 100644 tidy-config-for-input.ini diff --git a/stories/features/index.html b/stories/features/index.html index b14a015..da66d2d 100644 --- a/stories/features/index.html +++ b/stories/features/index.html @@ -9,7 +9,7 @@ .. type: text -->
@@ -17,118 +17,76 @@
+ +

Static sites

-

- Static websites are safer, use fewer resources, and avoid vendor and - platform lock-in. You can host a Nikola website on any web server, big or - small. It’s just a bunch of HTML files and assets. -

+

Static websites are safer, use fewer resources, and avoid vendor and platform lock-in. You can host a Nikola website on any web server, big or small. It’s just a bunch of HTML files and assets.

Why static? »

-
+ +

Incremental builds

- -

- Nikola is fast. It uses doit, which provides incremental - rebuilds — in other words, we rebuild only the pages that need rebuilding, - saving CPU time, wall clock time and upload bandwidth. -

- +

Nikola is fast. It uses doit, which provides incremental rebuilds — in other words, we rebuild only the pages that need rebuilding, saving CPU time, wall clock time and upload bandwidth.

Explore in depth »

-
+ +

Multiple input formats

-

- Nikola will take input in many formats. Out of the box, we support - reStructuredText, Markdown, IPython (Jupyter) Notebooks and HTML, and have - plugins for many other formats. -

+

Nikola will take input in many formats. Out of the box, we support reStructuredText, Markdown, IPython (Jupyter) Notebooks and HTML, and have plugins for many other formats.

Check list of input formats and setup documentation »

-
+ +

Built-in components

-

- Nikola comes with everything you need to build a modern website: blogs (with - comments, tags, categories, archives, RSS/Atom feeds), multilingual support, - easy image galleries, and code listings. -

+

Nikola comes with everything you need to build a modern website: blogs (with comments, tags, categories, archives, RSS/Atom feeds), multilingual support, easy image galleries, and code listings.

Explore in depth »

-
+ +

Extensible

-

- Nikola is extensible. You can write a plugin to add any feature you want in a - few lines of Python, or write your own theme in Mako or Jinja2. Or find - something in the Plugin and - Theme Indexes. -

+

Nikola is extensible. You can write a plugin to add any feature you want in a few lines of Python, or write your own theme in Mako or Jinja2. Or find something in the Plugin and Theme Indexes.

Read extending documentation »

-
+ +

Friendly CLI

-

- Nikola has a friendly user interface that gets you up and running quickly and - simplifies your work. -

+

Nikola has a friendly user interface that gets you up and running quickly and simplifies your work.

  • To build your site, just run nikola build.
  • -
  • You can use automatic rebuilds with nikola auto, or a simple server with nikola serve.
  • +
  • You can use automatic rebuilds with nikola auto, or a simple server with nikola serve. +
  • Deploy with nikola deploy or nikola github_deploy.
  • See some status information for your site with nikola status.
  • Check for broken links and missing/orphan files with nikola check.
  • @@ -141,50 +99,28 @@

    Friendly CLI

-
+ +

Automatic rebuilds

-

- If you are working on your site, you don’t need to type nikola build and reload every time you make a change. - Instead, just run nikola auto. It will detect changes and automatically rebuild your site and refresh your browser (using livereload). -

+

If you are working on your site, you don’t need to type nikola build and reload every time you make a change. Instead, just run nikola auto. It will detect changes and automatically rebuild your site and refresh your browser (using livereload).

Explore in depth »

-
+ +

Coil CMS — a CMS for Nikola

- -

- If you want to use Nikola for a website that has content authored by people who - do not like command-line interfaces or who would prefer to use a WYSIWYG - editor, we have a solution for you. -

-

- Coil CMS is a basic CMS (with user management and a WYSIWYG HTML editor), which - uses Nikola to generate the pages, combining the best of both worlds: you (or - your editors) can easily create content, while the site is based on resilient - static pages. Users don’t even have to know what Nikola, Python or static websites - are. They just write their content. The only difference is that they (or - someone with the necessary permissions) need to click a *Rebuild* button to - make their changes show up on the website. -

+

If you want to use Nikola for a website that has content authored by people who do not like command-line interfaces or who would prefer to use a WYSIWYG editor, we have a solution for you.

+

Coil CMS is a basic CMS (with user management and a WYSIWYG HTML editor), which uses Nikola to generate the pages, combining the best of both worlds: you (or your editors) can easily create content, while the site is based on resilient static pages. Users don’t even have to know what Nikola, Python or static websites are. They just write their content. The only difference is that they (or someone with the necessary permissions) need to click a *Rebuild* button to make their changes show up on the website.

Read Coil CMS documentation »

diff --git a/stories/index.html b/stories/index.html index 0264295..32c6351 100644 --- a/stories/index.html +++ b/stories/index.html @@ -14,59 +14,51 @@

Nikola — Static Site Generator

In goes content, out comes a website, ready to deploy.

-

Get started with Nikola » Learn about Nikola features »

+

Get started with Nikola » Learn about Nikola features »

Nikola is written in Python (2.7+/3.3+). Free open-source software under the MIT license.

-
-
- +
+ +

Host anywhere.

Static websites are safer, use fewer resources, and avoid vendor and platform lock-in. You can host a Nikola website on any web server, big or small. It’s just a bunch of HTML files and assets.

- +
+ +

Fast, incremental builds.

Nikola is fast. We use doit, which provides incremental rebuilds — in other words, we rebuild only the pages that need rebuilding, saving CPU time, wall clock time and upload bandwidth.

- +
+ +

Any input format you like.

Nikola will take input in many formats. Out of the box, we support reStructuredText, Markdown, IPython (Jupyter) Notebooks and HTML, and have plugins for many other formats.

- +
+ +

Batteries included.

Nikola comes with everything you need to build a modern website: blogs (with comments, tags, categories, archives, RSS/Atom feeds), multilingual support, easy image galleries, and code listings.

- +
+ +

Easily extensible.

Nikola is extensible. You can write a plugin to add any feature you want in a few lines of Python, or write your own theme in Mako or Jinja2. Or find something in the Plugin and Theme Indexes.

- +
+ +

User-friendly CLI.

Nikola has a friendly user interface that gets you up and running quickly and simplifies your work. You do not need to memorize headers just to create a post — we’ll write them for you.

diff --git a/tidy-config-for-input.ini b/tidy-config-for-input.ini new file mode 100644 index 0000000..ae3fa28 --- /dev/null +++ b/tidy-config-for-input.ini @@ -0,0 +1,6 @@ +indent: auto +indent-spaces: 4 +wrap: 0 +drop-empty-elements: no +show-body-only: yes +fix-bad-comments: no