Skip to content

Commit

Permalink
Revert "Pass checkdoc"
Browse files Browse the repository at this point in the history
This reverts commit c6c25f0.
  • Loading branch information
kaushalmodi committed Jul 15, 2019
1 parent d6e22bf commit acd343b
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions ox-hugo.el
Expand Up @@ -3672,9 +3672,6 @@ narrowed part.
If a region is active, export that region.
F-OR-B-NAME is the name of the file or buffer (if not a file
buffer) to be exported.
A non-nil optional argument ASYNC means the process should happen
asynchronously. The resulting file should be accessible through
the `org-export-stack' interface.
Expand Down Expand Up @@ -3748,12 +3745,11 @@ Return output file's name."
;;;###autoload
(defun org-hugo-export-file-to-md (f-or-b-name &optional async visible-only noerror)
"Export the org file as a whole.
F-OR-B-NAME is the name of the file or buffer (if not a file
buffer) to be exported.
Argument F-OR-B-NAME is the buffer-file-name or buffer-name to be
exported.
A non-nil optional argument ASYNC means the process should happen
asynchronously. The resulting file should be accessible through the
asynchronously. The resulting file should be accessible through the
`org-export-stack' interface.
When optional argument VISIBLE-ONLY is non-nil, don't export
Expand Down Expand Up @@ -3789,12 +3785,11 @@ instead of signaling a user error."
;;;###autoload
(defun org-hugo-export-subtree-to-md (f-or-b-name &optional async visible-only)
"Export the current subtrees to a Hugo post.
F-OR-B-NAME is the name of the file or buffer (if not a file
buffer) to be exported.
Argument F-OR-B-NAME is the buffer-file-name or buffer-name to be
exported.
A non-nil optional argument ASYNC means the process should happen
asynchronously. The resulting file should be accessible through the
asynchronously. The resulting file should be accessible through the
`org-export-stack' interface.
When optional argument VISIBLE-ONLY is non-nil, don't export
Expand Down Expand Up @@ -3872,9 +3867,7 @@ contents of hidden elements."
;;;###autoload
(defun org-hugo-export-all-subtrees-to-md (f-or-b-name &optional async visible-only)
"Export all valid subtrees to Hugo posts.
F-OR-B-NAME is the name of the file or buffer (if not a file
buffer) to be exported.
Argument F-OR-B-NAME is the buffer-file-name or buffer-name to be exported.
A non-nil optional argument ASYNC means the process should happen
asynchronously. The resulting file should be accessible through
Expand Down Expand Up @@ -3945,18 +3938,13 @@ approach)."
(save-excursion
(cond
((not all-subtrees)
;; Export the current subtree to a Hugo post
;; (one-post-per-subtree).
;; Export the current subtree to a Hugo post (one-post-per-subtree)
(org-hugo-export-subtree-to-md f-or-b-name async visible-only))
((and all-subtrees (org-map-entries
(lambda ()
(org-entry-properties nil "EXPORT_FILE_NAME"))
"EXPORT_FILE_NAME<>\"\""))
;; Export all valid subtrees to Hugo posts
;; (one-post-per-subtree).
((and all-subtrees (org-map-entries (lambda () (org-entry-properties nil "EXPORT_FILE_NAME")) "EXPORT_FILE_NAME<>\"\""))
;; Export all valid subtrees to Hugo posts (one-post-per-subtree)
(org-hugo-export-all-subtrees-to-md f-or-b-name async visible-only))
(t
;; Export the org file as a whole (one-post-per-file).
;; Export the org file as a whole (one-post-per-file)
(org-hugo-export-file-to-md f-or-b-name async visible-only noerror))))))))

;;;###autoload
Expand Down

0 comments on commit acd343b

Please sign in to comment.