marianoguerra / rst2html5

transform restructuredtext documents to html5 + twitter's bootstrap css, deck.js or reveal.js
http://marianoguerra.github.com/rst2html5
MIT License
177 stars 51 forks source link

RST elements header and footer #31

Closed russkel closed 5 years ago

russkel commented 11 years ago

The RST elements header and footer are for placing markup at the, believe it or not, header and footer of the site. There is no real specifics on the implementation on this. I guess it could just be a div.header after the docinfo table and div.footer at the end of the page.

Pull request #30 handles the HTML5 header element. Seeing as there is no way to define a section footer in RST, the HTML5 footer element isn't required.

marianoguerra commented 11 years ago

maybe two directives?

.. header: something here

.. footer: same

or maybe I didn't got the message :P

or you mean that header/footer on html5 and rst mean different things?

russkel commented 11 years ago

or you mean that header/footer on html5 and rst mean different things?

Yes, that is what I mean. If you read the page in the HTML5 spec..... which I just did.... and now I am confused :confused:.

http://developers.whatwg.org/sections.html#the-header-element and http://www.w3.org/TR/html5/sections.html#the-header-element

Their examples show usage of both.

<body>
<header>My Site Woo</header>
.... content ....
<footer>Copyright blah blah</footer>
</body>

and the other style (which #30 implemented):

<body>
<article>
<header>Article Title</header>
.... content ....
<footer>What ever would go in an article footer</footer>
</article>
</body>

Both ways might actually be correct. I'll need to ask around.

russkel commented 11 years ago

More information here: http://diveintohtml5.info/semantics.html#footer-element

G1305 commented 6 years ago

image I want full HEIGHT/width responsive for mobile. HOW TO FIX IT?