org-html-themes/README.org

302 lines
11 KiB
Org Mode
Raw Permalink Normal View History

2024-01-14 12:41:07 +01:00
#+TITLE: How to effortlessly transform your Org mode files into stunning HTML in just 2 minutes
2014-09-13 15:09:50 +02:00
#+AUTHOR: Fabrice Niessen
#+EMAIL: (concat "fniessen" at-sign "pirilampo.org")
#+DESCRIPTION: Org-HTML export made simple.
2015-01-29 14:17:23 +01:00
#+KEYWORDS: org-mode, export, html, theme, style, css, js, bigblow
2014-09-13 15:09:50 +02:00
#+LANGUAGE: en
#+OPTIONS: H:4 toc:t num:2
2015-07-03 12:30:41 +02:00
#+PROPERTY: header-args :padline no
2021-01-25 20:35:44 +01:00
#+SETUPFILE: ~/org/theme-readtheorg.setup
2014-09-13 15:09:50 +02:00
2016-01-16 00:03:54 +01:00
#+html: <a href="http://opensource.org/licenses/GPL-3.0">
#+html: <img src="http://img.shields.io/:license-gpl-blue.svg" alt=":license-gpl-blue.svg" />
#+html: </a>
#+html: <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=VCVAS6KPDQ4JC&lc=BE&item_number=org%2dhtml%2dthemes&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted">
#+html: <img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" alt="btn_donate_LG.gif" />
#+html: </a>
2014-09-13 15:09:50 +02:00
* ADVERT: Elevate your Emacs skills in Paris, Rotterdam, Leuven or Valencia!
2023-10-08 12:19:58 +02:00
2024-03-30 11:58:24 +01:00
*Unlock the power of Emacs in Valencia! Join my next exclusive "Emacs Boost"
course on April 11th to 12th, 2024!*
#+attr_html: :style height: 90px !important;
[[file:images/Logo-HD-transparent-25pc.png]]
2023-10-08 12:19:58 +02:00
2023-12-29 16:37:46 +01:00
Ready to /supercharge your productivity/ and become an Emacs ninja? Look no
further!
2023-10-08 12:19:58 +02:00
*What you'll learn:*
2023-10-08 12:19:58 +02:00
- Master Emacs from the basics to advanced tricks.
2023-12-29 16:37:46 +01:00
- /Boost your editing efficiency/ and streamline your workflow.
2023-10-08 12:19:58 +02:00
- Customize Emacs to fit your unique needs.
- And much more!
2023-12-29 16:37:46 +01:00
*Upcoming course details:*
2024-03-30 11:58:24 +01:00
- *Date:* April 11th to 12th (Thu + Fri)
- *Location:* Valencia, Spain
2023-12-29 16:37:46 +01:00
- *Audience:* Open to anyone interested in Emacs, from beginners to advanced
2023-10-08 12:19:58 +02:00
users.
*Why choose my course?*
2023-10-08 12:19:58 +02:00
- Expert instructor with 24 years of Emacs experience.
2023-12-29 16:37:46 +01:00
- /Hands-on exercises/ to reinforce your learning.
- /Networking opportunities/ with like-minded Emacs enthusiasts.
2023-10-08 12:19:58 +02:00
- Personalized attention.
Don't miss this opportunity to take your Emacs skills to the next level! \\
2023-12-29 16:37:46 +01:00
Seats are limited, so /reserve yours today/.
2023-10-08 12:19:58 +02:00
Visit https://emacsboost.com/en/ for more information, other dates and other
2023-12-29 16:37:46 +01:00
locations, and to /reserve your seat/.
2023-10-08 12:19:58 +02:00
2024-03-30 11:58:24 +01:00
/See you in Valencia!/ [[https://emacsboost.com/en/][#EmacsBoostValencia]]
2023-10-08 12:19:58 +02:00
2015-04-21 21:17:05 +02:00
* Overview
2015-04-21 21:17:05 +02:00
** Description
2014-09-13 15:09:50 +02:00
2015-05-29 13:15:19 +02:00
Though you can easily override CSS stylesheets and add your own HTML themes, we
can say (or write) that Org mode provides a /basic/ HTML support.
2023-05-25 20:58:54 +02:00
*Org-HTML themes* is an open source framework for providing you with a list of
2015-06-30 11:43:01 +02:00
very nice (cross-browser) themes for all your Org documents. Use them to *style
your docs*, and your colleagues will come up to tell you that you are a genius!
2015-05-29 13:15:19 +02:00
Share this content by tweeting this page:
2014-09-13 15:09:50 +02:00
2016-01-16 00:03:54 +01:00
#+html: <script src="http://platform.twitter.com/widgets.js"></script>
#+html: <a href="https://twitter.com/share" class="twitter-share-button" data-via="f_niessen">Tweet</a>
2014-09-15 20:42:37 +02:00
2015-05-29 13:15:19 +02:00
Follow [[https://twitter.com/f_niessen][f_niessen]] on Twitter for updates on Org-HTML themes!
2014-09-13 15:09:50 +02:00
2015-04-21 21:17:05 +02:00
** Requirements
2014-09-13 15:09:50 +02:00
Org mode version 8 (or later) is required.
If such a version is not bundled with your Emacs, install one from ELPA.
2015-04-21 21:17:05 +02:00
* Gallery
:PROPERTIES:
:ID: 79e0ed21-c3b0-4f00-bdab-29fbff9dcad4
:END:
2014-09-13 15:09:50 +02:00
2014-09-30 15:16:01 +02:00
This is a list of available *HTML themes for Org mode*, which you can use right
now!
2014-09-13 15:09:50 +02:00
2015-04-21 21:17:05 +02:00
** Bigblow
2014-09-13 15:09:50 +02:00
2015-01-29 14:17:23 +01:00
Bigblow is perfect for your work: it is a clean design aimed at optimal *Org
mode experience in your browser*. It looks just awesome!
2014-09-13 15:09:50 +02:00
2014-09-13 15:31:32 +02:00
#+ATTR_HTML: :width 640
2020-11-21 18:26:20 +01:00
[[https://www.youtube.com/watch?v=DnSGSiXYuOk][file:docs/bigblow.png]]
2014-09-13 15:09:50 +02:00
2020-11-21 17:39:00 +01:00
Click on the image for a quick [[https://www.youtube.com/watch?v=DnSGSiXYuOk][demo of Bigblow]] (2:49 min, no audio).
2014-09-15 23:00:04 +02:00
Keyboard shortcuts to save time and boost your productivity:
2024-03-30 11:58:24 +01:00
| Shortcut | What it does |
|----------+-----------------------------------|
| =?= or =h= | Access the *dashboard* |
2014-09-15 23:00:04 +02:00
| =n= | Move to the *next* main heading |
| =p= | Move to the *previous* main heading |
2024-03-30 11:58:24 +01:00
| =b= | Scroll up |
| =<= | Scroll to top |
| =>= | Scroll to bottom |
| =-= | Collapse all |
| =+= | Expand all |
| =r= | Go to next task in list |
| =R= | Go to previous task in list |
| =q= | Stop reviewing the list of tasks |
| =g= | Reload the page |
2014-09-15 23:00:04 +02:00
*** Quotations about Bigblow
"Very very nice, I enjoy it a lot." \\
-- /Ista Zahn/
"This is awesome. I love it!" \\
-- /Rainer M Krug/
"This is awesome!!" \\
-- /Mehul Sanghvi/
"This very nice html theme. [...] I cannot use another emacs-theme than your
[[https://github.com/fniessen/emacs-leuven-theme][emacs-leuven-theme]], and it is going to be probably the same with your html
theme!" \\
-- /Joseph Vidal-Rosset/
"Thanks a lot for sharing [...] the wonderful Bigblow theme. I create lot of
specification for other team members to use. It has always been a trouble to
share and maintain such spec. Now, I can create a much neater spec which is
available for the team's reference as a webpage." \\
-- /Shankar R./
"I like Bigblow the best. I've exported most of my Org files using this theme
and published them within my company's intranet. Thanks for sharing this
wonderful package!" \\
-- /Richard K./
2015-04-21 21:35:28 +02:00
** ReadTheOrg
2020-11-25 09:50:50 +01:00
ReadTheOrg is a clone of the official -- and great! -- [[https://github.com/snide/sphinx_rtd_theme][Sphinx theme]] used in the
[[http://docs.readthedocs.org/en/latest/][Read The Docs]] site. It gives a beautiful and professional style to all your Org
docs.
2015-04-21 21:35:28 +02:00
*Thanks to its creator(s)!*
2015-04-23 17:26:35 +02:00
2015-04-21 21:47:07 +02:00
#+ATTR_HTML: :width 640
2020-11-21 18:26:20 +01:00
[[file:docs/readtheorg.png]]
2015-04-21 21:47:07 +02:00
2015-04-21 21:35:28 +02:00
#+begin_note
While the original theme shines on mobile devices as well, ReadTheOrg does not
stay completely functional.
I don't have a lot of time to maintain this project due to other
responsibilities. Help is welcome to work on that (and eventually improve the
default structure of the HTML export)!
#+end_note
*** Quotations about ReadTheOrg
"OMG. The ReadTheOrg theme for exported HTML from org mode files is eye
wateringly beautiful. Thank you!" \\
-- /Rob Stewart/
"It is fantastic, so beautiful. I will switch several of my pages over to
this theme." \\
-- /Carsten D./
"That is incredibly impressive. Thanks for this." \\
-- /Noah R./
"Thank you! I enjoy your themes. The best ones I've ever found." \\
-- /Kang T./
"Awesome theme. Wonderful job. You're doing a wonderful thing --- it will
enable people (at least those who use Emacs and Org mode) to put together
on-line reference works in a much-more usable fashion than is currently
available." \\
-- /D. C. Toedt/
"Extremely useful." \\
-- /Thomas S. Dye/
2021-05-13 15:24:19 +02:00
"This is amazing, I've been looking for something like this for a LONG time!
I will share." \\
2021-05-13 15:25:41 +02:00
-- /Edward H./
2021-05-13 15:24:19 +02:00
* Demo
I've written a [[file:tests/org-mode-syntax-example.org][demo page]] for the themes that provides a maximal working support
of Org mode syntax.
2015-04-23 17:26:35 +02:00
Please see the [[https://github.com/fniessen/refcard-org-mode][Org mode refcard]] page for full examples of headings, code,
admonitions, footnotes, tables and other details.
* Using a theme
2014-09-13 15:09:50 +02:00
Using a theme from the [[id:79e0ed21-c3b0-4f00-bdab-29fbff9dcad4][theme gallery]] for your own Org documents is very easy:
2018-11-29 22:29:43 +01:00
1. You *add a* =#+SETUPFILE:= *directive* in the preamble of your document (to include
the necessary CSS and JavaScript files).
2014-09-13 15:09:50 +02:00
You can either use an URL of the following type for the "setup file" of your
chosen theme:
2014-09-13 15:09:50 +02:00
2018-11-29 22:29:43 +01:00
#+begin_src org :exports code
,#+SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-NAME.setup
2018-11-29 22:29:43 +01:00
#+end_src
2014-09-13 15:09:50 +02:00
2020-11-25 09:50:50 +01:00
(where ~NAME~ is either ~bigblow~ or ~readtheorg~)
2014-09-13 15:09:50 +02:00
2018-11-29 22:29:43 +01:00
or, if you *cloned or downloaded* the Org-HTML themes project -- to get no
dependency on an Internet connection --, use a (relative or absolute) path to
2021-01-25 20:35:44 +01:00
the /local/ "setup file" and copy the =src= folder from the cloned folder
into the same folder as the file you want to export:
2014-09-13 15:09:50 +02:00
2018-11-29 22:29:43 +01:00
#+begin_src org :exports code
,#+SETUPFILE: PATH/TO/GIT/REPO/org/theme-NAME-local.setup
2018-11-29 22:29:43 +01:00
#+end_src
2014-09-13 15:09:50 +02:00
2. Then, you *export* your Org mode file *to HTML* with =org-html-export-to-html= or
with =C-c C-e h h=.
* Customizing a theme
You love those themes, but you still would like to override particular HTML
2019-04-09 21:16:37 +02:00
tags? Some examples do follow...
Before doing that, though, if you think it really is an improvement that could
2022-12-14 22:04:19 +01:00
serve other persons as well, including me, you're invited to submit your
2019-04-09 21:16:37 +02:00
change...
** Change the background code blocks
Here's an example to insert into your Org documents:
#+begin_src org :tangle no
# Change the background of source block.
,#+HTML_HEAD: <style>pre.src{background:#343131;color:white;} </style>
#+end_src
2019-04-09 21:16:37 +02:00
** Unset body width limit of ReadTheOrg
Solution provided by Malcolm Cook:
#+begin_src org :tangle no
,#+HTML_HEAD: <style> #content{max-width:1800px;}</style>
,#+HTML_HEAD: <style> p{max-width:800px;}</style>
,#+HTML_HEAD: <style> li{max-width:800px;}</style
#+end_src
2024-01-14 12:41:07 +01:00
* Contribute to the project!
2024-01-14 12:41:07 +01:00
** Report issues and enhancements
2024-01-14 12:41:07 +01:00
Found a bug or have an idea for a new feature? Share your thoughts on the
[[https://github.com/fniessen/org-html-themes/issues/new][GitHub issue tracker]].
2024-01-14 12:41:07 +01:00
** Submit patches
2024-01-14 12:41:07 +01:00
I welcome contributions in any form! Feel free to submit patches to enhance the
project.
2014-09-13 15:09:50 +02:00
2024-01-14 12:41:07 +01:00
** Support development with a donation!
2014-09-13 15:09:50 +02:00
2024-01-14 12:41:07 +01:00
If you find the "org-html-themes" project (or any of [[https://github.com/fniessen/][my other projects]])
enhancing your Emacs experience and simplifying your workflow, seize the
opportunity to express your appreciation! Help fuel future development by
making a [[https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=VCVAS6KPDQ4JC&lc=BE&item_number=org%2dhtml%2dthemes&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted][donation]] through PayPal. Your support is invaluable -- thank you!
2024-01-14 12:41:07 +01:00
Remember, regardless of donations, "org-html-themes" will always remain freely
accessible, both as in Belgian beer and as in speech.
2015-05-29 13:15:19 +02:00
2015-04-21 21:17:05 +02:00
* License
2014-09-13 15:09:50 +02:00
2024-01-14 12:41:07 +01:00
Copyright (C) 2011-2024 Fabrice Niessen
2014-09-13 15:09:50 +02:00
Author: Fabrice Niessen \\
Keywords: org-mode html themes
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see http://www.gnu.org/licenses/.
2015-04-23 14:53:01 +02:00
2016-01-16 00:03:54 +01:00
#+html: <a href="http://opensource.org/licenses/GPL-3.0">
#+html: <img src="http://img.shields.io/:license-gpl-blue.svg" alt=":license-gpl-blue.svg" />
#+html: </a>
#+html: <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=VCVAS6KPDQ4JC&lc=BE&item_number=org%2dhtml%2dthemes&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted">
#+html: <img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" alt="btn_donate_LG.gif" />
#+html: </a>