Skip to content

Instantly share code, notes, and snippets.

@Hodapp87
Created May 18, 2020 13:24
Show Gist options
  • Save Hodapp87/2a3e9c47d6715dd47a50cb04736e8279 to your computer and use it in GitHub Desktop.
Save Hodapp87/2a3e9c47d6715dd47a50cb04736e8279 to your computer and use it in GitHub Desktop.
ox-hugo test
FROM ubuntu:18.04
RUN apt-get update -y \
&& apt-get install -y emacs-nox ca-certificates wget unzip \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /root/.emacs.d
COPY init.el /root/.emacs.d/
COPY test.org /root
RUN emacs --batch -l ~/.emacs.d/init.el -f package-refresh-contents
(require 'package)
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
(not (gnutls-available-p))))
(proto (if no-ssl "http" "https")))
(when no-ssl (warn "\
Your version of Emacs does not support SSL connections,
which is unsafe because it allows man-in-the-middle attacks.
There are two things you can do about this warning:
1. Install an Emacs version that does support SSL and be safe.
2. Remove this warning from your init file so you won't see it again."))
(add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
;; Comment/uncomment this line to enable MELPA Stable if desired. See `package-archive-priorities`
;; and `package-pinned-packages`. Most users will not need or want to do this.
;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
)
(package-initialize)

ox-hugo Issue 333 test

https://ox-hugo.scripter.co/test/ox-hugo/org.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment