From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Is there a variable/way to change
to something else, e.g.
for use with Bootstrap CSS? Date: Mon, 26 May 2014 10:10:52 +0800 Message-ID: <87zji5thlf.fsf@ericabrahamsen.net> References: <525DE996.2000408@gmail.com> <52F2A1D2.4030802@gmail.com> <53825499.9030306@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WokKC-000478-GU for emacs-orgmode@gnu.org; Sun, 25 May 2014 22:07:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WokK5-0007SL-0I for emacs-orgmode@gnu.org; Sun, 25 May 2014 22:07:40 -0400 Received: from plane.gmane.org ([80.91.229.3]:50170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WokK4-0007SE-QA for emacs-orgmode@gnu.org; Sun, 25 May 2014 22:07:32 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WokK3-0003Zh-96 for emacs-orgmode@gnu.org; Mon, 26 May 2014 04:07:31 +0200 Received: from 111.197.153.243 ([111.197.153.243]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 May 2014 04:07:31 +0200 Received: from eric by 111.197.153.243 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 May 2014 04:07:31 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Omid writes: > Hello, > > - I am trying to build a statically-generated website purely with Org > mode. I would like to use Bootstrap CSS to make the site mobile > friendly. Bootstrap uses
for the "main" part > of the of HTML; Org mode export produces
> for that part. > > Is there a variable to set/way to make Org wrap this part in the > "container" class? > > Looking at several "apropos" results (with all the search keywords I > could think of), I only see a setting for pre/postamble-class: > > org-html--pre/postamble-class > Variable: CSS class used for pre/postamble It would help to know your Org mode version, but I'm pretty sure org-html-divs has been around for a bit. Check out its docstring, and modify its second element, which is '(content "div" "content") by default. > - Assuming there is no Org-internal way to do this, is there a > function that is run after a project is published to that I can, > e.g., run a sed script on the HTML files generated? Again, the only > remotely relevant result I see in M-x apropos RET org post is > > org-babel-post-tangle-hook > Variable: Hook run in code files tangled by `org-babel-tangle'. > Properties: standard-value custom-version custom-type > custom-requests variable-documentation > > - As a "meta question", how would one find the answer to these and > similar questions without leaving Emacs, since we know Emacs is > self-documenting and Org mode has a very comprehensive set of > functions and documentation. Looking in the usual places (C-u M-x > apropos, C-h v) did not lead me to an answer. One good thing to know is that Org export variables related to a certain backend all start with org-BACKEND-*. So you could do C-h v org-html-TAB and see... a lot of variables. Still, that would (eventually) get you there. I did apropos-variable for "org html container" and that got me a similar list as C-h v, albeit slimmed down somewhat, and with docstrings. Hope that helps, Eric