This patch, which adds the id attribute to the body tag is not for the
benefit of the author, but for the consumer/user.
As the author, I do use the *-a stylesheet=* to slightly tweak the xhtml11
or html5 theme before distributing my documentation. I find the AsciiDoc CSS
provides a solid foundation for formatting HTML documentation but I may have
a couple of tweaks. My basic goal is to be as "minimalist as possible" in
regards to modifications to AsciiDoc. It makes installs less prone to errors
and so much faster :-)
I first read about the '*CSS Signature*' technique in the book,
"Transcending CSS", page 41, by Andy Clarke. It allows the consumer/user to
make changes to the style of an *individual site* by adding rules to their
browser's user style sheet. Granted there are other benefits to this unique
identification. The book referred readers to the css-discuss thread
13291<http://archivist.incutio.com/viewlist/css-discuss/13291>.
A couple of examples from live sites:
- <body id="www-w3-org" class="w3c_public w3c_home"> <http://www.w3.org>
- <body id="www-meyerweb-com" class="hpg"> <http://meyerweb.com/>
This patch would allow the addition of the id attritbute on the body tag.
Thank you.
Peg Russell
PS: I used the new google groups web UI and it allows the attachment of
files, so I resent the patch.
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.
diff -u ../html5.conf html5.conf
--- ../html5.conf 2011-05-23 17:53:17.000000000 -0500
+++ html5.conf 2011-05-23 18:04:05.000000000 -0500
@@ -611,7 +611,7 @@
{docinfo1,docinfo2#}{include:{docdir}/docinfo.html}
{docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.html}
</head>
-<body class="{doctype}"{max-width? style="max-width:{max-width}"}>
+<body class="{doctype}"{max-width? style="max-width:{max-width}"}{body-id?
id="{body-id}"}>
# Article, book header.
ifndef::doctype-manpage[]
<div id="header">
diff -u ../xhtml11.conf xhtml11.conf
--- ../xhtml11.conf 2011-05-23 17:53:17.000000000 -0500
+++ xhtml11.conf 2011-05-23 18:03:34.000000000 -0500
@@ -606,7 +606,7 @@
{docinfo1,docinfo2#}{include:{docdir}/docinfo.html}
{docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.html}
</head>
-<body class="{doctype}"{max-width? style="max-width:{max-width}"}>
+<body class="{doctype}"{max-width? style="max-width:{max-width}"}{body-id?
id="{body-id}"}>
# Article, book header.
ifndef::doctype-manpage[]
<div id="header">
diff -u ../asciidoc.txt asciidoc.txt
--- ../asciidoc.txt 2011-05-23 17:53:17.000000000 -0500
+++ asciidoc.txt 2011-05-23 17:59:43.000000000 -0500
@@ -5686,6 +5686,10 @@
|data-uri |xhtml11, html5 |
Embed images using the <<X66,data: uri scheme>>.
+|body-id |html5, xhtml11 |
+Set a CSS signature for the document (sets the 'body' element CSS
+'id' property).
+
|disable-javascript |xhtml11, html5 |
If the `disable-javascript` attribute is defined the `asciidoc.js`
JavaScript is not embedded or linked to the output document. By