From 1ea717fd1cb522e62aab9c67f67c272dc8b4d10f Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Thu, 31 Mar 2022 23:39:21 +0100 Subject: Fix some warnings in the documentation and naming --- ox-tufte.el | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/ox-tufte.el b/ox-tufte.el index 93dc808..7ad12f2 100644 --- a/ox-tufte.el +++ b/ox-tufte.el @@ -7,7 +7,7 @@ ;; Description: An org exporter for Tufte HTML ;; Keywords: org, tufte, html ;; Version: 1.1.0 -;; Package-Requires: ((org "8.2") (emacs "24")) +;; Package-Requires: ((org "8.2") (emacs "24.4")) ;; URL: https://git.sr.ht/~ymherklotz/ox-tufte ;; This file is not part of GNU Emacs. @@ -39,7 +39,7 @@ ;;; User-Configurable Variables -(defgroup org-export-tufte nil +(defgroup ox-tufte-org-export nil "Options specific to Tufte export back-end." :tag "Org Tufte" :group 'org-export @@ -47,10 +47,12 @@ :package-version '(Org . "8.0")) (defcustom org-tufte-include-footnotes-at-bottom nil - "Non-nil means to include footnotes at the bottom of the page - in addition to being included as sidenotes. Sidenotes are not - shown on very narrow screens (phones), so it may be useful to - additionally include them at the bottom." + "Includes footnote at the bottom. + +Non-nil means to include footnotes at the bottom of the page in +addition to being included as sidenotes. Sidenotes are not shown +on very narrow screens (phones), so it may be useful to +additionally include them at the bottom." :group 'org-export-tufte :type 'boolean) @@ -97,8 +99,10 @@ holding contextual information." ;;; Transcode Functions -(defun org-tufte-quote-block (quote-block contents info) - "Transform a quote block into an epigraph in Tufte HTML style" +(defun org-tufte-quote-block (quote-block contents _info) + "Transform a QUOTE-BLOCK into an epigraph in Tufte HTML style. + +CONTENTS is the main content." (format "
\n%s\n%s
" contents (if (org-element-property :name quote-block) @@ -133,7 +137,8 @@ contextual information." (defun org-tufte-footnote-reference (footnote-reference contents info) "Create a footnote according to the tufte css format. -FOOTNOTE-REFERENCE is the org element, CONTENTS is nil. INFO is a + +FOOTNOTE-REFERENCE is the org element, CONTENTS is nil. INFO is a plist holding contextual information." (format (concat "" @@ -149,9 +154,10 @@ plist holding contextual information." (replace-regexp-in-string "" "" fn-data)))) (defun org-tufte-maybe-margin-note-link (link desc info) - "Render LINK as a margin note if it starts with `mn:', for - example, `[[mn:1][this is some text]]' is margin note 1 that - will show \"this is some text\" in the margin. + "Render LINK as a margin note if it starts with `mn:'. + +For example, `[[mn:1][this is some text]]' is margin note 1 that +will show \"this is some text\" in the margin. If it does not, it will be passed onto the original function in order to be handled properly. DESC is the description part of the @@ -168,8 +174,10 @@ link. INFO is a plist holding contextual information." (org-html-link link desc info)))) (defun org-tufte-src-block (src-block contents info) - "Transcode SRC-BLOCK element into Tufte HTML format. CONTENTS -is nil. INFO is a plist used as a communication channel." + "Transcode SRC-BLOCK element into Tufte HTML format. + +CONTENTS is nil. INFO is a plist used as a communication +channel." (format "
%s
" (org-html-format-code src-block info))) -- cgit