-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve: Now C-c C-e H H works for both per-subtree/per-file flows
* ox-hugo.el: - Obsolete org-hugo-export-subtree-* functions and replace them with org-hugo-export-wim-* (What I Mean) functions. See the doc string of org-hugo-export-wim-to-md for details. - Fix the return values of org-hugo-export-as-md, org-hugo-export-to-md, org-hugo-publish-to-md and the new org-hugo-export-wim-to-md. Update their doc strings. - (org-hugo-export-wim-to-md): This new function now exports using per-file flow or per-subtree flow automatically. Improve the messages printed during export. - (org-hugo-export-to-md): Allow Org files exported using per-file approach not get exported based on tags. See "Marking files to not be exported" in documentation for details. - (org-hugo-publish-to-md): Comment out this function. It doesn't work (If someone was using it, please open an issue so that I can uncomment that.) * setup-ox-hugo.el: - New function org-hugo-export-all-wim-to-md that uses the new org-hugo-export-wim-to-md function. - Stop printing too many messages when loading emacs. - Increase org-export-headline-levels to 4. - Don't export files and subtrees tagged "dont_export_during_make_test" during "make test". * Makefile: - Now uses the new org-hugo-export-all-wim-to-md function defined above, and thus no need to hard-code subtree-based and file-based Org files. - New rule do_test replaces the old test_subtree and test_file rules. - New rule md1 replaces the old mdtree and mdfile rules. * ox-hugo-manual.org: - Add section on "Marking files to not be exported" - Update "Auto-export on Saving" to reflect the refactoring to org-hugo-export-wim-* functions. - Update bindings descriptions. * Misc tests: Make changes to match the above changes. This commit helps towards #39. Now Org files can be exported seamlessly using the per-file or per-subtree flow using a Makefile like one in this repo.
- Loading branch information
1 parent
447d361
commit b1b5d28
Showing
14 changed files
with
396 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.