Org html: update readme and licence of style

This commit is contained in:
TEC 2021-01-09 01:15:45 +08:00
parent 8e512c703b
commit 5d3828ef28
Signed by: tec
GPG Key ID: 779591AFDB81F06C
2 changed files with 21 additions and 14 deletions

View File

@ -631,8 +631,8 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{one line to give the program's name and a brief idea of what it does.}
Copyright (C) {year} {name of author}
A CSS theme for HTML files generated by Org-mode.
Copyright (C) 2018-2020 Abhinav Tushar, 2020- TEC
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
@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
{project} Copyright (C) {year} {fullname}
Pile Theme Copyright (C) 2018-2020 Abhinav Tushar, 2020- TEC
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.

View File

@ -1,17 +1,24 @@
#+TITLE: pile-theme
#+title: Pile Theme
Sass files for my org exporting. Taken from [[github:lepisma/pile-theme][lepisma/pile-theme]].
A sass-based set of styles to be used by Org when exporting to HTML.
=main.scss= is compiled to =main.css= which is then inserted into the ~<head>~ of
generated HTML documents.
#+NAME: om-sass
#+BEGIN_SRC shell :exports none :results output
This is a modified version of [[https://lepisma.xyz/][lepisma]]'s lovely [[https://github.com/lepisma/pile-theme][pile-theme]].
A little non-essential JS has been added to provide:
+ Functionality for copy-to-clipboard buttons
+ Have the table of contents auto-expand based on the current scroll position
* Development
To build =main.css= and =main.js=, I simply run
#+begin_src shell
sassc main.scss main.css
#+END_SRC
#+end_src
#+RESULTS: om-sass
Then for combining the JS
#+NAME: make-js
#+BEGIN_SRC shell :exports none :results output
#+begin_src shell
cat _*.js > main.js
#+END_SRC
#+RESULTS: make-js
#+end_src