summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-31Introduce ennum-directory-files.Arun Isaac
ennum-directory-files is a more convenient around directory-files and directory-files-recursively. * ennum.el (ennum-directory-files): New function. (ennum-posts, ennum-video-poster, ennum-publish): Use ennum-directory-files. (ennum-publish-generic): Accept files that are not prefixed by other-files-directory.
2020-07-31Define ennum-blog variable.Arun Isaac
* ennum.el (ennum-blog): Define variable.
2020-07-31Pass video posters through info.Arun Isaac
* ennum.el (ennum-post): Add video-posters slot. (ennum--read-post): Set video-posters slot when creating post object. (ennum-publish-post, ennum--feed-entry): Pass video-posters in info communication channel. * ennum-html.el (ennum-html-link): Handle video links differently from normal org links since they require access to the info communication channel. Get poster from info instead of reading the source tree directly. (ennum-export-video): Delete function. (org-link-parameters): Unregister ennum-export-video.
2020-07-31Prefix :translations in info with ennum-.Arun Isaac
* ennum.el (ennum-publish-post): Prefix :translations in info communication channel with ennum-. * ennum-html.el (ennum-html-inner-template): Use :ennum-translations instead of :translations.
2020-07-18Rename ennu to ennum.Arun Isaac
* ennu.el: Rename to ... * ennum.el: ... this. Replace all instances of ennu with ennum. * ennu-html.el: Rename to ... * ennum-html.el: ... this. Replace all instances of ennu with ennum. * ennu-image.el: Rename to ... * ennum-image.el: ... this. Replace all instances of ennu with ennum.
2020-07-10Fix unbalanced parentheses due to an earlier partial commit.Arun Isaac
* ennu.el (ennu-server-start): Fix unbalanced parentheses.
2020-07-10Find file to serve using unhexed URI.Arun Isaac
* ennu.el (ennu-server-start): Find file to serve using unhexed URI.
2020-07-10Add comments to ennu-server-start.Arun Isaac
* ennu.el (ennu-server-start): Add comments.
2020-07-10Percent encode URIs.Arun Isaac
* ennu-html.el (ennu-html-link, ennu-export-post, ennu-export-thumbnail, ennu-export-video, ennu-export-static, ennu-export-tag): Percent encode URIs.
2020-07-09Remove file:// scheme from data attribute.Arun Isaac
SVG images displayed using the object element specify the URI in the data attribute. * ennu-html.el (ennu-html-link): Remove file:// scheme from data attribute as well, not just the src attribute.
2020-07-09Do not create tangle output in :posts-directory.Arun Isaac
An ennu-operation should not write anything in the input directories. Doing so is a recipe for data loss. * ennu.el (ennu-publish-post): Do not create tangle output in :posts-directory.
2020-07-08Set new directory permissions to 755.Arun Isaac
* ennu.el (ennu-with-temporary-directory): Set new temporary directory permissions to 755.
2020-03-15Check backend while exporting links.Arun Isaac
* ennu-html.el (ennu-export-post, ennu-export-thumbnail, ennu-export-video, ennu-export-static, ennu-export-tag): Export only if backend is either ennu-html or html.
2020-03-15Add post and image link follow functions.Arun Isaac
* ennu-html.el (ennu-follow): New macro. (ennu-follow-post, ennu-follow-image): New functions. Add respectively as :follow properties to post and image links in org-link-parameters.
2020-03-15Handle posts without summary metadata.Arun Isaac
* ennu.el (ennu--read-post): Export summary metadata only if it is non-nil.
2020-03-15Handle posts with no author metadata.Arun Isaac
* ennu.el (ennu--read-post): Export author metadata only if it is non-nil.
2020-03-15Consider org-export-with-author when exporting author.Arun Isaac
* ennu.el (ennu--feed-entry): Export author only when org-export-with-author is non-nil.
2020-03-15Handle image links with separate transcoder.Arun Isaac
* ennu-html.el (ennu-html-link): New function. (ennu-html): Add ennu-html-link transcoder. Remove :html-inline-image-rules option. (ennu-export-image): Delete function. Unregister it from org-link-parameters.
2020-03-13List tags only if present.Arun Isaac
* ennu-html.el (ennu-html-inner-template): List tags only if present.
2020-03-13Pass backend name to export functions.Arun Isaac
* ennu-html.el (ennu-html-inner-template): Pass backend name, not backend to export functions ennu-export-post and ennu-export-tag.
2020-03-13Use appropriate time locale when exporting pages.Arun Isaac
We set the appropriate time locale so that dates are exported in the correct language. * ennu.el (ennu-publish-post, ennu-publish-index): Set time locale according to language of the page. (ennu-setting): Introduce :locale-alist mapping languages to their locales. Use C locale for English pages as the default :locale-alist.
2020-03-13Log message when starting server.Arun Isaac
* ennu.el (ennu-server-start): Log message.
2020-03-13Deny requests to all html files except index.html.Arun Isaac
* ennu.el (ennu-server-start): Deny requests to all html files except index.html.
2020-03-13Provide ennu web server stop command.Arun Isaac
* ennu.el (ennu-server-start): New function.
2020-03-13Rename ennu-serve to ennu-server-start.Arun Isaac
* ennu.el (ennu-serve): Rename to ennu-server-start.
2020-03-13Simplify picking of default settings.Arun Isaac
* ennu.el (ennu-setting): Combine picking of all default settings into one clause.
2020-03-13Publish interlanguage links only if there are translations.Arun Isaac
* ennu-html.el (ennu-html-inner-template): Publish interlanguage links only if there are translations.
2020-03-13Use language name in interlanguage links.Arun Isaac
* ennu-html.el (ennu--iso-639-1-alist): New variable. (ennu-html-inner-template): Use language name in interlanguage links.
2019-09-02Tangle posts.Arun Isaac
* ennu.el (ennu-publish-post): Tangle posts if they have src blocks marked for tangling.
2019-09-02Publish video and poster, not just one.Arun Isaac
* ennu.el (ennu-publish-link): Publish video and poster, not just one of them. Return a list of operations instead of a single operation. (ennu-publish-post): Accept a list of operations from ennu-publish-link.
2019-09-02Add tangle slot to post structure.Arun Isaac
* ennu.el (ennu-post): Add tangle slot. (ennu--read-post): Initialize tangle slot.
2019-09-02Add filter-map utility function.Arun Isaac
* ennu.el (ennu--filter-map): New function.
2019-09-02Add language suffix to filenames without an extension.Arun Isaac
* ennu.el (ennu-add-tongue-suffix): Support filenames without extension.
2019-09-02Support percent encoded URIs in ennu server.Arun Isaac
* ennu.el (ennu-publish): Decode percent encoded URIs.
2019-09-02Specify tag language suffix in tag links.Arun Isaac
* ennu-html.el (ennu-html-inner-template): Specify tag language suffix in tag links. * ennu.el (ennu-publish-index): Specify tag language suffix in tag links.
2019-09-02Implement generic publisher.Arun Isaac
* ennu.el (ennu-publish-page): Delete function. (ennu-publish-generic): New function. (ennu-setting): Derecognize :pages-directory and :unattached-static-files properties. Recognize :other-files-directory property. (ennu-publish): Invoke ennu-publish-generic, the generic publisher.
2019-09-02Implement ennu-html inner-template transcoder.Arun Isaac
* ennu-html.el (ennu-html-inner-template): New function. (ennu-html): Specify ennu-html-inner-template as inner-template transcoder.
2019-09-02Publish links together with posts.Arun Isaac
* ennu.el (ennu-publish-post): Publish links together with posts and return a list of operations. (ennu-publish): Concatenate the lists of operations returned from ennu-publish-post. Do not invoke ennu-publish-link to publish links.
2019-09-02Publish posts and their translations together.Arun Isaac
* ennu.el (ennu-publish-post): Publish posts and their translations together in a single operation. (ennu-publish): Invoke ennu-publish-post with all posts of a single translation group.
2019-09-02Use ennu-copy wherever applicable.Arun Isaac
* ennu.el (ennu-publish-image, ennu--do-operation): Use ennu-copy instead of copy-file.
2019-09-02While copying, overwrite if destination already exists.Arun Isaac
* ennu.el (ennu-copy): Overwrite destination if it already exists.
2019-09-02Publish index using html backend.Arun Isaac
* ennu.el (ennu-publish-index): Publish index using html backend, not ennu-html backend.
2019-09-02Add slug slot to post structure.Arun Isaac
* ennu.el (ennu-post): Add slug slot. (ennu--read-post): Initialize slug slot. (ennu-publish-index): Get slug slot instead of recomputing it.
2019-08-30Implement operation as structure.Arun Isaac
* ennu.el (ennu-operation): New structure. (ennu-publish-post, ennu-publish-page, ennu-publish-index, ennu-publish-feed, ennu-publish-image, ennu-publish-copy, ennu-publish-static-file, ennu--do-operation): Use new operation structure API.
2019-08-27Infer index language from posts.Arun Isaac
* ennu.el (ennu-publish-index): Infer language from posts. (ennu-publish): Do not pass language to ennu-publish-index.
2019-08-27Implement post as structure.Arun Isaac
* ennu.el (ennu-post): New structure. (ennu-posts, ennu-publish, ennu-publish-feed, ennu-publish-index, ennu-publish-post, ennu--feed-entry): Use new post structure API. (ennu-later-post-p, ennu-read-post, ennu--read-post): New functions. (ennu-plist-map-to-plist, ennu-post-links, ennu-post-metadata, ennu--post-metadata-memoized, ennu-post-tags, ennu-post-thumbnail, ennu-post-tongue, ennu--later-post): Delete functions. * ennu-html.el (ennu-export-post): Use new post structure API.
2019-08-27Introduce #+TRANSLATION_GROUP keyword.Arun Isaac
* ennu-html.el (ennu-html): Add :translation-group to :options-alist.
2019-08-27Implement test HTTP server.Arun Isaac
* ennu.el (ennu-serve): New function.
2019-08-27Require map for use of map-put.Arun Isaac
* ennu.el: Require map.
2019-08-27Fix unwind protection in ennu-with-temporary-directory.Arun Isaac
* ennu.el (ennu-with-temporary-directory): Fix unwind protection.