emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] document org-html-meta-tags
@ 2021-01-31 19:04 TEC
  2021-02-08  0:50 ` Kyle Meyer
  0 siblings, 1 reply; 3+ messages in thread
From: TEC @ 2021-01-31 19:04 UTC (permalink / raw)
  To: org-mode-email, Kyle Meyer

[-- Attachment #1: Type: text/plain, Size: 88 bytes --]

Hi Kyle, All,

As requested, here's a small documentation entry for the new setting :)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-manual-news-Document-org-html-meta-tags.patch --]
[-- Type: text/x-patch, Size: 1613 bytes --]

From 636330422eef59f448a60b933be9a55818888af9 Mon Sep 17 00:00:00 2001
From: TEC <tec@tecosaur.com>
Date: Mon, 1 Feb 2021 03:01:12 +0800
Subject: [PATCH] manual, news: Document org-html-meta-tags

* docs/org-manual.org, etc/ORG-NEWS: Document and announce the new
setting `org-html-meta-tags'.
---
 doc/org-manual.org | 3 +++
 etc/ORG-NEWS       | 7 +++++++
 2 files changed, 10 insertions(+)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index 20a0d1d7a..a82b0f9a4 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -12624,6 +12624,9 @@ settings described in [[*Export Settings]].
   multiple =DESCRIPTION= lines.  The exporter takes care of wrapping
   the lines properly.
 
+  The exporter includes a number of other meta tags, which can be customised
+  by modifying ~org-html-meta-tags~.
+
 - =HTML_DOCTYPE= ::
 
   #+cindex: @samp{HTML_DOCTYPE}, keyword
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index ba769224f..a2f1667b2 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -81,6 +81,13 @@ block. ~org-babel-latex-preamble~, ~org-babel-latex-begin-env~ and
 the user to specify the preamble and code that preceedes and proceeds
 the contents of the source block.
 
+*** New option ~org-html-meta-tags~  allows for HTML meta tags customisation
+
+New variable ~org-html-meta-tags~ makes it possible to customise the
+=<meta>= tags used in an HTML export. Accepts either a static list of
+values, or a function that generates such a list (see
+~org-html-meta-tags-default~ as an example of the latter).
+
 ** New features
 *** =ob-python= improvements to =:return= header argument 
 
-- 
2.30.0


[-- Attachment #3: Type: text/plain, Size: 1335 bytes --]


Oh, by the way --- regarding your commits on commit/code conventions.
With (what seem like to me) quite a few "best practices" to keep in
mind, has anyone created a patch lint tool to make sure they're being
adhered to? I imagine it wouldn't be hard to check for blank lines in
functions or commits without a sentence case commit message.

For someone who isn't aware of all the nits that may be picked :P this
would be rather useful, and far better than a list of guidelines (I'm
not actually any such list though).

Oh dear, I sense myself diverging but I'm now considering the
possibility of setting up CI for the org-mode repo to check for as many
such concerns as we can to try to make the code base more consistent
(from my experience, every time I'm told to check for a specific issue
in a patch I wrote, I find many other matches in the file).

Perhaps it could be possible to hook up the ML to a process that runs
the CI script on a copy of Org with the patch(es) applied and replies
with any errors that may come up?

I should really stop here, before I really get going and start
explaining why I think it could be good to migrate to Gitea and other
ideas :P

Feel free to disregard my ramble, I've just been accumulating thoughts
on the state of Org development, and a few are liable to spill out.

All the best,

Timothy

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] document org-html-meta-tags
  2021-01-31 19:04 [PATCH] document org-html-meta-tags TEC
@ 2021-02-08  0:50 ` Kyle Meyer
  2021-02-09 19:51   ` Timothy
  0 siblings, 1 reply; 3+ messages in thread
From: Kyle Meyer @ 2021-02-08  0:50 UTC (permalink / raw)
  To: TEC; +Cc: org-mode-email

TEC writes:

> Hi Kyle, All,
>
> As requested, here's a small documentation entry for the new setting :)

Thanks.  Pushed (5b0eb9aad) with the tweaks mentioned below.

> diff --git a/doc/org-manual.org b/doc/org-manual.org
> index 20a0d1d7a..a82b0f9a4 100644
> --- a/doc/org-manual.org
> +++ b/doc/org-manual.org
> @@ -12624,6 +12624,9 @@ settings described in [[*Export Settings]].
>    multiple =DESCRIPTION= lines.  The exporter takes care of wrapping
>    the lines properly.
>  
> +  The exporter includes a number of other meta tags, which can be customised
> +  by modifying ~org-html-meta-tags~.
> +

s/customised/customized/ to follow Emacs's preference for American
English in documentation.

Of course it doesn't really matter, but if it's left as is, it will
likely lead to unnecessary work on for some Emacs developer.  (The Emacs
repo has commits of tree-wide cleanups making this exact substitution.)

>  - =HTML_DOCTYPE= ::
>  
>    #+cindex: @samp{HTML_DOCTYPE}, keyword
> diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
> index ba769224f..a2f1667b2 100644
> --- a/etc/ORG-NEWS
> +++ b/etc/ORG-NEWS
> @@ -81,6 +81,13 @@ block. ~org-babel-latex-preamble~, ~org-babel-latex-begin-env~ and
>  the user to specify the preamble and code that preceedes and proceeds
>  the contents of the source block.
>  
> +*** New option ~org-html-meta-tags~  allows for HTML meta tags customisation
> +
> +New variable ~org-html-meta-tags~ makes it possible to customise the
> +=<meta>= tags used in an HTML export. Accepts either a static list of

In addition to more s/customis/customiz/, I dropped the extra space
before "allows"...  and added another space before "Accepts".

> Oh, by the way --- [...]

Sorry, I don't have the bandwidth at the moment for that discussion.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] document org-html-meta-tags
  2021-02-08  0:50 ` Kyle Meyer
@ 2021-02-09 19:51   ` Timothy
  0 siblings, 0 replies; 3+ messages in thread
From: Timothy @ 2021-02-09 19:51 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: org-mode-email


Kyle Meyer <kyle@kyleam.com> writes:

> Thanks.  Pushed (5b0eb9aad) with the tweaks mentioned below.

Great!

>> Oh, by the way --- [...]
>
> Sorry, I don't have the bandwidth at the moment for that discussion.

No problem, I mainly wanted to put the thought /somewhere/ --- which I
have now done :)

--
Timothy.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-09 20:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-31 19:04 [PATCH] document org-html-meta-tags TEC
2021-02-08  0:50 ` Kyle Meyer
2021-02-09 19:51   ` Timothy

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).